Skip to content

Commit

Permalink
removed textgrid from eutil:getDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisFriedl committed Nov 8, 2024
1 parent 15754c9 commit 294df2d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions add/data/xqm/util.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,7 @@ declare function eutil:getLocalizedTitle($node as node(), $lang as xs:string?) a
: @return The document
:)
declare function eutil:getDoc($uri) {

if(starts-with($uri, 'textgrid:')) then(
let $session := request:get-cookie-value('edirom_online_textgrid_sessionId')
return
doc('http://textgridlab.org/1.0/tgcrud/rest/' || $uri || '/data?sessionId=' || $session)

) else (
doc($uri)
)

doc($uri)
};

(:~
Expand Down

0 comments on commit 294df2d

Please sign in to comment.