Bugzilla – Attachment 40097 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), 4.80 KB, created by
Winona Salesky
on 2015-06-12 02:15:54 UTC
(
hide
)
Description:
Bug 13600 - XSLT: 8xx not showing if there is no 4xx
Filename:
MIME Type:
Creator:
Winona Salesky
Created:
2015-06-12 02:15:54 UTC
Size:
4.80 KB
patch
obsolete
>From 37d871a1582a5209763d82bf63fc092aa788741c Mon Sep 17 00:00:00 2001 >From: Winona Salesky <wsalesky@gmail.com> >Date: Thu, 11 Jun 2015 22:00:16 -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. > >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 >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 11 +++++------ > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 14 +++++++------- > 2 files changed, 12 insertions(+), 13 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index d077e35..c058b67 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -176,7 +176,7 @@ > </xsl:if> > > <!-- Series --> >- <xsl:if test="marc:datafield[@tag=440 or @tag=490]"> >+ <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]"> >@@ -207,9 +207,8 @@ > <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]"> >+ <!-- 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/catalogue/search.pl?q=rcn:{marc:subfield[@code='w']}"> >@@ -238,8 +237,8 @@ > <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> >+ </xsl:for-each> >+ > > </span> > </xsl:if> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 8b7d559..f181241 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -199,7 +199,7 @@ > </xsl:if> > > <!-- Series --> >- <xsl:if test="marc:datafield[@tag=440 or @tag=490]"> >+ <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]"> >@@ -227,12 +227,12 @@ > </xsl:with-param> > </xsl:call-template> > </a> >- <xsl:call-template name="part"/> >+ <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]"> >+ >+ <!-- 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']}"> >@@ -261,8 +261,8 @@ > <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> >+ </xsl:for-each> >+ > </span> > </xsl:if> > >-- >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