Bugzilla – Attachment 46412 Details for
Bug 15100
MARC21: Display of $d for 7xx and 1xx fields should be optional
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15100: MARC21 - make display of "Dates associated with a name" optional
Bug-15100-MARC21---make-display-of-Dates-associate.patch (text/plain), 9.39 KB, created by
Jesse Weaver
on 2016-01-07 23:44:13 UTC
(
hide
)
Description:
Bug 15100: MARC21 - make display of "Dates associated with a name" optional
Filename:
MIME Type:
Creator:
Jesse Weaver
Created:
2016-01-07 23:44:13 UTC
Size:
9.39 KB
patch
obsolete
>From d0b717a44f17c235accc2406d9af47f4df864c9e Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Sun, 22 Nov 2015 00:29:32 +0100 >Subject: [PATCH] Bug 15100: MARC21 - make display of "Dates associated with a > name" optional > >With the changes for RDA now more subfields for the fields >100, 110, 111, and 700, 710, 711 are displayed. >One of them is $d - Dates associated with a name > >This patch adds separate treatment of the $d subfield and >wraps it in a span with the class "authordates". >This makes it possible to hide the information with CSS. > >To test: >- Make sure you have several records with $d catalogued >- Check the display in result list and detail page > with and without the page. >- Check, if there is a difference in display >- Check if the dates are correctly wrapped in a span >- Try to hide the information, using the following > entry in your *UserCSS preferences: > .authordates { display: none; } > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised > >Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com> >--- > .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 15 ++++++++++----- > .../prog/en/xslt/MARC21slim2intranetResults.xsl | 10 ++++++++-- > .../opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl | 14 ++++++++++---- > .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 10 ++++++++-- > 4 files changed, 36 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 a2f7a0c..e931fea 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl >@@ -1191,8 +1191,8 @@ > <xsl:with-param name="codes"> > <xsl:choose> > <!-- #13383 include subfield e for field 111 --> >- <xsl:when test="@tag=111">abcdeqt</xsl:when> >- <xsl:otherwise>abcdjqt</xsl:otherwise> >+ <xsl:when test="@tag=111">abceqt</xsl:when> >+ <xsl:otherwise>abcjqt</xsl:otherwise> > </xsl:choose> > </xsl:with-param> > </xsl:call-template> >@@ -1203,11 +1203,11 @@ > </xsl:call-template> > </xsl:when> > <!-- #13382 excludes 700$i and ind2=2, displayed as Related Works --> >- <!--#13382 Added all relevant subfields 4, e, are handled separately --> >+ <!--#13382 Added all relevant subfields 4, e, and d are handled separately --> > <xsl:when test="@tag=700 or @tag=710 or @tag=711"> > <xsl:variable name="str"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">abcdfghiklmnoprstux</xsl:with-param> >+ <xsl:with-param name="codes">abcfghiklmnoprstux</xsl:with-param> > </xsl:call-template> > </xsl:variable> > <xsl:call-template name="chopPunctuation"> >@@ -1220,7 +1220,12 @@ > </xsl:call-template> > </xsl:when> > </xsl:choose> >- >+ <xsl:if test="marc:subfield[@code='d']"> >+ <span class="authordates"> >+ <xsl:text> </xsl:text> >+ <xsl:value-of select="marc:subfield[@code='d']"/> >+ </span> >+ </xsl:if> > <!-- add relator code too between brackets--> > <!-- #13383 include relator code j for field 111 --> > <xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >index 0d40cab..839e1ac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl >@@ -363,8 +363,8 @@ > <xsl:with-param name="codes"> > <xsl:choose> > <!-- #13383 include subfield e for field 111 --> >- <xsl:when test="@tag=111">abcdeqt</xsl:when> >- <xsl:otherwise>abcdjqt</xsl:otherwise> >+ <xsl:when test="@tag=111">abceqt</xsl:when> >+ <xsl:otherwise>abcjqt</xsl:otherwise> > </xsl:choose> > </xsl:with-param> > </xsl:call-template> >@@ -374,6 +374,12 @@ > </xsl:with-param> > </xsl:call-template> > </a> >+ <xsl:if test="marc:subfield[@code='d']"> >+ <span class="authordates"> >+ <xsl:text> </xsl:text> >+ <xsl:value-of select="marc:subfield[@code='d']"/> >+ </span> >+ </xsl:if> > <xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])"> > <span class="relatorcode"> > <xsl:text> [</xsl:text> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >index 68a6235..eb64675 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl >@@ -1291,8 +1291,8 @@ > <xsl:with-param name="codes"> > <xsl:choose> > <!-- #13383 include subfield e for field 111 --> >- <xsl:when test="@tag=111">abcdeqt</xsl:when> >- <xsl:otherwise>abcdjqt</xsl:otherwise> >+ <xsl:when test="@tag=111">abceqt</xsl:when> >+ <xsl:otherwise>abcjqt</xsl:otherwise> > </xsl:choose> > </xsl:with-param> > </xsl:call-template> >@@ -1303,11 +1303,11 @@ > </xsl:call-template> > </xsl:when> > <!-- #13382 excludes 700$i and ind2=2, displayed as Related Works --> >- <!--#13382 Added all relevant subfields 4, e, are handled separately --> >+ <!--#13382 Added all relevant subfields 4, e, and d are handled separately --> > <xsl:when test="@tag=700 or @tag=710 or @tag=711"> > <xsl:variable name="str"> > <xsl:call-template name="subfieldSelect"> >- <xsl:with-param name="codes">abcdfghiklmnoprstux</xsl:with-param> >+ <xsl:with-param name="codes">abcfghiklmnoprstux</xsl:with-param> > </xsl:call-template> > </xsl:variable> > <xsl:call-template name="chopPunctuation"> >@@ -1321,6 +1321,12 @@ > </xsl:when> > </xsl:choose> > </span></span></span> >+ <xsl:if test="marc:subfield[@code='d']"> >+ <span class="authordates"> >+ <xsl:text> </xsl:text> >+ <xsl:value-of select="marc:subfield[@code='d']"/> >+ </span> >+ </xsl:if> > <!-- #13383 include relator code j for field 111 --> > <xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])"> > <span class="relatorcode"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >index 18225ac..383ccb3 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl >@@ -469,8 +469,8 @@ > <xsl:with-param name="codes"> > <xsl:choose> > <!-- #13383 include subfield e for field 111 --> >- <xsl:when test="@tag=111">abcdeqt</xsl:when> >- <xsl:otherwise>abcdjqt</xsl:otherwise> >+ <xsl:when test="@tag=111">abceqt</xsl:when> >+ <xsl:otherwise>abcjqt</xsl:otherwise> > </xsl:choose> > </xsl:with-param> > </xsl:call-template> >@@ -479,6 +479,12 @@ > <xsl:text>:,;/ </xsl:text> > </xsl:with-param> > </xsl:call-template> >+ <xsl:if test="marc:subfield[@code='d']"> >+ <span class="authordates"> >+ <xsl:text> </xsl:text> >+ <xsl:value-of select="marc:subfield[@code='d']"/> >+ </span> >+ </xsl:if> > <xsl:if test="marc:subfield[@code='4' or @code='e'][not(parent::*[@tag=111])] or (self::*[@tag=111] and marc:subfield[@code='4' or @code='j'][. != ''])"> > <span class="relatorcode"> > <xsl:text> [</xsl:text> >-- >2.6.2
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 15100
:
44614
|
44615
|
45072
|
45093
| 46412