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

Fix datacite_gin publication doi translation #325

Merged
merged 2 commits into from
Jul 18, 2023
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
6 changes: 3 additions & 3 deletions datalad_catalog/tests/data/workflow_generated_meta_sub.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,18 @@
{
"type": "",
"title": "Sengupta, A., Kaule, F. R., Guntupalli, J. S., Hoffmann, M. B., H\u00e4usler, C., Stadler, J., Hanke, M. (2016). A studyforrest extension, retinotopic mapping and localization of higher visual areas. Scientific Data, 3, 160093.",
"doi": "doi:10.1038/sdata.2016.93",
"doi": "https://doi.org/10.1038/sdata.2016.93",
"datePublished": "",
"publicationOutlet": "",
"authors": []
},
{
"type": "",
"title": "Hanke, M, Adelh\u00f6fer, N, Kottke, D, Iacovella, V, Sengupta, A, Kaule, FR, Nigbur, R, Waite, AQ, Baumgartner, F, Stadler, J (2016). A studyforrest extension, simultaneous fMRI and eye gaze recordings during prolonged natural stimulation. Scientific Data, 3, 160092.",
"doi": "doi:10.1038/sdata.2016.92",
"doi": "https://doi.org/10.1038/sdata.2016.92",
"datePublished": "",
"publicationOutlet": "",
"authors": []
}
]
}
}
2 changes: 1 addition & 1 deletion datalad_catalog/translators/datacite_gin_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_publications(self):
'{"type":"", '
'"title":$pubin["citation"], '
'"doi":'
'($pubin["id"] | sub("DOI:"; "https://www.doi.org/")), '
'($pubin["id"] | sub("(?i)DOI:"; "https://doi.org/")), '
'"datePublished":"", '
'"publicationOutlet":"", '
'"authors": []}]'
Expand Down