Skip to content

Commit

Permalink
add handling for mei 4+
Browse files Browse the repository at this point in the history
  • Loading branch information
riedde committed Dec 4, 2024
1 parent 4a59964 commit cf9985e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add/data/xql/getLinkTarget.xql
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ declare function local:getViews($type as xs:string, $docUri as xs:string, $doc a
declare function local:getWindowTitle($doc as node()+, $type as xs:string) as xs:string {

(: Work :)
if (exists($doc//mei:mei) and exists($doc//mei:workDesc/mei:work) and not(exists($doc//mei:perfMedium))) then
if (exists($doc//mei:mei) and exists($doc//(mei:workDesc|mei:workList)/mei:work) and not(exists($doc//mei:perfMedium))) then
(eutil:getLocalizedTitle(($doc//mei:work)[1]/mei:titleStmt[1], $lang))
else if (exists($doc/root()/mei:work)) then
(eutil:getLocalizedTitle($doc/root()/mei:work, $lang))
Expand Down

0 comments on commit cf9985e

Please sign in to comment.