Skip to content

Commit

Permalink
Merge pull request #80 from acdh-oeaw/data-lists-fix
Browse files Browse the repository at this point in the history
Fix XML output regression
  • Loading branch information
simar0at authored May 14, 2024
2 parents 5051e9a + f8aef9d commit 91bef06
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vicav.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -1455,8 +1455,7 @@ function vicav:_get_feature_labels() {
'xslt/feature_labels-json.xslt')
return serialize($renderedJson, map {"method": "json", "indent": "no"})
else
(web:response-header(map {'method': 'xml'}, map:merge((cors:header(()), vicav:return_content_header()))),
<features>{$out}</features>)
<features>{$out}</features>
};


Expand Down Expand Up @@ -1520,8 +1519,7 @@ declare function vicav:_get_data_words($type as xs:string*) {
'xslt/data_words-json.xslt')
return serialize($renderedJson, map {"method": "json", "indent": "no"})
else
(web:response-header(map {'method': 'xml'}, map:merge((cors:header(()), vicav:return_content_header()))),
<words>{$out}</words>)
<words>{$out}</words>
};


Expand Down

0 comments on commit 91bef06

Please sign in to comment.