Skip to content

Commit

Permalink
updating tei.xml: added series in guidingManifestatin; removed Publik…
Browse files Browse the repository at this point in the history
…ationsgeschichte duplication of guidingManifestation
  • Loading branch information
linxOD committed Sep 20, 2022
1 parent 060a32b commit 936565e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion freud_api_crawler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Peter Andorfer"""
__email__ = 'peter.andorfer@oeaw.ac.at'
__version__ = '2.0.3'
__version__ = '2.0.4'
43 changes: 26 additions & 17 deletions freud_api_crawler/templates/tei.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
</titleStmt>
<editionStmt>
<edition>Sigmund Freud Edition: Digitale Historisch-Kritische Gesamtausgabe</edition>
<respStmt>
<resp>Herausgegeben von</resp>
<name>Diercks, Christine</name>
<name>Rohrwasser, Michael</name>
</respStmt>
<respStmt>
<resp>Konzept für die Edition und die Datenbank, Richtlinien, Quellenforschung, Signaturen, Referenzsystem</resp>
<name>Diercks, Christine</name>
Expand All @@ -35,11 +40,10 @@
</respStmt>
<respStmt>
<resp>Diplomatische Umschrift, Lektorat</resp>
<name>Blatow, Arkadi</name>
<name>Diercks, Christine</name>
<name>Huber, Christian</name>
<name>Kaufmann, Kira</name>
<name>Rohrwasser, Michael</name>
<name>Liepold, Sophie</name>
</respStmt>
<respStmt>
<resp>Technische Umsetzung der Datenbank und der digitalen Instrumente</resp>
Expand Down Expand Up @@ -87,7 +91,8 @@
<head>Publikationsgeschichte</head>
{% if man.publicationHistory %}
{% for x in man.publicationHistory %}
<biblStruct xml:id="bibl-{{ x.signature|replace("/", "-") }}" {% if man.id in x.id %}sameAs="#guidingManifestation"{% endif %}>
{% if man.id not in x.id %}
<biblStruct xml:id="bibl-{{ x.signature|replace("/", "-") }}">
{% if man.type == "Monographie" or man.type == "Werkausgabe" or man.type == "Periodikum (Heft)" or man.type == "Periodikum (Jahrgang)" or man.type == "Periodiukum" %}
<monogr>
<title type="manifestation">{{ man.man_title }}</title>
Expand All @@ -97,23 +102,22 @@
<imprint>
{% if man.publication.publisher %}
{% for pub in man.publication.publisher %}
<publisher ref="#{{ pub.id }}">{{ pub.name }}</publisher>
<publisher ref="#{{ pub.id }}">{{ pub.name }}</publisher>
{% endfor %}
{% endif %}
{% if man.publication.places %}
{% for place in man.publication.places %}
<pubPlace>{{ place.name }}</pubPlace>
<pubPlace>{{ place.name }}</pubPlace>
{% endfor %}
{% endif %}
{% if man.publication.date %}
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
{% endif %}
</imprint>
{% endif %}
{% if man.page_num %}
<extent>{% 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 %}</extent>
{% endif %}
<note>{{ man.type }}</note>
</monogr>
{% if man.publication.id %}
<series>
Expand Down Expand Up @@ -157,14 +161,12 @@
{% if man.publication.jahrgang %}
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
{% endif %}
<note>{{ man.publication.type }}</note>
</series>
{% endif %}
{% else %}
<analytic>
<title type="manifestation">{{ man.man_title }}</title>
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
<note>{{ man.type }}</note>
</analytic>
{% if man.publication.id %}
<monogr>
Expand Down Expand Up @@ -197,8 +199,14 @@
{% endif %}
{% if man.publication.id %}
<imprint>
{% if man.publication.places %}{% for place in man.publication.places %}<pubPlace>{{ place.name }}</pubPlace>{% endfor %}{% endif %}
{% if man.publication.date %}<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>{% endif %}
{% if man.publication.places %}
{% for place in man.publication.places %}
<pubPlace>{{ place.name }}</pubPlace>
{% endfor %}
{% endif %}
{% if man.publication.date %}
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
{% endif %}
</imprint>
{% endif %}
{% if man.page_num %}<extent>{% 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 %}</extent>{% endif %}
Expand All @@ -214,14 +222,14 @@
{% if man.publication.jahrgang %}
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
{% endif %}
<note>{{ man.publication.type }}</note>
</monogr>
{% endif %}
{% endif %}
</biblStruct>
{% endif %}
{% endfor %}
{% endif %}
<biblStruct xml:id="guidingManifestation">
<biblStruct xml:id="bibl-{{ man.signature|replace("/", "-") }}" type="guidingManifestation">
{% if man.type == "Monographie" or man.type == "Werkausgabe" or man.type == "Periodikum (Heft)" or man.type == "Periodikum (Jahrgang)" or man.type == "Periodiukum" %}
<monogr>
<title type="manifestation">{{ man.man_title }}</title>
Expand All @@ -247,7 +255,6 @@
{% if man.page_num %}
<extent>{% 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 %}</extent>
{% endif %}
<note>{{ man.type }}</note>
</monogr>
{% if man.publication.id %}
<series>
Expand Down Expand Up @@ -291,14 +298,12 @@
{% if man.publication.jahrgang %}
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
{% endif %}
<note>{{ man.publication.type }}</note>
</series>
{% endif %}
{% else %}
<analytic>
<title type="manifestation">{{ man.man_title }}</title>
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
<note>{{ man.type }}</note>
</analytic>
{% if man.publication.id %}
<monogr>
Expand Down Expand Up @@ -356,7 +361,6 @@
{% if man.publication.jahrgang %}
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
{% endif %}
<note>{{ man.publication.type }}</note>
</monogr>
{% endif %}
{% endif %}
Expand All @@ -370,6 +374,11 @@
<idno type="url">https://www.freud-edition.net</idno>
</series>
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
<respStmt>
<resp>Herausgegeben von</resp>
<name>Diercks, Christine</name>
<name>Rohrwasser, Michael</name>
</respStmt>
<respStmt>
<resp>Konzept für die Edition und die Datenbank, Richtlinien, Quellenforschung,
Signaturen, Referenzsystem</resp>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/acdh-oeaw/freud_api_crawler',
version='2.0.3',
version='2.0.4',
zip_safe=False,
)

0 comments on commit 936565e

Please sign in to comment.