Skip to content

Commit

Permalink
Merge pull request #83 from acdh-oeaw/82-corpus-query-and-layout-fixes
Browse files Browse the repository at this point in the history
Corpus fixes
  • Loading branch information
simar0at authored Jul 15, 2024
2 parents f2c5abe + 01ed0bc commit 1577b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vicav.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -1953,7 +1953,7 @@ declare function vicav:_corpus_text(
let $hits_str := if (not(empty($hits))) then $hits else ""

let $teiDoc := collection('vicav_corpus')
//tei:TEI[./tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type="SHAWICorpusID"]/text() = $docId],
//tei:TEI[./tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno/text() = $docId],
$notFound := if (not(exists($teiDoc))) then
error(xs:QName('response-codes:_404'),
$api-problem:codes_to_message(404),
Expand Down
2 changes: 1 addition & 1 deletion xslt/corpus_utterances_json.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<xsl:variable name="html">
<div class="u">
<xsl:attribute name="id" select="$u/@xml:id"/>
<div class="xmlId">
<div class="xml-id">
<xsl:value-of select="$u/@xml:id"/>
</div>
<div class="content">
Expand Down

0 comments on commit 1577b7f

Please sign in to comment.