Skip to content

Commit 936565e

Browse files
committed
updating tei.xml: added series in guidingManifestatin; removed Publikationsgeschichte duplication of guidingManifestation
1 parent 060a32b commit 936565e

File tree

3 files changed

+28
-19
lines changed

3 files changed

+28
-19
lines changed

freud_api_crawler/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Peter Andorfer"""
44
__email__ = '[email protected]'
5-
__version__ = '2.0.3'
5+
__version__ = '2.0.4'

freud_api_crawler/templates/tei.xml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
</titleStmt>
2626
<editionStmt>
2727
<edition>Sigmund Freud Edition: Digitale Historisch-Kritische Gesamtausgabe</edition>
28+
<respStmt>
29+
<resp>Herausgegeben von</resp>
30+
<name>Diercks, Christine</name>
31+
<name>Rohrwasser, Michael</name>
32+
</respStmt>
2833
<respStmt>
2934
<resp>Konzept für die Edition und die Datenbank, Richtlinien, Quellenforschung, Signaturen, Referenzsystem</resp>
3035
<name>Diercks, Christine</name>
@@ -35,11 +40,10 @@
3540
</respStmt>
3641
<respStmt>
3742
<resp>Diplomatische Umschrift, Lektorat</resp>
38-
<name>Blatow, Arkadi</name>
3943
<name>Diercks, Christine</name>
4044
<name>Huber, Christian</name>
4145
<name>Kaufmann, Kira</name>
42-
<name>Rohrwasser, Michael</name>
46+
<name>Liepold, Sophie</name>
4347
</respStmt>
4448
<respStmt>
4549
<resp>Technische Umsetzung der Datenbank und der digitalen Instrumente</resp>
@@ -87,7 +91,8 @@
8791
<head>Publikationsgeschichte</head>
8892
{% if man.publicationHistory %}
8993
{% for x in man.publicationHistory %}
90-
<biblStruct xml:id="bibl-{{ x.signature|replace("/", "-") }}" {% if man.id in x.id %}sameAs="#guidingManifestation"{% endif %}>
94+
{% if man.id not in x.id %}
95+
<biblStruct xml:id="bibl-{{ x.signature|replace("/", "-") }}">
9196
{% if man.type == "Monographie" or man.type == "Werkausgabe" or man.type == "Periodikum (Heft)" or man.type == "Periodikum (Jahrgang)" or man.type == "Periodiukum" %}
9297
<monogr>
9398
<title type="manifestation">{{ man.man_title }}</title>
@@ -97,23 +102,22 @@
97102
<imprint>
98103
{% if man.publication.publisher %}
99104
{% for pub in man.publication.publisher %}
100-
<publisher ref="#{{ pub.id }}">{{ pub.name }}</publisher>
105+
<publisher ref="#{{ pub.id }}">{{ pub.name }}</publisher>
101106
{% endfor %}
102107
{% endif %}
103108
{% if man.publication.places %}
104109
{% for place in man.publication.places %}
105-
<pubPlace>{{ place.name }}</pubPlace>
110+
<pubPlace>{{ place.name }}</pubPlace>
106111
{% endfor %}
107112
{% endif %}
108113
{% if man.publication.date %}
109-
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
114+
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
110115
{% endif %}
111116
</imprint>
112117
{% endif %}
113118
{% if man.page_num %}
114119
<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>
115120
{% endif %}
116-
<note>{{ man.type }}</note>
117121
</monogr>
118122
{% if man.publication.id %}
119123
<series>
@@ -157,14 +161,12 @@
157161
{% if man.publication.jahrgang %}
158162
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
159163
{% endif %}
160-
<note>{{ man.publication.type }}</note>
161164
</series>
162165
{% endif %}
163166
{% else %}
164167
<analytic>
165168
<title type="manifestation">{{ man.man_title }}</title>
166169
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
167-
<note>{{ man.type }}</note>
168170
</analytic>
169171
{% if man.publication.id %}
170172
<monogr>
@@ -197,8 +199,14 @@
197199
{% endif %}
198200
{% if man.publication.id %}
199201
<imprint>
200-
{% if man.publication.places %}{% for place in man.publication.places %}<pubPlace>{{ place.name }}</pubPlace>{% endfor %}{% endif %}
201-
{% if man.publication.date %}<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>{% endif %}
202+
{% if man.publication.places %}
203+
{% for place in man.publication.places %}
204+
<pubPlace>{{ place.name }}</pubPlace>
205+
{% endfor %}
206+
{% endif %}
207+
{% if man.publication.date %}
208+
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
209+
{% endif %}
202210
</imprint>
203211
{% endif %}
204212
{% 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 %}
@@ -214,14 +222,14 @@
214222
{% if man.publication.jahrgang %}
215223
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
216224
{% endif %}
217-
<note>{{ man.publication.type }}</note>
218225
</monogr>
219226
{% endif %}
220227
{% endif %}
221228
</biblStruct>
229+
{% endif %}
222230
{% endfor %}
223231
{% endif %}
224-
<biblStruct xml:id="guidingManifestation">
232+
<biblStruct xml:id="bibl-{{ man.signature|replace("/", "-") }}" type="guidingManifestation">
225233
{% if man.type == "Monographie" or man.type == "Werkausgabe" or man.type == "Periodikum (Heft)" or man.type == "Periodikum (Jahrgang)" or man.type == "Periodiukum" %}
226234
<monogr>
227235
<title type="manifestation">{{ man.man_title }}</title>
@@ -247,7 +255,6 @@
247255
{% if man.page_num %}
248256
<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>
249257
{% endif %}
250-
<note>{{ man.type }}</note>
251258
</monogr>
252259
{% if man.publication.id %}
253260
<series>
@@ -291,14 +298,12 @@
291298
{% if man.publication.jahrgang %}
292299
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
293300
{% endif %}
294-
<note>{{ man.publication.type }}</note>
295301
</series>
296302
{% endif %}
297303
{% else %}
298304
<analytic>
299305
<title type="manifestation">{{ man.man_title }}</title>
300306
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
301-
<note>{{ man.type }}</note>
302307
</analytic>
303308
{% if man.publication.id %}
304309
<monogr>
@@ -356,7 +361,6 @@
356361
{% if man.publication.jahrgang %}
357362
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
358363
{% endif %}
359-
<note>{{ man.publication.type }}</note>
360364
</monogr>
361365
{% endif %}
362366
{% endif %}
@@ -370,6 +374,11 @@
370374
<idno type="url">https://www.freud-edition.net</idno>
371375
</series>
372376
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
377+
<respStmt>
378+
<resp>Herausgegeben von</resp>
379+
<name>Diercks, Christine</name>
380+
<name>Rohrwasser, Michael</name>
381+
</respStmt>
373382
<respStmt>
374383
<resp>Konzept für die Edition und die Datenbank, Richtlinien, Quellenforschung,
375384
Signaturen, Referenzsystem</resp>

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@
7272
test_suite='tests',
7373
tests_require=test_requirements,
7474
url='https://github.com/acdh-oeaw/freud_api_crawler',
75-
version='2.0.3',
75+
version='2.0.4',
7676
zip_safe=False,
7777
)

0 commit comments

Comments
 (0)