From 294df2de757829fbad3e51f427bcc368143cbd45 Mon Sep 17 00:00:00 2001 From: Dennis Friedl Date: Fri, 8 Nov 2024 17:54:47 +0100 Subject: [PATCH] removed textgrid from eutil:getDoc --- add/data/xqm/util.xqm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/add/data/xqm/util.xqm b/add/data/xqm/util.xqm index 49e46609..9fd0ec0f 100644 --- a/add/data/xqm/util.xqm +++ b/add/data/xqm/util.xqm @@ -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) }; (:~