From efffe175f94891c6119441e2e19051dd040c5bbe Mon Sep 17 00:00:00 2001 From: skurzinz <37441365+skurzinz@users.noreply.github.com> Date: Mon, 17 May 2021 22:37:23 +0200 Subject: [PATCH] add comment to app:listPers (`idno`) --- modules/app.xql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/app.xql b/modules/app.xql index 225cfd7..293123a 100644 --- a/modules/app.xql +++ b/modules/app.xql @@ -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 :) + (: 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 {data($i/@type)} {data($i)} + :) let $gnd_link := if ($gnd != "no gnd provided") then {$gnd} else