Bugzilla – Attachment 39831 Details for
Bug 14054
246 XSLT Improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14054 - 246 XSLT Improvements Add title type in brackets for field 246 based on 2nd indicator. Overridden by subfield i. Applies to OPAC and staff details.
Bug-14054---246-XSLT-Improvements-Add-title-type-i.patch (text/plain), 4.10 KB, created by
Winona Salesky
on 2015-06-04 03:31:46 UTC
(
hide
)
Description:
Bug 14054 - 246 XSLT Improvements Add title type in brackets for field 246 based on 2nd indicator. Overridden by subfield i. Applies to OPAC and staff details.
Filename:
MIME Type:
Creator:
Winona Salesky
Created:
2015-06-04 03:31:46 UTC
Size:
4.10 KB
patch
obsolete
>From 02ed849b578d2aab88d1a5fdb44a08295a786650 Mon Sep 17 00:00:00 2001 >From: Winona Salesky <wsalesky@gmail.com> >Date: Wed, 3 Jun 2015 23:27:10 -0400 >Subject: [PATCH] Bug 14054 - 246 XSLT Improvements Add title type in brackets > for field 246 based on 2nd indicator. Overridden by subfield i. Applies to > OPAC and staff details. > >Test Plan: >1) Apply this patch >2) Ensure you are using the default XSLT setting for the staff and opac search results and record details >3) Find or create a record with MARC tags 246 with populated ind2 >4) Title types are added in brackets following title, unless subfield i exists. Then ind2 value is suppressed. >6) Repeat test for the staff interface >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 13 +++++++++++++ > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 13 +++++++++++++ > 2 files changed, 26 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >index 5735650..7ad354b 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -477,6 +477,19 @@ > </xsl:call-template> > </xsl:with-param> > </xsl:call-template> >+ <xsl:if test="@ind1=1 and not(marc:subfield[@code='i'])"> >+ <xsl:choose> >+ <xsl:when test="@ind2=0"> [Portion of title]</xsl:when> >+ <xsl:when test="@ind2=1"> [Parallel title]</xsl:when> >+ <xsl:when test="@ind2=2"> [Distinctive title]</xsl:when> >+ <xsl:when test="@ind2=3"> [Other title]</xsl:when> >+ <xsl:when test="@ind2=4"> [Cover title]</xsl:when> >+ <xsl:when test="@ind2=5"> [Added title page title]</xsl:when> >+ <xsl:when test="@ind2=6"> [Caption title]</xsl:when> >+ <xsl:when test="@ind2=7"> [Running title]</xsl:when> >+ <xsl:when test="@ind2=8"> [Spine title]</xsl:when> >+ </xsl:choose> >+ </xsl:if> > <!-- #13386 added separator | --> > <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> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 00b28ae..93a9d16 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -517,6 +517,19 @@ > </xsl:call-template> > </xsl:with-param> > </xsl:call-template> >+ <xsl:if test="@ind1=1 and not(marc:subfield[@code='i'])"> >+ <xsl:choose> >+ <xsl:when test="@ind2=0"> [Portion of title]</xsl:when> >+ <xsl:when test="@ind2=1"> [Parallel title]</xsl:when> >+ <xsl:when test="@ind2=2"> [Distinctive title]</xsl:when> >+ <xsl:when test="@ind2=3"> [Other title]</xsl:when> >+ <xsl:when test="@ind2=4"> [Cover title]</xsl:when> >+ <xsl:when test="@ind2=5"> [Added title page title]</xsl:when> >+ <xsl:when test="@ind2=6"> [Caption title]</xsl:when> >+ <xsl:when test="@ind2=7"> [Running title]</xsl:when> >+ <xsl:when test="@ind2=8"> [Spine title]</xsl:when> >+ </xsl:choose> >+ </xsl:if> > </span> > <!-- #13386 added separator | --> > <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> >-- >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 14054
:
39831
|
40020
|
40212
|
42802