From 2f85d659a1ce76cc48bf53e07ce908b47fdce3c6 Mon Sep 17 00:00:00 2001 From: Katrin Fischer 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 Works as advertised Signed-off-by: Jesse Weaver Signed-off-by: Brendan A Gallagher --- .../prog/en/xslt/MARC21slim2intranetDetail.xsl | 15 ++++++++++----- .../prog/en/xslt/MARC21slim2intranetResults.xsl | 10 ++++++++-- .../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 556f44f066..d42e75a103 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -1192,8 +1192,8 @@ - abcdeqt - abcdjqt + abceqt + abcjqt @@ -1204,11 +1204,11 @@ - + - abcdfghiklmnoprstux + abcfghiklmnoprstux @@ -1221,7 +1221,12 @@ - + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetResults.xsl index 0d40cab382..839e1acd71 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 @@ - abcdeqt - abcdjqt + abceqt + abcjqt @@ -374,6 +374,12 @@ + + + + + + [ diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 3c04fbcb88..270c932c1f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -1292,8 +1292,8 @@ - abcdeqt - abcdjqt + abceqt + abcjqt @@ -1304,11 +1304,11 @@ - + - abcdfghiklmnoprstux + abcfghiklmnoprstux @@ -1322,6 +1322,12 @@ + + + + + + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 18225acd3f..383ccb3afc 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 @@ - abcdeqt - abcdjqt + abceqt + abcjqt @@ -479,6 +479,12 @@ :,;/ + + + + + + [