From d80763c3714457bf14fd585513ab07d02b82c819 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 27 Oct 2020 15:02:43 +0000 Subject: [PATCH] Bug 26825: Add span for publication date in OPAC This patch modifies the XSL templates for OPAC results and OPAC details so that the parts of the publisher details are wrapped separate s: Publisher place, name, and date. To test, apply the patch "restart_all" if necessary. You can add this to the OPACUserCSS system preference to better see the change: .publisher_place { color: red; } .publisher_name { color: green; } .publisher_date { color: orange; } - Peform a search in the OPAC - In the search results, confirm that the publisher plac, name, and date are wrapped in separate s, either by confirming the custom colors or by inspecting the source. - View the details for one of the results. Confirm that the same change has been made to the detail page. Signed-off-by: B Johnson Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- .../en/xslt/MARC21slim2OPACDetail.xsl | 40 ++++++++++--------- .../en/xslt/MARC21slim2OPACResults.xsl | 30 ++++++++------ 2 files changed, 39 insertions(+), 31 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index 8f50ad5fa6..f768671aab 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -313,32 +313,34 @@ - - - a - - + + + a + + - /cgi-bin/koha/opac-search.pl?q=Provider: - - b - - + + /cgi-bin/koha/opac-search.pl?q=Provider: + + b + + + - - - - - cg - - - - + + + + + cg + + + + ; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 1d0d4733e8..cb74d0ad69 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1054,24 +1054,30 @@ Publication details: - - a - + + + a + + - - b - + + + b + + - - - - cg + + + + + cg + + - - + ; -- 2.39.5