diff --git a/src/zbmath_rest2oai/writeLocal.py b/src/zbmath_rest2oai/writeLocal.py index d8e4848..aadbd0a 100644 --- a/src/zbmath_rest2oai/writeLocal.py +++ b/src/zbmath_rest2oai/writeLocal.py @@ -9,7 +9,11 @@ def write_oai(api_source): - return getAsXml.final_xml2(api_source) + xml = getAsXml.final_xml2(api_source) + with open('temp_folder_software_metadata/{}.xml'.format(apisource), "wb") as f: + f.write(xml) + f.close() + if __name__ == '__main__': import sys write_oai(sys.argv[1]) \ No newline at end of file diff --git a/src/zbmath_rest2oai/writeLocal.sh b/src/zbmath_rest2oai/writeLocal.sh index e69de29..d2c1952 100644 --- a/src/zbmath_rest2oai/writeLocal.sh +++ b/src/zbmath_rest2oai/writeLocal.sh @@ -0,0 +1,2 @@ + +mkdir temp_folder_software_metadata