Skip to content

Commit

Permalink
Always get a title back from getWindowTitle
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Stadler <[email protected]>
  • Loading branch information
roewenstrunk and peterstadler committed Jan 9, 2025
1 parent 3463e86 commit d065dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions add/data/xql/getLinkTarget.xql
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ declare function local:getWindowTitle($doc as document-node()?, $type as xs:stri
(eutil:getLocalizedTitle($doc//tei:fileDesc/tei:titleStmt[1], $lang))

(: HTML :)
else if ($type = 'html') then
($doc//head/data(title))
else if ($type = 'html' and not(functx:all-whitespace($doc//*:head/*:title))) then
$doc//*:head/*:title => normalize-space()

else if($type = 'unknown') then

Expand Down

0 comments on commit d065dfd

Please sign in to comment.