diff --git a/.eclipse-pass.local_env b/.eclipse-pass.local_env index 98fd93b4..d2b5c362 100644 --- a/.eclipse-pass.local_env +++ b/.eclipse-pass.local_env @@ -48,6 +48,10 @@ DSPACE_SERVER=dspace:8080 DSPACE_USER=test@test.edu DSPACE_PASSWORD=admin +INVENIORDM_API_BASE_URL=https://pass-docker-invenio-rdm-frontend-1/api +INVENIORDM_VERIFY_SSL_CERT=false +INVENIORDM_API_TOKEN= + PMC_FTP_HOST=pmc-sftp-server PMC_FTP_PORT=22 PMC_FTP_USER=pmcsftpuser diff --git a/demo_data.json b/demo_data.json index cccdfc11..a620afab 100644 --- a/demo_data.json +++ b/demo_data.json @@ -68,6 +68,26 @@ } } }, + { + "op": "add", + "path": "/repository", + "value": { + "id": "4", + "type": "repository", + "attributes": { + "agreementText": "InvenioRDM agreement", + "integrationType": "full", + "formSchema": "{\"id\":\"InvenioRDM\",\"schema\":{\"title\":\"InvenioRDM

Deposit requirements.

\",\"type\":\"object\",\"properties\":{\"authors\":{\"title\":\"
Author(s) (required)
\",\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"object\",\"properties\":{\"author\":{\"type\":\"string\",\"fieldClass\":\"body-text col-6 pull-left pl-0\"}}}}}},\"options\":{\"fields\":{\"authors\":{\"hidden\":false}}}}", + "name": "InvenioRDM", + "url": "https://inveniosoftware.org/products/rdm/", + "repositoryKey": "inveniordm", + "schemas": [ + "https://eclipse-pass.github.io/metadata-schemas/jhu/jscholarship.json", + "https://eclipse-pass.github.io/metadata-schemas/jhu/common.json" + ] + } + } + }, { "op": "add", "path": "/policy", @@ -344,6 +364,29 @@ } } }, + { + "op": "add", + "path": "/policy", + "value": { + "id": "12", + "type": "policy", + "attributes": { + "policyUrl": "https://inveniosoftware.org/products/rdm/", + "description": "InvenioRDM policy description", + "title": "InvenioRDM Policy" + }, + "relationships": { + "repositories": { + "data": [ + { + "id": "4", + "type": "repository" + } + ] + } + } + } + }, { "op": "add", "path": "/funder", @@ -442,6 +485,26 @@ } } }, + { + "op": "add", + "path": "/funder", + "value": { + "id": "6", + "type": "funder", + "attributes": { + "localKey": "johnshopkins.edu:funder:INVENIORDM_FUNDER_LK", + "name": "INVENIORDM_TEST_FUNDER" + }, + "relationships": { + "policy": { + "data": { + "id": "12", + "type": "policy" + } + } + } + } + }, { "op": "add", "path": "/user", @@ -1503,6 +1566,43 @@ } } }, + { + "op": "add", + "path": "/grant", + "value": { + "id": "11", + "type": "grant", + "attributes": { + "endDate": "2026-07-31T00:00:00.000Z", + "startDate": "2023-07-01T00:00:00.000Z", + "awardDate": "2023-08-04T00:00:00.000Z", + "awardNumber": "invenio-test-awd-num-1", + "awardStatus": "active", + "projectName": "PASS TEST INVENIORDM GRANT", + "localKey": "johnshopkins.edu:grant:112233" + }, + "relationships": { + "pi": { + "data": { + "id": "2", + "type": "user" + } + }, + "directFunder": { + "data": { + "id": "6", + "type": "funder" + } + }, + "primaryFunder": { + "data": { + "id": "6", + "type": "funder" + } + } + } + } + }, { "op": "add", "path": "/submission", diff --git a/deposit/deposit-repositories.json b/deposit/deposit-repositories.json index a85fcde5..54289222 100644 --- a/deposit/deposit-repositories.json +++ b/deposit/deposit-repositories.json @@ -69,5 +69,16 @@ "default-directory": "/upload/%s" } } + }, + "InvenioRDM": { + "assembler": { + "specification": "invenioRdm", + "beanName": "invenioRdmAssembler" + }, + "transport-config": { + "protocol-binding": { + "protocol": "invenioRdm" + } + } } }