Skip to content

Commit

Permalink
handle no browse but collectionidno
Browse files Browse the repository at this point in the history
  • Loading branch information
respinos committed Dec 6, 2023
1 parent 845a189 commit f52a9cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/text/qui/qui.base.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@
<xsl:if test="//NavItem[Name='browse']/Tab='true'">
<qui:link rel="browse" icon="list" href="{//NavItem[Name='browse']/Link}">Browse</qui:link>
</xsl:if>
<xsl:if test="//NavItem[Name='browse']/Tab='false' and //CollectionIdno">
<qui:link rel="browse" icon="list">
<xsl:attribute name="href">
<xsl:value-of select="//ScriptName[@application='pageviewer']" />
<xsl:text>?cc=</xsl:text>
<xsl:value-of select="$collid" />
<xsl:text>;idno=</xsl:text>
<xsl:value-of select="//CollectionIdno" />
</xsl:attribute>
Browse
</qui:link>
</xsl:if>
<xsl:if test="//NavItem[Name='contents']/Tab='true'">
<qui:link rel="browse" icon="list" href="{//NavItem[Name='contents']/Link}">Contents</qui:link>
</xsl:if>
Expand Down

0 comments on commit f52a9cf

Please sign in to comment.