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

Reshaping the References in the relatedItem of Datacite #62

Closed Shirazos7 closed 1 month ago

Shirazos7 commented 4 months ago

Issue description: relatedItem is an invalid subelement inside the relatedIdentifiers element relatedIdentifier must have a relatedIdentifierType from the controlled list relatedItemType property will be invalid when these elements are changed to relatedIdentifier None of these elements will be valid inside relatedIdentifier objects TODOS:

1 . Copy the elements to a relatedItems element and rename these elements to relatedIdentifier

  1. Move the DOI information from the relatedItemIdentifier elements in the lines below to be the value of the relatedIdentifier elements, with relatedIdentifierType="DOI" property
  2. Replace with resourceTypeGeneral property
  3. As the elements should have been copied to the relatedItem objects as proposed above, these instances should be deleted
Shirazos7 commented 4 months ago

the coming commits will be to fix this issue

670dfd9 e64e5e9

Shirazos7 commented 4 months ago

the commits are reshaping the relatedItems to include all the references and also taking care of the title of each reference as much as possible to be readable and clear 50f35a4 551e815

Shirazos7 commented 4 months ago

adding the zbmath.org/ for the value of the document_id to be a url identifier and adding the properties and subproperties for the relatedItemIentifierType to be matched also with the relatedIdentifiers e525918 af27499