Skip to content
Snippets Groups Projects
Commit d065dfd2 authored by Daniel Roewenstrunk's avatar Daniel Roewenstrunk Committed by Peter Stadler
Browse files

Always get a title back from getWindowTitle

parent 3463e86c
No related branches found
No related tags found
No related merge requests found
...@@ -194,8 +194,8 @@ declare function local:getWindowTitle($doc as document-node()?, $type as xs:stri ...@@ -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)) (eutil:getLocalizedTitle($doc//tei:fileDesc/tei:titleStmt[1], $lang))
(: HTML :) (: HTML :)
else if ($type = 'html') then else if ($type = 'html' and not(functx:all-whitespace($doc//*:head/*:title))) then
($doc//head/data(title)) $doc//*:head/*:title => normalize-space()
else if($type = 'unknown') then else if($type = 'unknown') then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment