diff --git a/freud_api_crawler/__init__.py b/freud_api_crawler/__init__.py index 9d442c0..6032473 100644 --- a/freud_api_crawler/__init__.py +++ b/freud_api_crawler/__init__.py @@ -2,4 +2,4 @@ __author__ = """Peter Andorfer""" __email__ = 'peter.andorfer@oeaw.ac.at' -__version__ = '2.0.0' +__version__ = '2.0.1' diff --git a/freud_api_crawler/fixtures/make_tei.xslt b/freud_api_crawler/fixtures/make_tei.xslt index 75d345d..7ade48c 100644 --- a/freud_api_crawler/fixtures/make_tei.xslt +++ b/freud_api_crawler/fixtures/make_tei.xslt @@ -147,10 +147,10 @@ - inlinequote + inlinequote - blockquote + blockquote #em @@ -165,7 +165,7 @@ #################### --> - blockquote + blockquote diff --git a/freud_api_crawler/freud_api_crawler.py b/freud_api_crawler/freud_api_crawler.py index 65d1564..33c159b 100644 --- a/freud_api_crawler/freud_api_crawler.py +++ b/freud_api_crawler/freud_api_crawler.py @@ -424,6 +424,11 @@ def get_man_json_dump(self, lmt=True, dmp=False): json_dump["url"] = f"{self.endpoint}{man_type}/{self.manifestation_id}" json_dump['man_title'] = self.md__title json_dump['signature'] = self.manifestation_signatur + try: + json_dump['note_i'] = self.manifestation['data']['attributes']['field_anmerkung_intern_']['processed'] + except (KeyError, TypeError): + json_dump['note_i'] = None + print("No 'note intern' found!") try: s_title_t = self.manifestation['data']['attributes']['field_shorttitle'] json_dump['man_shorttitle'] = escape(s_title_t['value']) @@ -538,7 +543,7 @@ def get_man_json_dump(self, lmt=True, dmp=False): json_dump["work"] = {} json_dump["work"]["id"] = f"bibl__{self.werk['id']}" json_dump["work"]["title"] = escape(self.werk['attributes']['title']) - json_dump["work"]["url"] = f"{self.endpoint}werk/{self.werk['id']}" + json_dump["work"]["url"] = f"{self.endpoint}node/werk/{self.werk['id']}" json_dump["work"]["browser_url"] = f"{self.browser}{self.werk_folder}" # publication level 1 init_methods = { diff --git a/freud_api_crawler/templates/tei.xml b/freud_api_crawler/templates/tei.xml index 660a16d..1415dfa 100644 --- a/freud_api_crawler/templates/tei.xml +++ b/freud_api_crawler/templates/tei.xml @@ -75,6 +75,13 @@ + {% if man.note_i %} + + + {{ man.note_i }} + + + {% endif %} {% if man.type == "Monographie" or man.type == "Werkausgabe" or man.type == "Periodikum (Heft)" or man.type == "Periodikum (Jahrgang)" or man.type == "Periodiukum" %} diff --git a/setup.py b/setup.py index 42c4125..d73809a 100644 --- a/setup.py +++ b/setup.py @@ -72,6 +72,6 @@ test_suite='tests', tests_require=test_requirements, url='https://github.com/acdh-oeaw/freud_api_crawler', - version='2.0.0', + version='2.0.1', zip_safe=False, )