Closed physikerwelt closed 10 months ago
@Mazztok45 please review the issue description and help Shiraz to implement it step by step. One approach might also be to do this in a remote pair programming session.
I was quite happy with https://www.jetbrains.com/help/idea/code-with-me.html#cwm_settings, but if you don't use pycharm other options might be better.
As it turns out to be a bit too difficult to start with, we want to go to a generic XML format first and convert via XSLT to the zbMath Open preview and datacite formats.
Write a Python program that generates the following output
As input, data from https://api.zbmath.org/document/6383667 should be used exclusively. If the data is not available, write MISSING in the output and make a list of all data that is missing. You can start from https://github.com/MaRDI4NFDI/python-zbMathRest2Oai/blob/main/src/zbmath_rest2oai/getWithSwagger.py and adjust the resulting XML format. Some hints from the code currently generating the XML output.
This generates the first line.
The following function might be helpful to generate text elements:
Don't hesitate to ask questions if you don't know how to proceed. Please try to work in small steps. For example, a first commit could be just to generate the root element and the id.