From f634efbad23ac37becd0bd697db77714e5ba52bd Mon Sep 17 00:00:00 2001 From: Omar Siam Date: Thu, 17 Oct 2024 17:55:47 +0200 Subject: [PATCH] Remove standOff from automatically generated corpus definitions --- vicav.xqm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vicav.xqm b/vicav.xqm index 0f43f17..f898ad1 100644 --- a/vicav.xqm +++ b/vicav.xqm @@ -2184,7 +2184,7 @@ declare function vicav:_get_tei_doc_list($type as xs:string*) { $api-problem:codes_to_message(404), 'There are no TEI documents of type '||$type)}, $corpus := if (not(exists($corpus)) and exists(collection($type)//tei:TEI)) - then {collection($type)//tei:TEI!. update {delete node ./tei:text}} + then {collection($type)//tei:TEI!. update {delete node (./tei:text,./tei:standOff)}} else $corpus, $corpus := if (exists($corpus/@xml:id)) then $corpus else $corpus update { insert node attribute {"id"} {$type} as first into . }, $notFound := if (not(exists($corpus))) then