register.xqm 23.5 KB
Newer Older
Mathias Goebel's avatar
Mathias Goebel committed
1
2
3
4
5
6
7
xquery version "3.1";

module namespace fontaneregister="http://fontane-nb.dariah.eu/register";
import module namespace console="http://exist-db.org/xquery/console" at "java:org.exist.console.xquery.ConsoleModule";

declare namespace ore="http://www.openarchives.org/ore/terms/";
declare namespace rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
Mathias Goebel's avatar
Mathias Goebel committed
8
declare namespace tei="http://www.tei-c.org/ns/1.0";
Mathias Goebel's avatar
Mathias Goebel committed
9
10
declare namespace tgmd="http://textgrid.info/namespaces/metadata/core/2010";

Mathias Goebel's avatar
Mathias Goebel committed
11
12
13
14
15
16
17
(: new stuff :)
declare variable $fontaneregister:metaCollection := '/db/sade-projects/textgrid/data/xml/meta/';

declare variable $fontaneregister:titles :=
map:new(
    for $title in collection($fontaneregister:metaCollection)//tgmd:title[starts-with(., "Notizbuch ")]
    let $uri := $title/base-uri() => substring-after($fontaneregister:metaCollection) => substring-before(".xml")
Mathias Goebel's avatar
Mathias Goebel committed
18
    return
Mathias Goebel's avatar
Mathias Goebel committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
        (map:entry($uri, string($title)),
        map:entry("textgrid:"||$uri, string($title)))
    );

declare function local:links3($links as element()*) {
let $uris :=
    $links ! (substring-after(./@target, "textgrid:") => substring(1,5))
    => distinct-values()
return
    if($uris = ()) then () else
    <ul>
        {   for $nb in $uris[.=map:keys($fontaneregister:titles)]
            let $title := $fontaneregister:titles($nb)
            let $surfaces := $links[contains(@target, $nb)]/substring-before(substring-after(@target, "@n='"), "'")
            let $link2surfaces := $surfaces ! local:create-links($nb, .)
            let $linksToTarget := ($link2surfaces[1], for $l in $link2surfaces[position() gt 1] return (", ", $l))
            order by $title
            return
                <li>{ replace($title, "Notizbuch ([A-E])0(\d)", "$1$2") } ({ $linksToTarget })</li>
        }
    </ul>
};

declare function local:create-links($uri as xs:string, $surface as xs:string) as element()? {
<a href="edition.html?id=/xml/data/{$uri}.xml&amp;page={ $surface }">{ $surface }</a>
};

