diff --git a/ADSCitationCapture/tests/data/datacite_decoded_orcid.xml b/ADSCitationCapture/tests/data/datacite_decoded_orcid.xml
new file mode 100644
index 0000000..6b40e75
--- /dev/null
+++ b/ADSCitationCapture/tests/data/datacite_decoded_orcid.xml
@@ -0,0 +1,55 @@
+
+
+ 10.5281/ZENODO.10683242
+
+
+ Dudouet, Jérémie
+ Jérémie
+ Dudouet
+ 0000-0002-9018-6763
+ CNRS Délégation Rhône-Auvergne
+
+
+
+ Cubix
+
+ Zenodo
+ 2024
+
+
+ GUI
+ gamma-ray spectroscopy
+ ROOT
+ fits
+
+
+ 2024-02-20
+ 2023
+ 2024
+
+ en
+
+ oai:zenodo.org:10683242
+
+
+ 10.5281/zenodo.10255692
+ 10.5281/zenodo.10683241
+
+
+
+ 1.0
+
+ CeCILL-B Free Software License Agreement
+
+
+ Cubix is a ROOT based graphical interface providing a large number of tools for gamma-ray spectrocopy analysis like peak fits, calibrations, gamma-gamma analysis... It is linked with the TkN library to provide a direct access to nuclear databases.
+
+The source code is available on Gitlab: https://gitlab.in2p3.fr/ip2igamma/cubix/cubix
+
+The documentation website : https://cubix.in2p3.fr
+
+
+
+The Cubix project is governed by the CeCILL-B license under French law and abiding by the rules of distribution of free software. You can use, modify and/or redistribute the software under the terms of the CeCILL-B license as circulated by CEA, CNRS and INRIA at the following link www.cecill.info.
+
+
diff --git a/ADSCitationCapture/tests/data/datacite_parsed_metadata_orcid.json b/ADSCitationCapture/tests/data/datacite_parsed_metadata_orcid.json
new file mode 100644
index 0000000..5aeb8a1
--- /dev/null
+++ b/ADSCitationCapture/tests/data/datacite_parsed_metadata_orcid.json
@@ -0,0 +1 @@
+{"bibcode": "", "authors": ["Dudouet, J\u00e9r\u00e9mie"], "normalized_authors": ["Dudouet, J"], "affiliations": ["CNRS D\u00e9l\u00e9gation Rh\u00f4ne-Auvergne 0000-0002-9018-6763"], "title": "Cubix", "pubdate": "2023", "properties": {"DOI": "10.5281/ZENODO.10683242"}, "keywords": ["GUI", "gamma-ray spectroscopy", "ROOT", "fits"], "abstract": "Cubix is a ROOT based graphical interface providing a large number of tools for gamma-ray spectrocopy analysis like peak fits, calibrations, gamma-gamma analysis... It is linked with the TkN library to provide a direct access to nuclear databases.\n\nThe source code is available on Gitlab: https://gitlab.in2p3.fr/ip2igamma/cubix/cubix\n\nThe documentation website : https://cubix.in2p3.fr\n\n\n\nThe Cubix project is governed by the CeCILL-B license under French law and abiding by the rules of distribution of free software. You can use, modify and/or redistribute the software under the terms of the CeCILL-B license as circulated by CEA, CNRS and INRIA at the following link www.cecill.info.", "references": [], "citations": [], "doctype": "software", "version": "1.0", "versions": [], "version_of": ["10.5281/zenodo.10683241"], "forked_from": [], "forks": [], "described_by": [], "description_of": [], "source": "Zenodo"}
\ No newline at end of file
diff --git a/ADSCitationCapture/tests/test_doi.py b/ADSCitationCapture/tests/test_doi.py
index 1c3abc1..c617b11 100644
--- a/ADSCitationCapture/tests/test_doi.py
+++ b/ADSCitationCapture/tests/test_doi.py
@@ -62,6 +62,16 @@ def test_parse_metadata(self):
parsed_metadata = doi.dc.parse(raw_metadata)
self.assertEqual(parsed_metadata, expected_parsed_metadata)
+ def test_parse_metadata_orcid(self):
+ datacite_xml_format_filename = os.path.join(self.app.conf['PROJ_HOME'], "ADSCitationCapture/tests/data/datacite_decoded_orcid.xml")
+ with open(datacite_xml_format_filename, "r") as f:
+ raw_metadata = "".join(f.readlines())
+ datacite_parsed_metadata_filename = os.path.join(self.app.conf['PROJ_HOME'], "ADSCitationCapture/tests/data/datacite_parsed_metadata_orcid.json")
+ with open(datacite_parsed_metadata_filename, "r") as f:
+ expected_parsed_metadata = json.loads("".join(f.readlines()))
+ parsed_metadata = doi.dc.parse(raw_metadata)
+ self.assertEqual(parsed_metadata, expected_parsed_metadata)
+
def test_build_bibcode(self):
expected_bibcode = "2007zndo.....48535G"
datacite_parsed_metadata_filename = os.path.join(self.app.conf['PROJ_HOME'], "ADSCitationCapture/tests/data/datacite_parsed_metadata_and_authors.json")
diff --git a/requirements.txt b/requirements.txt
index 4c3e2b1..5f6e0a9 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,4 +1,4 @@
-git+https://github.com/adsabs/adsabs-pyingest@v1.2.5
+git+https://github.com/adsabs/adsabs-pyingest@v1.2.6
adsputils==1.4.3
psycopg2-binary==2.8.3
alembic==0.9.3
@@ -9,4 +9,4 @@ astropy==5.2.2
portalocker==1.7.1
SQLAlchemy-Utils==0.37.8
unidecode==0.04.21
-setuptools<=56
+setuptools<=56
\ No newline at end of file