MaRDI4NFDI / python-zbMathRest2Oai

Read data from the zbMATH Open API https://api.zbmath.org/docs and feed it to the OAI-PMH server https://oai.portal.mardi4nfdi.de/oai/
GNU General Public License v3.0
4 stars 0 forks source link

Add tests for XSLT files #32

Closed physikerwelt closed 9 months ago

physikerwelt commented 9 months ago

see https://stackoverflow.com/a/16699042/9215209

Apply xslt transform to document and compare with the expected result as done in https://github.com/MaRDI4NFDI/python-zbMathRest2Oai/blob/c053cf6fb304ad130f866defa851051e4c4bd41c/test/test_oai_preview.py

Mazztok45 commented 9 months ago

The last commit https://github.com/MaRDI4NFDI/python-zbMathRest2Oai/commit/9173affd74e0224b01d9212a74c6d2c3b78f6498 comes with zero error now. Some enrichment both to the XSLT and adding/removing of nodes in the reference,xml where necessary, to ensure to have a reference.xml, inspired by https://datacite-metadata-schema.readthedocs.io/en/4.5/mappings/force11-software-citation/ and based on https://api.datacite.org/dois/application/vnd.datacite.datacite+xml/10.5281/zenodo.7635478 but still adapted to our metadata and always in the respect of the Datacite metadata vocabulary documentation.

Do you see any other points I should solve there?