Skip to content

Commit

Permalink
Fix: Bibl query is a query component not a text component
Browse files Browse the repository at this point in the history
Pass an empty query string in the menu.
Also: Set teiSource by passing a parameter to the style sheet.
  • Loading branch information
simar0at committed Jan 23, 2024
1 parent c36d829 commit ef93ae9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xslt/menu-json.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<xsl:output method="xml" indent="yes"/>

<xsl:param name="baseURIPublic"/>
<xsl:param name="teiSource">https://github.com/acdh-oeaw/vicav-content</xsl:param>

<xsl:include href="vicavIDToLabel.xslt"/>

Expand Down Expand Up @@ -139,10 +140,15 @@
<scope></scope>
</params>
</xsl:when>
<xsl:when test="contains(@xml:id, 'liBiblNewQuery')">
<params>
<queryString type="string"></queryString>
</params>
</xsl:when>
<xsl:otherwise>
<params>
<textId><xsl:value-of select="_:cleanID(data((@target,@xml:id)[1]))"/></textId>
<teiSource>https://github.com/acdh-oeaw/vicav-content</teiSource>
<teiSource><xsl:value-of select="$teiSource"/></teiSource>
</params>
</xsl:otherwise>
</xsl:choose>
Expand Down

0 comments on commit ef93ae9

Please sign in to comment.