From 0c6a2e73375c201f924d7fdb1a0a4932d9bad6bd Mon Sep 17 00:00:00 2001 From: Timothy Sanders Date: Fri, 12 Jan 2024 15:56:50 -0500 Subject: [PATCH] Remove funder-mapping from respositories.json - This is institution specific. Has been moved to the test resources for testing JHU specific needs. --- .../src/main/resources/repositories.json | 39 +----- .../src/test/resources/repositories.json | 128 ++++++++++++++++++ 2 files changed, 129 insertions(+), 38 deletions(-) create mode 100644 pass-deposit-services/deposit-core/src/test/resources/repositories.json diff --git a/pass-deposit-services/deposit-core/src/main/resources/repositories.json b/pass-deposit-services/deposit-core/src/main/resources/repositories.json index 7166232d..c386d9e0 100644 --- a/pass-deposit-services/deposit-core/src/main/resources/repositories.json +++ b/pass-deposit-services/deposit-core/src/main/resources/repositories.json @@ -31,44 +31,7 @@ "algorithms": [ "sha512", "md5" - ], - "funder-mapping": { - "johnshopkins.edu:funder:300032": "ahqr", - "johnshopkins.edu:funder:300293": "cdc", - "johnshopkins.edu:funder:300859": "cdc", - "johnshopkins.edu:funder:301459": "va", - "johnshopkins.edu:funder:300453": "epa", - "johnshopkins.edu:funder:303444": "hhmi", - "johnshopkins.edu:funder:300484": "nih", - "johnshopkins.edu:funder:300865": "nih", - "johnshopkins.edu:funder:300869": "nih", - "johnshopkins.edu:funder:300866": "nih", - "johnshopkins.edu:funder:308302": "nih", - "johnshopkins.edu:funder:305950": "nih", - "johnshopkins.edu:funder:302727": "nih", - "johnshopkins.edu:funder:300863": "nih", - "johnshopkins.edu:funder:300874": "nih", - "johnshopkins.edu:funder:300861": "nih", - "johnshopkins.edu:funder:300842": "nih", - "johnshopkins.edu:funder:303587": "nih", - "johnshopkins.edu:funder:303586": "nih", - "johnshopkins.edu:funder:306099": "nih", - "johnshopkins.edu:funder:300858": "nih", - "johnshopkins.edu:funder:301479": "nih", - "johnshopkins.edu:funder:300870": "nih", - "johnshopkins.edu:funder:303589": "nih", - "johnshopkins.edu:funder:300860": "nih", - "johnshopkins.edu:funder:300852": "nih", - "johnshopkins.edu:funder:302822": "nih", - "johnshopkins.edu:funder:302592": "nih", - "johnshopkins.edu:funder:303585": "nih", - "johnshopkins.edu:funder:303574": "nih", - "johnshopkins.edu:funder:300867": "nih", - "johnshopkins.edu:funder:303580": "nih", - "johnshopkins.edu:funder:301978": "nih", - "johnshopkins.edu:funder:305204": "aspr", - "johnshopkins.edu:funder:303395": "fda" - } + ] } }, "transport-config": { diff --git a/pass-deposit-services/deposit-core/src/test/resources/repositories.json b/pass-deposit-services/deposit-core/src/test/resources/repositories.json new file mode 100644 index 00000000..7166232d --- /dev/null +++ b/pass-deposit-services/deposit-core/src/test/resources/repositories.json @@ -0,0 +1,128 @@ +{ + "JScholarship": { + "assembler": { + "specification": "simple", + "beanName": "simpleAssembler", + "options": { + "archive": "ZIP", + "compression": "NONE", + "algorithms": [ + "sha512", + "md5" + ] + } + }, + "transport-config": { + "protocol-binding": { + "protocol": "filesystem", + "baseDir": "target/packages", + "createIfMissing": "true", + "overwrite": "true" + } + } + }, + "PubMed Central": { + "assembler": { + "specification": "simple", + "beanName": "simpleAssembler", + "options": { + "archive": "ZIP", + "compression": "NONE", + "algorithms": [ + "sha512", + "md5" + ], + "funder-mapping": { + "johnshopkins.edu:funder:300032": "ahqr", + "johnshopkins.edu:funder:300293": "cdc", + "johnshopkins.edu:funder:300859": "cdc", + "johnshopkins.edu:funder:301459": "va", + "johnshopkins.edu:funder:300453": "epa", + "johnshopkins.edu:funder:303444": "hhmi", + "johnshopkins.edu:funder:300484": "nih", + "johnshopkins.edu:funder:300865": "nih", + "johnshopkins.edu:funder:300869": "nih", + "johnshopkins.edu:funder:300866": "nih", + "johnshopkins.edu:funder:308302": "nih", + "johnshopkins.edu:funder:305950": "nih", + "johnshopkins.edu:funder:302727": "nih", + "johnshopkins.edu:funder:300863": "nih", + "johnshopkins.edu:funder:300874": "nih", + "johnshopkins.edu:funder:300861": "nih", + "johnshopkins.edu:funder:300842": "nih", + "johnshopkins.edu:funder:303587": "nih", + "johnshopkins.edu:funder:303586": "nih", + "johnshopkins.edu:funder:306099": "nih", + "johnshopkins.edu:funder:300858": "nih", + "johnshopkins.edu:funder:301479": "nih", + "johnshopkins.edu:funder:300870": "nih", + "johnshopkins.edu:funder:303589": "nih", + "johnshopkins.edu:funder:300860": "nih", + "johnshopkins.edu:funder:300852": "nih", + "johnshopkins.edu:funder:302822": "nih", + "johnshopkins.edu:funder:302592": "nih", + "johnshopkins.edu:funder:303585": "nih", + "johnshopkins.edu:funder:303574": "nih", + "johnshopkins.edu:funder:300867": "nih", + "johnshopkins.edu:funder:303580": "nih", + "johnshopkins.edu:funder:301978": "nih", + "johnshopkins.edu:funder:305204": "aspr", + "johnshopkins.edu:funder:303395": "fda" + } + } + }, + "transport-config": { + "protocol-binding": { + "protocol": "filesystem", + "baseDir": "target/packages", + "createIfMissing": "true", + "overwrite": "true" + } + } + }, + "BagIt": { + "assembler": { + "specification": "simple", + "beanName": "simpleAssembler", + "options": { + "archive": "ZIP", + "compression": "NONE", + "algorithms": [ + "sha512", + "md5" + ], + "baginfo-template-resource": "/bag-info.hbm" + } + }, + "transport-config": { + "protocol-binding": { + "protocol": "filesystem", + "baseDir": "target/packages", + "createIfMissing": "true", + "overwrite": "true" + } + } + }, + "dash": { + "assembler": { + "specification": "simple", + "beanName": "simpleAssembler", + "options": { + "archive": "ZIP", + "compression": "NONE", + "algorithms": [ + "sha512", + "md5" + ] + } + }, + "transport-config": { + "protocol-binding": { + "protocol": "filesystem", + "baseDir": "target/packages", + "createIfMissing": "true", + "overwrite": "true" + } + } + } +} \ No newline at end of file