Skip to content

Commit

Permalink
Remove standOff from automatically generated corpus definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Oct 17, 2024
1 parent 6173fbf commit f634efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vicav.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -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 <teiCorpus xmlns="http://www.tei-c.org/ns/1.0">{collection($type)//tei:TEI!. update {delete node ./tei:text}}</teiCorpus>
then <teiCorpus xmlns="http://www.tei-c.org/ns/1.0">{collection($type)//tei:TEI!. update {delete node (./tei:text,./tei:standOff)}}</teiCorpus>
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
Expand Down

0 comments on commit f634efb

Please sign in to comment.