Skip to content

Commit

Permalink
add comment to app:listPers (idno)
Browse files Browse the repository at this point in the history
  • Loading branch information
skurzinz authored May 17, 2021
1 parent 52f993f commit efffe17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/app.xql
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ for $title in ($entities, $terms)
declare function app:listPers($node as node(), $model as map(*)) {
let $hitHtml := "hits.html?searchkey="
for $person in doc($app:personIndex)//tei:listPerson/tei:person
let $gnd := $person/tei:note/tei:p[3]/text()
let $gnd := $person/tei:note/tei:p[3]/text() (: configure where your authority file links reside, they may be in <idno> :)
(: if you have multiple authority file links in idnos of different type, consider something like
let $gnd_link := for $i in $person/tei:idno return <small><a href="{$i}" title="{$i}">{data($i/@type)}</a>&#160;{data($i)}&#10;</small>
:)
let $gnd_link := if ($gnd != "no gnd provided") then
<a href="{$gnd}">{$gnd}</a>
else
Expand Down

0 comments on commit efffe17

Please sign in to comment.