Skip to content

Commit

Permalink
Merge pull request #325 from mslw/fix-dgt-doi
Browse files Browse the repository at this point in the history
Fix datacite_gin publication doi translation
  • Loading branch information
jsheunis authored Jul 18, 2023
2 parents f612cb1 + abd9d39 commit fa44b1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit fa44b1f

Please # to comment.