From 6ba511ab4c57dfab44e2d2d2879bc0c25283f507 Mon Sep 17 00:00:00 2001 From: Daniel_Stoxreiter Date: Tue, 20 Sep 2022 13:47:10 +0200 Subject: [PATCH] bugfix: wrong selector for publication history --- freud_api_crawler/__init__.py | 2 +- freud_api_crawler/templates/tei.xml | 114 ++++++++++++++-------------- setup.py | 2 +- 3 files changed, 59 insertions(+), 59 deletions(-) diff --git a/freud_api_crawler/__init__.py b/freud_api_crawler/__init__.py index 25b5442..2e17545 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.5' +__version__ = '2.0.6' diff --git a/freud_api_crawler/templates/tei.xml b/freud_api_crawler/templates/tei.xml index 5463215..7076a88 100644 --- a/freud_api_crawler/templates/tei.xml +++ b/freud_api_crawler/templates/tei.xml @@ -93,134 +93,134 @@ {% for x in man.publicationHistory %} {% if man.id not in x.id %} - {% if man.type == "Monographie" or man.type == "Werkausgabe" or man.type == "Periodikum (Heft)" or man.type == "Periodikum (Jahrgang)" or man.type == "Periodiukum" %} + {% if x.type == "Monographie" or x.type == "Werkausgabe" or x.type == "Periodikum (Heft)" or x.type == "Periodikum (Jahrgang)" or x.type == "Periodiukum" %} - {{ man.man_title }} - {{ man.man_shorttitle }} - {{ man.author.name }} - {% if man.publication.id %} + {{ x.man_title }} + {{ x.man_shorttitle }} + {{ x.author.name }} + {% if x.publication.id %} - {% if man.publication.publisher %} - {% for pub in man.publication.publisher %} + {% if x.publication.publisher %} + {% for pub in x.publication.publisher %} {{ pub.name }} {% endfor %} {% endif %} - {% if man.publication.places %} - {% for place in man.publication.places %} + {% if x.publication.places %} + {% for place in x.publication.places %} {{ place.name }} {% endfor %} {% endif %} - {% if man.publication.date %} - {{ man.publication.date }} + {% if x.publication.date %} + {{ x.publication.date }} {% endif %} {% endif %} - {% if man.page_num %} - {% if man.page_num.start %}{{ man.page_num.start }}{% endif %}{% if man.page_num.start and man.page_num.end %} - {% endif %}{% if man.page_num.end %}{{ man.page_num.end }} Seiten{% endif %} + {% if x.page_num %} + {% if x.page_num.start %}{{ x.page_num.start }}{% endif %}{% if x.page_num.start and x.page_num.end %} - {% endif %}{% if x.page_num.end %}{{ x.page_num.end }} Seiten{% endif %} {% endif %} - {% if man.publication.id %} + {% if x.publication.id %} - {% if man.publication.title_main %} - {{ man.publication.title_main }} + {% if x.publication.title_main %} + {{ x.publication.title_main }} {% endif %} - {{ man.man_shorttitle }} - {% if man.publication.herausgeber %} + {{ x.man_shorttitle }} + {% if x.publication.herausgeber %} Herausgegeben von - {% for pub in man.publication.herausgeber %} + {% for pub in x.publication.herausgeber %} {{ pub.name }} {% endfor %} {% endif %} - {% if man.publication.editor %} + {% if x.publication.editor %} Editiert von - {% for pub in man.publication.editor %} + {% for pub in x.publication.editor %} {{ pub.name }} {% endfor %} {% endif %} - {% if man.publication.advisor %} + {% if x.publication.advisor %} Editiert von - {% for pub in man.publication.advisor %} + {% for pub in x.publication.advisor %} {{ pub.name }} {% endfor %} {% endif %} - {% if man.publication.band %} - {{ man.publication.band.name }} + {% if x.publication.band %} + {{ x.publication.band.name }} {% endif %} - {% if man.publication.reihe.name %} - {{ man.publication.reihe.name }} + {% if x.publication.reihe.name %} + {{ x.publication.reihe.name }} {% endif %} - {% if man.publication.edition %} - {{ man.publication.edition.name }} + {% if x.publication.edition %} + {{ x.publication.edition.name }} {% endif %} - {% if man.publication.jahrgang %} - {{ man.publication.jahrgang }} + {% if x.publication.jahrgang %} + {{ x.publication.jahrgang }} {% endif %} {% endif %} {% else %} - {{ man.man_title }} - {{ man.author.name }} + {{ x.man_title }} + {{ x.author.name }} - {% if man.publication.id %} + {% if x.publication.id %} - {{ man.publication.title_main }} - {{ man.publication.title_sub }} - {{ man.publication.title_short }} - {% if man.publication.herausgeber %} + {{ x.publication.title_main }} + {{ x.publication.title_sub }} + {{ x.publication.title_short }} + {% if x.publication.herausgeber %} Herausgegeben von - {% for pub in man.publication.herausgeber %} + {% for pub in x.publication.herausgeber %} {{ pub.name }} {% endfor %} {% endif %} - {% if man.publication.editor %} + {% if x.publication.editor %} Editiert von - {% for pub in man.publication.editor %} + {% for pub in x.publication.editor %} {{ pub.name }} {% endfor %} {% endif %} - {% if man.publication.advisor %} + {% if x.publication.advisor %} Editiert von - {% for pub in man.publication.advisor %} + {% for pub in x.publication.advisor %} {{ pub.name }} {% endfor %} {% endif %} - {% if man.publication.id %} + {% if x.publication.id %} - {% if man.publication.places %} - {% for place in man.publication.places %} + {% if x.publication.places %} + {% for place in x.publication.places %} {{ place.name }} {% endfor %} {% endif %} - {% if man.publication.date %} - {{ man.publication.date }} + {% if x.publication.date %} + {{ x.publication.date }} {% endif %} {% endif %} - {% if man.page_num %}{% if man.page_num.start %}{{ man.page_num.start }}{% endif %}{% if man.page_num.start and man.page_num.end %} - {% endif %}{% if man.page_num.end %}{{ man.page_num.end }} Seiten{% endif %}{% endif %} - {% if man.publication.band %} - {{ man.publication.band.name }} + {% if x.page_num %}{% if x.page_num.start %}{{ x.page_num.start }}{% endif %}{% if x.page_num.start and x.page_num.end %} - {% endif %}{% if x.page_num.end %}{{ x.page_num.end }} Seiten{% endif %}{% endif %} + {% if x.publication.band %} + {{ x.publication.band.name }} {% endif %} - {% if man.publication.reihe.name %} - {{ man.publication.reihe.name }} + {% if x.publication.reihe.name %} + {{ x.publication.reihe.name }} {% endif %} - {% if man.publication.edition %} - {{ man.publication.edition.name }} + {% if x.publication.edition %} + {{ x.publication.edition.name }} {% endif %} - {% if man.publication.jahrgang %} - {{ man.publication.jahrgang }} + {% if x.publication.jahrgang %} + {{ x.publication.jahrgang }} {% endif %} {% endif %} diff --git a/setup.py b/setup.py index 3d3754d..a3a588f 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.5', + version='2.0.6', zip_safe=False, )