Skip to content

Commit 6ba511a

Browse files
committed
bugfix: wrong selector for publication history
1 parent 0fc4f95 commit 6ba511a

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
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.5'
5+
__version__ = '2.0.6'

freud_api_crawler/templates/tei.xml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -93,134 +93,134 @@
9393
{% for x in man.publicationHistory %}
9494
{% if man.id not in x.id %}
9595
<biblStruct xml:id="bibl-{{ x.signature|replace("/", "-") }}">
96-
{% if man.type == "Monographie" or man.type == "Werkausgabe" or man.type == "Periodikum (Heft)" or man.type == "Periodikum (Jahrgang)" or man.type == "Periodiukum" %}
96+
{% if x.type == "Monographie" or x.type == "Werkausgabe" or x.type == "Periodikum (Heft)" or x.type == "Periodikum (Jahrgang)" or x.type == "Periodiukum" %}
9797
<monogr>
98-
<title type="manifestation">{{ man.man_title }}</title>
99-
<title type="manifestation-short">{{ man.man_shorttitle }}</title>
100-
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
101-
{% if man.publication.id %}
98+
<title type="manifestation">{{ x.man_title }}</title>
99+
<title type="manifestation-short">{{ x.man_shorttitle }}</title>
100+
<author ref="#{{ x.author.id }}">{{ x.author.name }}</author>
101+
{% if x.publication.id %}
102102
<imprint>
103-
{% if man.publication.publisher %}
104-
{% for pub in man.publication.publisher %}
103+
{% if x.publication.publisher %}
104+
{% for pub in x.publication.publisher %}
105105
<publisher ref="#{{ pub.id }}">{{ pub.name }}</publisher>
106106
{% endfor %}
107107
{% endif %}
108-
{% if man.publication.places %}
109-
{% for place in man.publication.places %}
108+
{% if x.publication.places %}
109+
{% for place in x.publication.places %}
110110
<pubPlace>{{ place.name }}</pubPlace>
111111
{% endfor %}
112112
{% endif %}
113-
{% if man.publication.date %}
114-
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
113+
{% if x.publication.date %}
114+
<date when="{{ x.publication.date }}">{{ x.publication.date }}</date>
115115
{% endif %}
116116
</imprint>
117117
{% endif %}
118-
{% if man.page_num %}
119-
<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>
118+
{% if x.page_num %}
119+
<extent>{% 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 %}</extent>
120120
{% endif %}
121121
</monogr>
122-
{% if man.publication.id %}
122+
{% if x.publication.id %}
123123
<series>
124-
{% if man.publication.title_main %}
125-
<title type="publication" level="s">{{ man.publication.title_main }}</title>
124+
{% if x.publication.title_main %}
125+
<title type="publication" level="s">{{ x.publication.title_main }}</title>
126126
{% endif %}
127-
<title type="publication-short" level="s">{{ man.man_shorttitle }}</title>
128-
{% if man.publication.herausgeber %}
127+
<title type="publication-short" level="s">{{ x.man_shorttitle }}</title>
128+
{% if x.publication.herausgeber %}
129129
<respStmt>
130130
<resp>Herausgegeben von</resp>
131-
{% for pub in man.publication.herausgeber %}
131+
{% for pub in x.publication.herausgeber %}
132132
<name type="person" ref="#{{ pub.id }}">{{ pub.name }}</name>
133133
{% endfor %}
134134
</respStmt>
135135
{% endif %}
136-
{% if man.publication.editor %}
136+
{% if x.publication.editor %}
137137
<respStmt>
138138
<resp>Editiert von</resp>
139-
{% for pub in man.publication.editor %}
139+
{% for pub in x.publication.editor %}
140140
<name ref="#{{ pub.id }}">{{ pub.name }}</name>
141141
{% endfor %}
142142
</respStmt>
143143
{% endif %}
144-
{% if man.publication.advisor %}
144+
{% if x.publication.advisor %}
145145
<respStmt>
146146
<resp>Editiert von</resp>
147-
{% for pub in man.publication.advisor %}
147+
{% for pub in x.publication.advisor %}
148148
<name ref="#{{ pub.id }}">{{ pub.name }}</name>
149149
{% endfor %}
150150
</respStmt>
151151
{% endif %}
152-
{% if man.publication.band %}
153-
<biblScope unit="volume">{{ man.publication.band.name }}</biblScope>
152+
{% if x.publication.band %}
153+
<biblScope unit="volume">{{ x.publication.band.name }}</biblScope>
154154
{% endif %}
155-
{% if man.publication.reihe.name %}
156-
<biblScope unit="series">{{ man.publication.reihe.name }}</biblScope>
155+
{% if x.publication.reihe.name %}
156+
<biblScope unit="series">{{ x.publication.reihe.name }}</biblScope>
157157
{% endif %}
158-
{% if man.publication.edition %}
159-
<biblScope unit="issue">{{ man.publication.edition.name }}</biblScope>
158+
{% if x.publication.edition %}
159+
<biblScope unit="issue">{{ x.publication.edition.name }}</biblScope>
160160
{% endif %}
161-
{% if man.publication.jahrgang %}
162-
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
161+
{% if x.publication.jahrgang %}
162+
<biblScope unit="year">{{ x.publication.jahrgang }}</biblScope>
163163
{% endif %}
164164
</series>
165165
{% endif %}
166166
{% else %}
167167
<analytic>
168-
<title type="manifestation">{{ man.man_title }}</title>
169-
<author ref="#{{ man.author.id }}">{{ man.author.name }}</author>
168+
<title type="manifestation">{{ x.man_title }}</title>
169+
<author ref="#{{ x.author.id }}">{{ x.author.name }}</author>
170170
</analytic>
171-
{% if man.publication.id %}
171+
{% if x.publication.id %}
172172
<monogr>
173-
<title type="publication">{{ man.publication.title_main }}</title>
174-
<title type="publication-sub">{{ man.publication.title_sub }}</title>
175-
<title type="publication-short">{{ man.publication.title_short }}</title>
176-
{% if man.publication.herausgeber %}
173+
<title type="publication">{{ x.publication.title_main }}</title>
174+
<title type="publication-sub">{{ x.publication.title_sub }}</title>
175+
<title type="publication-short">{{ x.publication.title_short }}</title>
176+
{% if x.publication.herausgeber %}
177177
<respStmt>
178178
<resp>Herausgegeben von</resp>
179-
{% for pub in man.publication.herausgeber %}
179+
{% for pub in x.publication.herausgeber %}
180180
<name type="person" ref="#{{ pub.id }}">{{ pub.name }}</name>
181181
{% endfor %}
182182
</respStmt>
183183
{% endif %}
184-
{% if man.publication.editor %}
184+
{% if x.publication.editor %}
185185
<respStmt>
186186
<resp>Editiert von</resp>
187-
{% for pub in man.publication.editor %}
187+
{% for pub in x.publication.editor %}
188188
<name ref="#{{ pub.id }}">{{ pub.name }}</name>
189189
{% endfor %}
190190
</respStmt>
191191
{% endif %}
192-
{% if man.publication.advisor %}
192+
{% if x.publication.advisor %}
193193
<respStmt>
194194
<resp>Editiert von</resp>
195-
{% for pub in man.publication.advisor %}
195+
{% for pub in x.publication.advisor %}
196196
<name ref="#{{ pub.id }}">{{ pub.name }}</name>
197197
{% endfor %}
198198
</respStmt>
199199
{% endif %}
200-
{% if man.publication.id %}
200+
{% if x.publication.id %}
201201
<imprint>
202-
{% if man.publication.places %}
203-
{% for place in man.publication.places %}
202+
{% if x.publication.places %}
203+
{% for place in x.publication.places %}
204204
<pubPlace>{{ place.name }}</pubPlace>
205205
{% endfor %}
206206
{% endif %}
207-
{% if man.publication.date %}
208-
<date when="{{ man.publication.date }}">{{ man.publication.date }}</date>
207+
{% if x.publication.date %}
208+
<date when="{{ x.publication.date }}">{{ x.publication.date }}</date>
209209
{% endif %}
210210
</imprint>
211211
{% endif %}
212-
{% 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 %}
213-
{% if man.publication.band %}
214-
<biblScope unit="volume">{{ man.publication.band.name }}</biblScope>
212+
{% if x.page_num %}<extent>{% 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 %}</extent>{% endif %}
213+
{% if x.publication.band %}
214+
<biblScope unit="volume">{{ x.publication.band.name }}</biblScope>
215215
{% endif %}
216-
{% if man.publication.reihe.name %}
217-
<biblScope unit="series">{{ man.publication.reihe.name }}</biblScope>
216+
{% if x.publication.reihe.name %}
217+
<biblScope unit="series">{{ x.publication.reihe.name }}</biblScope>
218218
{% endif %}
219-
{% if man.publication.edition %}
220-
<biblScope unit="issue">{{ man.publication.edition.name }}</biblScope>
219+
{% if x.publication.edition %}
220+
<biblScope unit="issue">{{ x.publication.edition.name }}</biblScope>
221221
{% endif %}
222-
{% if man.publication.jahrgang %}
223-
<biblScope unit="year">{{ man.publication.jahrgang }}</biblScope>
222+
{% if x.publication.jahrgang %}
223+
<biblScope unit="year">{{ x.publication.jahrgang }}</biblScope>
224224
{% endif %}
225225
</monogr>
226226
{% endif %}

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.5',
75+
version='2.0.6',
7676
zip_safe=False,
7777
)

0 commit comments

Comments
 (0)