OPAC: WebVoyage 7 (Tomcat) Numbered Search Results
[This article was copied from the Voyager Wiki.]
Description
Numbers the search results in WebVoyage 7 (Tomcat)
Installation Instructions
In ui/[skin]/xsl/pageFacets/resultsFacets.xsl, find this:
<!-- ## result record ## -->
<div class="{$classPosition}">
<xsl:if test="$buttonCount > 0">
<!-- ## checkbox ## -->
<div class="resultListCheckBox">
<input type="checkbox" name="titles" value="{page:value}" id="{page:value}" onClick="selectTitleChkBx(document.getElementById('resultsForm'))">
<xsl:if test="@selected='true'">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
</div>
</xsl:if>
<xsl:variable name="checkBoxId">
<xsl:value-of select="page:value"/>
</xsl:variable>
and change it to this (the changes are after </input>):
<!-- ## result record ## -->
<div class="{$classPosition}">
<xsl:if test="$buttonCount > 0">
<!-- ## checkbox ## -->
<div class="resultListCheckBox">
<input type="checkbox" name="titles" value="{page:value}" id="{page:value}" onClick="selectTitleChkBx(document.getElementById('resultsForm'))">
<xsl:if test="@selected='true'">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
<xsl:if test="string-length(//page:element[@nameId='recPointer']/page:value)">
<xsl:value-of select="position() + //page:element[@nameId='recPointer']"/>
</xsl:if>
</div>
</xsl:if>
<xsl:variable name="checkBoxId">
<xsl:value-of select="page:value"/>
</xsl:variable>