We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
teitext:getLabel#2
1 parent a068e65 commit 17ee9d5Copy full SHA for 17ee9d5
add/data/xqm/teitext.xqm
@@ -28,7 +28,7 @@ declare namespace tei="http://www.tei-c.org/ns/1.0";
28
:)
29
declare function teitext:isText($uri as xs:string) as xs:boolean {
30
31
- exists(doc($uri)/tei:TEI)
+ exists(eutil:getDoc($uri)/tei:TEI)
32
33
};
34
@@ -40,8 +40,6 @@ declare function teitext:isText($uri as xs:string) as xs:boolean {
40
41
declare function teitext:getLabel($uri as xs:string, $edition as xs:string) as xs:string {
42
43
- let $language := eutil:getLanguage($edition)
44
-
45
- return doc($uri)//tei:titleStmt/data(tei:title[not(@xml:lang) or @xml:lang = $language])
+ eutil:getLocalizedTitle(eutil:getDoc($uri), eutil:getLanguage($edition))
46
47
0 commit comments