Bugzilla – Attachment 40207 Details for
Bug 13600
XSLT: 8xx not showing if there is no 4xx
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13600 - XSLT: 8xx not showing if there is no 4xx
Bug-13600---XSLT-8xx-not-showing-if-there-is-no-4x.patch (text/plain), 9.08 KB, created by
Winona Salesky
on 2015-06-17 02:02:54 UTC
(
hide
)
Description:
Bug 13600 - XSLT: 8xx not showing if there is no 4xx
Filename:
MIME Type:
Creator:
Winona Salesky
Created:
2015-06-17 02:02:54 UTC
Size:
9.08 KB
patch
obsolete
>From 93ab66fce1f46d22843c27ea19e063314ec31534 Mon Sep 17 00:00:00 2001 >From: Winona Salesky <wsalesky@gmail.com> >Date: Tue, 16 Jun 2015 21:59:54 -0400 >Subject: [PATCH] Bug 13600 - XSLT: 8xx not showing if there is no 4xx > >Removes dependency on 490 ind1 for 8xx display. 8xx will always display. >Adds span class="separator" | between multiple series, changes : before $v to a conditional ; > >Test Plan: >1) Apply this patch >2) Ensure you are using the default XSLT setting for the staff and opac details view. >3) Find or create a record with MARC tags 800, 810, 830 >4) Check display of 8xx tags, should always display if present in the record. >6) Repeat test for the staff interface >--- > .../bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 103 +++++++++++---------- > 1 file changed, 52 insertions(+), 51 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 8b7d559..9e5efcd 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -198,73 +198,74 @@ > </xsl:call-template> > </xsl:if> > >- <!-- Series --> >- <xsl:if test="marc:datafield[@tag=440 or @tag=490]"> >- <span class="results_summary series"><span class="label">Series: </span> >- <!-- 440 --> >- <xsl:for-each select="marc:datafield[@tag=440]"> >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">av</xsl:with-param> >- </xsl:call-template> >- </xsl:with-param> >- </xsl:call-template> >- </a> >- <xsl:call-template name="part"/> >- <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> >- >- <!-- 490 Series not traced, Ind1 = 0 --> >- <xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]"> >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> >- <xsl:call-template name="chopPunctuation"> >- <xsl:with-param name="chopString"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">av</xsl:with-param> >- </xsl:call-template> >- </xsl:with-param> >- </xsl:call-template> >- </a> >- <xsl:call-template name="part"/> >- <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> >- <!-- 490 Series traced, Ind1 = 1 --> >- <xsl:if test="marc:datafield[@tag=490][@ind1=1]"> >- <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]"> >- <xsl:choose> >- <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> >- <a href="/cgi-bin/koha/opac-search.pl?q=rcn:{marc:subfield[@code='w']}"> >+ <!-- Series --> >+ <xsl:if test="marc:datafield[@tag=440 or @tag=490 or @tag=800 or @tag=810 or @tag=811 or @tag=830]"> >+ <span class="results_summary series"><span class="label">Series: </span> >+ <!-- 440 --> >+ <xsl:for-each select="marc:datafield[@tag=440]"> >+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">a_t</xsl:with-param> >+ <xsl:with-param name="codes">av</xsl:with-param> > </xsl:call-template> > </xsl:with-param> > </xsl:call-template> > </a> >- </xsl:when> >- <xsl:otherwise> >+ <xsl:call-template name="part"/> >+ <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> >+ >+ <!-- 490 Series not traced, Ind1 = 0 --> >+ <xsl:for-each select="marc:datafield[@tag=490][@ind1!=1]"> > <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> > <xsl:call-template name="chopPunctuation"> > <xsl:with-param name="chopString"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">a_t</xsl:with-param> >+ <xsl:with-param name="codes">av</xsl:with-param> > </xsl:call-template> > </xsl:with-param> > </xsl:call-template> > </a> > <xsl:call-template name="part"/> >- </xsl:otherwise> >- </xsl:choose> >- <xsl:text>: </xsl:text> >- <xsl:value-of select="marc:subfield[@code='v']" /> >- <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> >- </xsl:if> >- </span> >- </xsl:if> >+ <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> >+ >+ <!-- 800,810,811,830 always display. --> >+ <xsl:for-each select="marc:datafield[@tag=800 or @tag=810 or @tag=811 or @tag=830]"> >+ <xsl:choose> >+ <xsl:when test="$UseControlNumber = '1' and marc:subfield[@code='w']"> >+ <a href="/cgi-bin/koha/opac-search.pl?q=rcn:{marc:subfield[@code='w']}"> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a_t</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ </a> >+ </xsl:when> >+ <xsl:otherwise> >+ <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=se,phr:"<xsl:value-of select="marc:subfield[@code='a']"/>"</xsl:attribute> >+ <xsl:call-template name="chopPunctuation"> >+ <xsl:with-param name="chopString"> >+ <xsl:call-template name="subfieldSelect"> >+ <xsl:with-param name="codes">a_t</xsl:with-param> >+ </xsl:call-template> >+ </xsl:with-param> >+ </xsl:call-template> >+ </a> >+ <xsl:call-template name="part"/> >+ </xsl:otherwise> >+ </xsl:choose> >+ <xsl:if test="marc:subfield[@code='v']"> >+ <xsl:text> ; </xsl:text> >+ <xsl:value-of select="marc:subfield[@code='v']" /> >+ </xsl:if> >+ <xsl:choose><xsl:when test="position()=last()"><xsl:text></xsl:text></xsl:when><xsl:otherwise><span class="separator"><xsl:text> | </xsl:text></span></xsl:otherwise></xsl:choose> >+ </xsl:for-each> >+ </span> >+ </xsl:if> > > <!-- Analytics --> > <xsl:if test="$leader7='s'"> >-- >2.3.2 (Apple Git-55)
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 13600
:
40097
|
40106
|
40107
|
40207
|
40636
|
40637
|
140705
|
140706
|
140736
|
142530
|
142588
|
142589
|
143069
|
143566
|
143567
|
143568