(: END new stuff :)
declare function local:Links($links as element()*) {
(:let $links :=:)
(:    for $link in $links:)
(:    let $targetSf := substring-before(substring-after($link/string(@target), "surface[@n='"), "']"):)
(:    let $baseUri := substring(substring-after($link/@target, 'textgrid:'), 1, 5):)
(:    let $title := doc( '/db/sade-projects/textgrid/data/xml/meta/' || $baseUri || '.xml')//tgmd:title/text():)
(:    let $nb := request:get-parameter('nb', 'textgrid'):)
(:    order by $title:)
(:    return:)
(:        if(contains($link/@target, $nb)) then:)
(:        <li><a href="edition.html?id=/xml/data/{$baseUri}.xml&amp;page={$targetSf}">{$title} – {$targetSf}</a></li>:)
(:        else ():)
()
Mathias Goebel's avatar
Mathias Goebel committed
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
};

declare function local:Links2($link as element()) {
    let $targetSf := substring-before(substring-after($link/string(@target), "surface[@n='"), "']")
    let $baseUri := substring(substring-after($link/@target, 'textgrid:'), 1, 5)
    let $title := doc( '/db/sade-projects/textgrid/data/xml/meta/' || $baseUri || '.xml')//tgmd:title/text()
    let $nb := request:get-parameter('nb', 'textgrid')
    return
        if(contains($link/@target, $nb)) then
        <a href="edition.html?id=/xml/data/{$baseUri}.xml&amp;page={$targetSf}">{$targetSf}</a>
        else ()
};

declare function local:pointer($pointer, $targetNode) {
(:<ptr target="#Tizian"/>:)
<li> siehe <a href="register.html?{replace(request:get-query-string(), '(&amp;)*e=.+(&amp;)*', '')||(if(request:get-query-string() = "") then () else "&amp;")}e={$pointer/substring-after(@target, '#')}">{ ($targetNode//tei:persName)[1]/text() }</a> </li>
};

declare function fontaneregister:events($eventDoc) {
let $eventURI := tokenize($eventDoc/base-uri(), '/|\.')[8]
return
(: Ereignisregister :)
    <div id="r{ $eventURI }" class="tab-pane {if( request:get-parameter('r', '') = $eventURI ) then "active" else ()}">
        <div id="accordion{ $eventURI }" class="panel-group" aria-multiselectable="true" role="tablist">
        {for $eventList in $eventDoc/tei:listEvent
        return
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#collapse1-1" data-parent="#accordion" data-toggle="collapse">{$eventList/tei:head/text()}</a>
                    </h4>
                </div>
                <div class="panel-body">
                <ul>
                    { for $event in $eventList/tei:event
                    return
                        <li id="{ $event/string(@xml:id) }" class="registerEintrag {if($event/@xml:id = request:get-parameter('e', '')) then 'fhighlighted' else ()}">
                        {for $label at $pos in $event/tei:label/text()
                        return ($label, if($pos = 1) then
                            <span class="registerLink"> <a href="register.html?{replace(request:get-query-string(), '(&amp;)*e=.+(&amp;)*', '')||(if(request:get-query-string() = "") then () else "&amp;")}e={$event/string(@xml:id)}"><i title="Link zu diesem Eintrag" class="fa fa-link"></i></a> </span>
                            else (), <br/>)}
                            <ul>
                                {if( not( exists($event/@xml:id)) ) then local:pointer($event//tei:ptr, $eventList/tei:event[@xml:id = substring-after($event//tei:ptr/@target, '#')]) else
                                if (not($event//tei:link/contains(@target, request:get-parameter('nb', 'textgrid')) = true() )) then ()
                                else
                                if($event/tei:note/text()) then <li>{$event/tei:note/text()}</li> else ()}
                                <li>{if(count($event//tei:link) lt 2) then 'In Notizbuch' else 'In den Notizbüchern'}
                                    <ul>
                                        {for $link in $event//tei:link[@corresp="https://schema.org/mentions"]
                                        return local:Links($link)}
                                    </ul>
                                </li>

                            </ul>
                        </li>
                    }
                </ul>
                </div>
            </div>
        }
        </div>
    </div>
};

declare function fontaneregister:works($wrkDoc) {
let $r := request:get-parameter('r', '')
let $e := request:get-parameter('e', '')
let $wrkURI := tokenize($wrkDoc/base-uri(), '/|\.')[8]
return
(: Werkregister :)
            <div id="r{ $wrkURI }-{$wrkDoc/string(@type)}" class="tab-pane {
                        if(($r = "r253t3-"||string($wrkDoc/@type)) or ($e = $wrkDoc//*[@xml:id]/string(@xml:id)))
                        then 'active'
                        else ()
                    }">
                <div id="accordion{ $wrkURI }" class="panel-group" aria-multiselectable="true" role="tablist">
                {for $wrkList in $wrkDoc
                return
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title"><a href="#collapse1-1" data-parent="#accordion" data-toggle="collapse">{$wrkList/tei:head/text()}</a>
                            </h4>
                        </div>
                        <div class="panel-body">
                            <ul>
                                {for $wrk in $wrkList//tei:item[not(tei:list)]
                                let $nichtermittelt := if($wrk//tei:note/string(.) = "nicht ermittelt") then "(nicht ermittelt)" else ()
                                let $creator := $wrk//tei:link[ends-with(@corresp, "creator")]/substring-after(@target, 'psn:')
                                let $creator := (collection('/db/sade-projects/textgrid/data/xml/data')//tei:person[@xml:id=$creator]/tei:persName/text())[1]
                                let $location := $wrk//tei:link[ends-with(@corresp, "location")]/substring-after(@target, 'plc:')
                                let $klammer := ( $nichtermittelt, $creator, if($creator != "") then () else $location )
                                order by lower-case(($wrk/tei:name[not(@type)]/text())[1])
                                return
                                    if( not( exists($wrk/@xml:id)) ) then local:pointer($wrk//tei:ptr, $wrkList/tei:event[@xml:id = substring-after($wrk//tei:ptr/@target, '#')]) else
                                    if (not($wrk//tei:link/contains(@target, request:get-parameter('nb', 'textgrid')) = true() )) then ()
                                    else
                                    <li class="registerEintrag {if($wrk/@xml:id = request:get-parameter('e', '')) then 'fhighlighted' else ()}">
                                        {$wrk/tei:name[not(@type="variant")]/text()}
                                        {if(count($klammer) gt 0) then " ("|| string-join( $klammer[. != ""] ,';') ||")" else ()}
                                        <span class="registerLink"> <a href="register.html?{replace(request:get-query-string(), '(&amp;)*e=.+(&amp;)*', '')||(if(request:get-query-string() = "") then () else "&amp;")}e={$wrk/string(@xml:id)}"><i title="Link zu diesem Eintrag" class="fa fa-link"></i></a> </span>
                                        {if($wrk/tei:name[@type]) then
                                            <ul>
                                            <li> Im Text: {string-join( (for $i in $wrk/tei:name[@type] return $i/text()), '; ')}
                                            </li></ul> else ()}
                                            <ul><li>{if(count( distinct-values($wrk//tei:link[@corresp="https://schema.org/mentions"]/substring(substring-after(@target, 'textgrid:'), 1, 5)) ) lt 2) then 'In Notizbuch' else 'In den Notizbüchern'}
                                                <ul>
                                                  <!--  {
                                                    for $link in distinct-values($wrk//tei:link[@corresp="https://schema.org/mentions"]/)
                                                    return local:Links($link)} -->
                                                    {if($wrk//tei:linkGrp) then local:linkGroup(($wrk//tei:linkGrp)[1]) else ()}
                                                </ul>
                                            </li></ul>
                                    </li>
                                }
                            </ul>
                        </div>
                    </div>
                }
                </div>
            </div>
};

declare function local:linkGroup($linkGrp as element()) {
let $nbs := distinct-values(
    $linkGrp//tei:link[@corresp="https://schema.org/mentions"][not(contains(@target, "XXX"))]/substring(substring-after(@target, 'textgrid:'), 1, 5) )

return
    for $nb in $nbs
    let $title := doc( '/db/sade-projects/textgrid/data/xml/meta/' || $nb || '.xml')//tgmd:title/text()
    let $links := for $link in $linkGrp//tei:link[contains(@target, $nb)] return local:Links2($link)
    let $cntLinks := count($links)
    return
        <li onclick="javascript:;"> {$title}: {for $l at $pos in $links where $pos lt $cntLinks return ($l, ', '), $links[last()] } </li>


};

declare function local:pointerTest($ref, $nb) as xs:boolean {
    let $id := substring-after($ref, "#")
    let $target := string-join( collection("/db/sade-projects/textgrid/data/xml/data/")//*[@xml:id = $id]//tei:link/@target )
    return
        contains($target, $nb)
};

declare function fontaneregister:persons( $persDoc ) {
let $persURI := tokenize($persDoc/base-uri(), '/|\.')[8]
return
(: Personenregister :)
    <div id="r{ $persURI }" class="tab-pane {if( request:get-parameter('r', '') = $persURI or ($persDoc//@xml:id = request:get-parameter('e', '')) ) then "active" else ()}">
        <div id="accordion{ $persURI }" class="panel-group" aria-multiselectable="true" role="tablist">
        {for $persList in $persDoc
        return
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#collapse1-1" data-parent="#accordion" data-toggle="collapse">{$persList/tei:head/text()}</a>
                    </h4>
                </div>
                <div class="panel-body">
                <ul>
Mathias Goebel's avatar
Mathias Goebel committed
218
219
220
221
222
223
224
225
                    {for $pers in $persList/tei:person|$persList/tei:personGrp
                    let $classes := ("registerEintrag",
                                    "reg-"||$pers/local-name(),
                                    if($pers/@xml:id = request:get-parameter('e', '')) then 'fhighlighted' else ())
                    let $primaryName := string( $pers/tei:persName[1] )
                    let $isPointer := not(exists($pers/@xml:id))
                    let $pointer := if($isPointer) then local:pointer($pers//tei:ptr, $persList/ancestor::*//*[@xml:id = substring-after($pers//tei:ptr/@target, '#')]) else ()
                    where ($pers//tei:link/contains(@target, map:keys($fontaneregister:titles))) = true()
Mathias Goebel's avatar
Mathias Goebel committed
226
                    return
Mathias Goebel's avatar
Mathias Goebel committed
227
228
229
230
231
232
233
234
235
236
237
                   <li id="{$pers/@xml:id}" class="{ $classes }">
                            { $primaryName }
                            { if( $isPointer ) then $pointer else
    (: Person :)    (
        let $registerLink :=
                <span class="registerLink">
                    <a href="register.html?{replace(request:get-query-string(), '(&amp;)*e=.+(&amp;)*', '')||(if(request:get-query-string() = "") then () else "&amp;")}e={$pers/string(@xml:id)}"><i title="Link zu diesem Eintrag" class="fa fa-link"></i></a>
                </span>
        let $hasVariant := exists($pers/tei:persName[@type="variant"])
        let $birthAndDeath := if( not($pers/tei:birth or $pers/tei:death) ) then () else
                                <li>{if($pers/tei:birth/node()) then ('&#8727;',$pers/tei:birth/text()) else ()} {if($pers/tei:death/node()) then ('✝',$pers/tei:death/text()) else()}</li>
Mathias Goebel's avatar
Mathias Goebel committed
238

Mathias Goebel's avatar
Mathias Goebel committed
239
240
241
242
243
244
245
        return  ($registerLink,
                <ul>{ if( not( $hasVariant) ) then () else
                        <li>im Text:
                            <ul>{ for $item in $pers/tei:persName[@type="variant"]/text() return <li> {$item} </li>} </ul>
                        </li>
                    }
                    { $birthAndDeath }
Mathias Goebel's avatar
Mathias Goebel committed
246
247
                                {if($pers/tei:occupation) then <li>{$pers/tei:occupation/text()}</li> else ()}
                                <li>(<a href="http://d-nb.info/gnd/{$pers/tei:idno[@xml:base="http://d-nb.info/gnd/"]/text()}">GND</a>)</li>
Mathias Goebel's avatar
Mathias Goebel committed
248
249


Mathias Goebel's avatar
Mathias Goebel committed
250
251
                                        {if($pers/tei:note/text()) then <li>{$pers/tei:note/text()}</li> else ()}
                                        <li>{if(count( distinct-values($pers//tei:link/substring(substring-after(@target, 'textgrid:'), 1, 5)) ) lt 2) then 'In Notizbuch' else 'In den Notizbüchern'}
Mathias Goebel's avatar
Mathias Goebel committed
252
                                            { local:links3($pers//tei:link) }
Mathias Goebel's avatar
Mathias Goebel committed
253
                                        </li>
Mathias Goebel's avatar
Mathias Goebel committed
254
255
256

                </ul>))}

Mathias Goebel's avatar
Mathias Goebel committed
257
258
259
260
261
262
263
264
265
266
267
                        </li>
                    }
                </ul>
                </div>
            </div>
        }
        </div>
    </div>
};

declare function fontaneregister:places($geoDoc) {
Mathias Goebel's avatar
Mathias Goebel committed
268
let $console := console:log($geoDoc/base-uri())
Mathias Goebel's avatar
Mathias Goebel committed
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
let $geoURI := tokenize($geoDoc/base-uri(), '/|\.')[8]
return
(: Ortsregister :)
    <div id="r{ $geoURI }" class="tab-pane {if( request:get-parameter('r', '') = $geoURI ) then "active" else ()}">
        <div id="accordion{ $geoURI }" class="panel-group" aria-multiselectable="true" role="tablist">
        {for $geoList in $geoDoc
        return
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#collapse1-1" data-parent="#accordion" data-toggle="collapse">{$geoList/tei:head/text()}</a>
                    </h4>
                </div>
                <div class="panel-body">
                <ul>
                    { for $geo in $geoList/tei:place
                    return
                        if( not( exists($geo/@xml:id)) ) then local:pointer($geo//tei:ptr, $geoList/tei:event[@xml:id = substring-after($geo//tei:ptr/@target, '#')]) else
                        if (not($geo//tei:link/contains(@target, request:get-parameter('nb', 'textgrid')) = true() )) then ()
                        else
                        <li class="registerEintrag reg-{$geo/local-name()} {if($geo/@xml:id = request:get-parameter('e', '')) then 'fhighlighted' else ()}">
                        {for $label at $pos in $geo/tei:placeName/text()
                            return ($label, if($pos = 1) then
                                <span class="registerLink"> <a href="register.html?{replace(request:get-query-string(), '(&amp;)*e=.+(&amp;)*', '')||(if(request:get-query-string() = "") then () else "&amp;")}e={$geo/string(@xml:id)}"><i title="Link zu diesem Eintrag" class="fa fa-link"></i></a> </span>
                                else (),<br/>)}
                        {if(exists($geo/tei:persName[@type="variant"])) then (' ',<small>({string-join( $geo/tei:persName[@type="variant"]/text(), '|' )})</small>) else ()}
                            <ul>
                                {for $idno in $geo/tei:idno return <li class="reg-idno">(<a href="{$idno/@xml:base || $idno/string(.)}">{string($idno/@type)}</a>)</li> }
                                {if($geo/tei:note/text()) then <li>{$geo/tei:note/text()}</li> else ()}
                                <li>{if(count($geo//tei:link) lt 2) then 'In Notizbuch' else 'In den Notizbüchern'}
                                    <ul>
                                        {for $link in $geo//tei:link[@corresp="https://schema.org/mentions"]
                                        return local:Links($link)}
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    }
                </ul>
                </div>
            </div>
        }
        </div>
    </div>
};

declare function fontaneregister:orgs($orgDoc) {
let $orgURI := tokenize($orgDoc/base-uri(), '/|\.')[8]
return
(: Koerperschaftenregister :)
    <div id="r{ $orgURI }" class="tab-pane {if( request:get-parameter('r', '') = $orgURI ) then "active" else ()}">
        <div id="accordion{ $orgURI }" class="panel-group" aria-multiselectable="true" role="tablist">
        {for $orgList in $orgDoc
        return
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#collapse1-1" data-parent="#accordion" data-toggle="collapse">{$orgList/tei:head/text()}</a>
                    </h4>
                </div>
                <div class="panel-body">
                <ul>
                    { for $org in $orgList/tei:org
                    return
                        if( not( exists($org/@xml:id)) ) then local:pointer($org//tei:ptr, $orgList/tei:event[@xml:id = substring-after($org//tei:ptr/@target, '#')]) else
                        if (not($org//tei:link/contains(@target, request:get-parameter('nb', 'textgrid')) = true() )) then ()
                        else
                        <li class="registerEintrag {if($org/@xml:id = request:get-parameter('e', '')) then 'fhighlighted' else ()}">
                        {for $label at $pos in $org/tei:orgName[not(@type="variant")]/text()
                        return ($label, if($pos = 1) then
                            <span class="registerLink"> <a href="register.html?{replace(request:get-query-string(), '(&amp;)*e=.+(&amp;)*', '')||(if(request:get-query-string() = "") then () else "&amp;")}e={$org/string(@xml:id)}"><i title="Link zu diesem Eintrag" class="fa fa-link"></i></a> </span>
                            else (), <br/>)}
                            <ul>
                                {if($org/tei:note/text()) then <li>{$org/tei:note/text()}</li> else ()}
                                <li>{if(count($org//tei:link) lt 2) then 'In Notizbuch' else 'In den Notizbüchern'}
                                    <ul>
                                        {for $link in $org//tei:link[@corresp="https://schema.org/mentions"]
                                        return local:Links($link)}
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    }
                </ul>
                </div>
            </div>
        }
        </div>
    </div>

};

declare function fontaneregister:register($id){
let $r := request:get-parameter('r', '')
let $e := request:get-parameter('e', '')
let $agg := '253st.xml'
let $uris := doc('/db/sade-projects/textgrid/data/xml/agg/'||$agg)//ore:aggregates/substring-after(@rdf:resource, 'textgrid:')
Mathias Goebel's avatar
Mathias Goebel committed
364

Mathias Goebel's avatar
Mathias Goebel committed
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
let $meta := for $uri in $uris
                    where doc-available( '/db/sade-projects/textgrid/data/xml/data/' || $uri ||'.xml')
                    return
                        doc('/db/sade-projects/textgrid/data/xml/meta/'||$uri||'.xml')
let $docs := $meta//tgmd:textgridUri/tokenize(., ':|\.')[2] ! doc('/db/sade-projects/textgrid/data/xml/data/' || . ||'.xml')

let $tabs := <ul class="nav nav-tabs" style="font-size: smaller;">{
                    for $i at $pos in $meta
                    let $uri := $i//tgmd:textgridUri/tokenize(., ':|\.')[2]
                    where not(matches($uri,"25547|253t3"))
                    return
                        <li>
                            { if(($r = $uri) or $e = doc('/db/sade-projects/textgrid/data/xml/data/' || $uri ||'.xml')//*[@xml:id]/string(@xml:id)) then attribute class {'active'} else () }
                            <a data-toggle="tab" href="#r{ $uri }">{$i//tgmd:title/text()}</a></li>,
                        (: need to hardcode stuff comming from a singe tei file: :)
                        <li>
                            { if(($r = "r253t3-works") or ($e = doc('/db/sade-projects/textgrid/data/xml/data/253t3.xml')
                                    //tei:body//tei:list[@type="works"]
                                        //*[@xml:id]/string(@xml:id))) then attribute class {'active'} else ()
                            }
                            <a data-toggle="tab" href="#r253t3-works">Werke</a></li>,
                        <li>
                            { if(($r = "r253t3-Fontane") or ($e = doc('/db/sade-projects/textgrid/data/xml/data/253t3.xml')
                                    //tei:body//tei:list[@type="Fontane"]
                                        //*[@xml:id]/string(@xml:id))) then attribute class {'active'} else ()
                            }
                            <a data-toggle="tab" href="#r253t3-Fontane">Fontanes Werke</a></li>,
                        <li>
                            { if(($r = "r253t3-periodicals") or ($e = doc('/db/sade-projects/textgrid/data/xml/data/253t3.xml')
                                    //tei:body//tei:list[@type="periodicals"]
                                        //*[@xml:id]/string(@xml:id))) then attribute class {'active'} else ()
                            }
                            <a data-toggle="tab" href="#r253t3-periodicals">Periodika</a></li>
            }</ul>


return
    <div class="container">
        {$tabs}
        <div class="tab-content">
            { fontaneregister:events( $docs//tei:body/tei:listEvent ) }
            { fontaneregister:orgs( $docs//tei:body/tei:listOrg ) }
Mathias Goebel's avatar
Mathias Goebel committed
407
<!--            { fontaneregister:places( $docs//tei:body/tei:listPlace ) } -->
Mathias Goebel's avatar
Mathias Goebel committed
408
409
410
411
412
413
414
            { fontaneregister:persons( $docs//tei:body/tei:listPerson ) }
            { fontaneregister:works( $docs//tei:body//tei:list[@type="works"] ) }
            { fontaneregister:works( $docs//tei:body//tei:list[@type="periodicals"] ) }
            { fontaneregister:works( $docs//tei:body//tei:list[@type="Fontane"] ) }
        </div>
    </div>
};