Fix for Bug 5075 - Terms not highlighted w/ xslt on
- XSLT didn't contain the class markup which acts as a hook
for the JavaScript highlighting system.
- Standard results page also contained a typo which
prevented data other than title and author from
being highlighted
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
(cherry picked from commit b558c0db5a)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
This commit is contained in:
parent
6080451a35
commit
55cb2cf1c6
|
|
@ -90,7 +90,7 @@ function highlightOn() {
|
|||
for (x in q_array) {
|
||||
$(".title").highlight(q_array[x]);
|
||||
$(".author").highlight(q_array[x]);
|
||||
$(".result_summary").highlight(q_array[x]);
|
||||
$(".results_summary").highlight(q_array[x]);
|
||||
}
|
||||
$(".highlight_toggle").toggle();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@
|
|||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute>
|
||||
<a><xsl:attribute name="href">/cgi-bin/koha/opac-detail.pl?biblionumber=<xsl:value-of select="$biblionumber"/></xsl:attribute><xsl:attribute name="class">title</xsl:attribute>
|
||||
|
||||
<xsl:if test="marc:datafield[@tag=245]">
|
||||
<xsl:for-each select="marc:datafield[@tag=245]">
|
||||
|
|
@ -441,7 +441,7 @@
|
|||
<xsl:choose>
|
||||
<xsl:when test="marc:datafield[@tag=100] or marc:datafield[@tag=110] or marc:datafield[@tag=111] or marc:datafield[@tag=700] or marc:datafield[@tag=710] or marc:datafield[@tag=711]">
|
||||
|
||||
by
|
||||
by <span class="author">
|
||||
<xsl:for-each select="marc:datafield[@tag=100 or @tag=700]">
|
||||
<xsl:choose>
|
||||
<xsl:when test="position()=last()">
|
||||
|
|
@ -493,6 +493,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</span>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue