Bugzilla – Attachment 109118 Details for
Bug 5927
Show series information in search results page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 5927: Show series information in OPAC search results.
0001-Bug-5927-Show-series-information-in-OPAC-search-resu.patch (text/plain), 1.82 KB, created by
Amit Gupta
on 2020-08-25 15:57:12 UTC
(
hide
)
Description:
Bug 5927: Show series information in OPAC search results.
Filename:
MIME Type:
Creator:
Amit Gupta
Created:
2020-08-25 15:57:12 UTC
Size:
1.82 KB
patch
obsolete
>From 636969c374864c9b136f7e9b9067cd618d4d2ca1 Mon Sep 17 00:00:00 2001 >From: Rogan Hamby <rhamby@equinoxinitiative.org> >Date: Tue, 25 Aug 2020 11:38:53 -0400 >Subject: [PATCH] Bug 5927: Show series information in OPAC search results. > >This patch adds each 440 and 490 as series statements to the opac results. >Test plan: >1. Simply search for any records with a 440 or 490 (subfields $a and $v) and they will appear on the search results >2. This patch will handle to show both 440 and 490 fields (subfields $a and $v) in the OPAC search result page. > >Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com> >--- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index a0879f6..6907547 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -660,6 +660,18 @@ > </xsl:for-each> > </xsl:if> > >+ <xsl:if test="marc:datafield[@tag=440 or @tag=490]"> >+ <span class="results_summary series"> >+ <span class="label">Series: </span> >+ <xsl:for-each select="marc:datafield[@tag=440 or @tag=490]"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">av</xsl:with-param> >+ </xsl:call-template> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text>.</xsl:text></xsl:when><xsl:otherwise><xsl:text>; </xsl:text></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> >+ > <xsl:if test="$DisplayOPACiconsXSLT!='0'"> > <span class="results_summary type"> > <xsl:if test="$typeOf008!=''"> >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 5927
:
109033
|
109070
|
109106
|
109115
|
109118
|
109119
|
109757
|
109968
|
109995
|
109996