Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data/config for InvenioRDM #378

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eclipse-pass.local_env
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ DSPACE_SERVER=dspace:8080
[email protected]
DSPACE_PASSWORD=admin

INVENIORDM_API_BASE_URL=https://pass-docker-invenio-rdm-frontend-1/api
INVENIORDM_VERIFY_SSL_CERT=false
INVENIORDM_API_TOKEN=<generated_api_key>

PMC_FTP_HOST=pmc-sftp-server
PMC_FTP_PORT=22
PMC_FTP_USER=pmcsftpuser
Expand Down
100 changes: 100 additions & 0 deletions demo_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <br><p class=\"lead text-muted\">Deposit requirements.</p>\",\"type\":\"object\",\"properties\":{\"authors\":{\"title\":\"<div class=\"row\"><div class=\"col-6\">Author(s) <small class=\"text-muted\">(required)</small></div><div class=\"col-6 p-0\"></div></div>\",\"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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions deposit/deposit-repositories.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,16 @@
"default-directory": "/upload/%s"
}
}
},
"InvenioRDM": {
"assembler": {
"specification": "invenioRdm",
"beanName": "invenioRdmAssembler"
},
"transport-config": {
"protocol-binding": {
"protocol": "invenioRdm"
}
}
}
}
Loading