Bugzilla – Attachment 24994 Details for
Bug 11246
Followup for Bug 10465 fields 780 and 785 in UNIMARC XSLT should be removed in bootstrap theme
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED OFF] Bug 11246 : remove useless reference to fields 780 and 785 in UNIMARC XSLT files for Bootstrap opac
SIGNED-OFF-Bug-11246--remove-useless-reference-to-.patch (text/plain), 4.99 KB, created by
Mark Tompsett
on 2014-02-03 05:47:30 UTC
(
hide
)
Description:
[SIGNED OFF] Bug 11246 : remove useless reference to fields 780 and 785 in UNIMARC XSLT files for Bootstrap opac
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2014-02-03 05:47:30 UTC
Size:
4.99 KB
patch
obsolete
>From 5be56df17fb7d5a24142c226bba4a384f6e79553 Mon Sep 17 00:00:00 2001 >From: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >Date: Wed, 13 Nov 2013 19:56:10 +0100 >Subject: [PATCH] [SIGNED OFF] Bug 11246 : remove useless reference to fields > 780 and 785 in UNIMARC XSLT files for Bootstrap opac > >Another fix, 10465, removed fields 780 and 785 from a unimarc xslt file. >This cleanup is needed for bootstrap too > >To test : in a UNIMARC Koha, with Bootstrap theme OPAC >1. be sure that OPACXSLTDetailsDisplay , OPACXSLTResultsDisplay sysprefs are set to "default" >2. apply the patch >3. search some records in OPAC : the list view and the detail view must be exacty the same as before you apply the patch. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > .../bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl | 100 +------------------- > 1 file changed, 1 insertion(+), 99 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >index cb365d9..e2ef08c 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/UNIMARCslim2OPACDetail.xsl >@@ -425,105 +425,7 @@ > </xsl:for-each> > </span> > </xsl:if> >- >- <!-- 780 --> >- <xsl:if test="marc:datafield[@tag=780]"> >- <xsl:for-each select="marc:datafield[@tag=780]"> >- <span class="results_summary"> >- <xsl:choose> >- <xsl:when test="@ind2=0"> >- <span class="label">Continues:</span> >- </xsl:when> >- <xsl:when test="@ind2=1"> >- <span class="label">Continues in part:</span> >- </xsl:when> >- <xsl:when test="@ind2=2"> >- <span class="label">Supersedes:</span> >- </xsl:when> >- <xsl:when test="@ind2=3"> >- <span class="label">Supersedes in part:</span> >- </xsl:when> >- <xsl:when test="@ind2=4"> >- <span class="label">Formed by the union: ... and: ...</span> >- </xsl:when> >- <xsl:when test="@ind2=5"> >- <span class="label">Absorbed:</span> >- </xsl:when> >- <xsl:when test="@ind2=6"> >- <span class="label">Absorbed in part:</span> >- </xsl:when> >- <xsl:when test="@ind2=7"> >- <span class="label">Separated from:</span> >- </xsl:when> >- </xsl:choose> >- <xsl:variable name="f780"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">a_t</xsl:with-param> >- </xsl:call-template> >- </xsl:variable> >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute> >- <xsl:value-of select="translate($f780, '()', '')"/> >- </a> >- </span> >- >- <xsl:choose> >- <xsl:when test="@ind1=0"> >- <span class="results_summary"><xsl:value-of select="marc:subfield[@code='n']"/></span> >- </xsl:when> >- </xsl:choose> >- >- </xsl:for-each> >- </xsl:if> >- >- <!-- 785 --> >- <xsl:if test="marc:datafield[@tag=785]"> >- <xsl:for-each select="marc:datafield[@tag=785]"> >- <span class="results_summary"> >- <xsl:choose> >- <xsl:when test="@ind2=0"> >- <span class="label">Continued by:</span> >- </xsl:when> >- <xsl:when test="@ind2=1"> >- <span class="label">Continued in part by:</span> >- </xsl:when> >- <xsl:when test="@ind2=2"> >- <span class="label">Superseded by:</span> >- </xsl:when> >- <xsl:when test="@ind2=3"> >- <span class="label">Superseded in part by:</span> >- </xsl:when> >- <xsl:when test="@ind2=4"> >- <span class="label">Absorbed by:</span> >- </xsl:when> >- <xsl:when test="@ind2=5"> >- <span class="label">Absorbed in part by:</span> >- </xsl:when> >- <xsl:when test="@ind2=6"> >- <span class="label">Split into .. and ...:</span> >- </xsl:when> >- <xsl:when test="@ind2=7"> >- <span class="label">Merged with ... to form ...</span> >- </xsl:when> >- <xsl:when test="@ind2=8"> >- <span class="label">Changed back to:</span> >- </xsl:when> >- >- </xsl:choose> >- <xsl:variable name="f785"> >- <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">a_t</xsl:with-param> >- </xsl:call-template> >- </xsl:variable> >- >- <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute> >- <xsl:value-of select="translate($f785, '()', '')"/> >- </a> >- >- </span> >- </xsl:for-each> >- </xsl:if> >- >- </xsl:template> >+</xsl:template> > > <xsl:template name="nameABCDQ"> > <xsl:call-template name="chopPunctuation"> >-- >1.7.9.5
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 11246
:
22914
|
24994
|
25015