From d0b717a44f17c235accc2406d9af47f4df864c9e 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 --- .../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 @@ - abcdeqt - abcdjqt + abceqt + abcjqt @@ -1203,11 +1203,11 @@ - + - abcdfghiklmnoprstux + abcfghiklmnoprstux @@ -1220,7 +1220,12 @@ - + + + + + + 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 @@ - 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 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 @@ - abcdeqt - abcdjqt + abceqt + abcjqt @@ -1303,11 +1303,11 @@ - + - abcdfghiklmnoprstux + abcfghiklmnoprstux @@ -1321,6 +1321,12 @@ + + + + + + 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 @@ - abcdeqt - abcdjqt + abceqt + abcjqt @@ -479,6 +479,12 @@ :,;/ + + + + + + [ -- 2.6.2