From b4ec4548ff400f7038968fcc4c40d16e235f9385 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 28 Sep 2021 13:18:18 +0000 Subject: [PATCH] Bug 27613: (follow-up) Modify additional repeating entries for consistency MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch makes further changes to the detail and results XSLT in the OPAC so that previously pipe-separated fields are styled with CSS. The following tags are modified on the detail page: 020 ISBN 022 ISSN 050 LOC classification 060 NLM classification 082 DDC classification 084 Other classification 130/240/730 Uniform titles 246 Other title 336 Content type 337 Media type 338 Carrier type 385 Audience 508 Production credits 583 Action note 586 Awards 655 Genre/Form 700/710/711 Contained works 700/710/711 Related works 770 Supplement 772 Supplement to 856 Online resources These are modified on the results page: 028 Publisher number 246 Other title To test, apply the patch and rebuild the OPAC CSS (https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_client). In order to better see the effect of the CSS change you can add something ike this to your OPACUserCSS system preference: .resource_list li::after { content: "♦"; } View catalog search results and detail pages for records which contain repeated entries from the tag list above. The entries should be separated by "|" without customization, or the symbol from your OPACUserCSS if you specified one. Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- .../opac-tmpl/bootstrap/css/src/opac.scss | 16 +- .../en/xslt/MARC21slim2OPACDetail.xsl | 974 +++++++++--------- .../en/xslt/MARC21slim2OPACResults.xsl | 23 +- 3 files changed, 533 insertions(+), 480 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss index 55993aa3fd..3b0ac23f29 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss +++ b/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss @@ -1153,19 +1153,17 @@ div { } } -.online_resources { - ul { - display: inline-block; - margin: 0 auto; - padding-left: 0; - } +.resource_list { + display: inline-block; + margin: 0 auto; + padding-left: 0; li { display: inline-block; - white-space: nowrap; &::after { - content: " | "; + content: "|"; + padding: 0 .2em; } &:last-child { @@ -1173,9 +1171,7 @@ div { content: ""; } } - } - } #views { diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl index be0f96cde1..e6288e8973 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl @@ -438,37 +438,46 @@ Content type: - - - a - , - - | - +
    + +
  • + + a + , + +
  • +
    +
Media type: - - - a - , - - | - +
    + +
  • + + a + , + +
  • +
    +
Carrier type: - - - a - , - - | - +
    + +
  • + + a + , + +
  • +
    +
@@ -477,51 +486,60 @@ Audience: - - - - - - m - - - - : - - - - - a - , +
    + +
  • + + + + + m + + - - - | - + : + + + + + a + , + + + +
  • +
    +
- ISBN: - - - - ; - - - + ISBN: +
    + +
  • + + + +
  • +
    +
+
- ISSN: - - - - ; - - - + ISSN: +
    + +
  • + + + +
  • +
    +
+
@@ -559,42 +577,45 @@ - - Other title: + + + Other title: +
    - - - - - - i - - - - - abhfgnp - - - - - - [Portion of title] - [Parallel title] - [Distinctive title] - [Other title] - [Cover title] - [Added title page title] - [Caption title] - [Running title] - [Spine title] - - - - - | +
  • + + + + + + i + + + + + abhfgnp + + + + + + [Portion of title] + [Parallel title] + [Distinctive title] + [Other title] + [Cover title] + [Added title page title] + [Caption title] + [Running title] + [Spine title] + + + +
  • - - +
+
+
@@ -626,211 +647,221 @@
- - Uniform titles: + + + Uniform titles: +
    - - - - i - - - - - - - +
  • + + + + i + - - - - | - + + + + + + + + +
  • -
    - +
+
+
- - - Related works: + + + + Related works: +
    - - - abcdfghiklmnporstux +
  • + + + abcdfghiklmnporstux + + + + + + - - - - - - - - - - [ - - - - - , - - - - - - , - - - - ] - - - - | - + + + + [ + + + + + , + + + + + + , + + + + ] + + +
  • - - +
+
+
- Contained works: - - - - abcdfghiklmnporstux - - - - - - - - - - - [ - - - - - , - - - - - - , - - - - ] - - - - | - - + + Contained works: +
    + +
  • + + + abcdfghiklmnporstux + + + + + + + + + + + [ + + + + + , + + + + + + , + + + + ] + + +
  • +
    +
- Subject(s): - - - - subject - - - /cgi-bin/koha/opac-search.pl?q=an: - - - - /cgi-bin/koha/opac-search.pl?q= - abcdfgklmnopqrstvxyz - AND - (su: - ) - 1 - - - - - - /cgi-bin/koha/opac-search.pl?q=su: - - - - - - abcdfgklmnopqrstvxyz - vxyz - -- - - - - - - - - /cgi-bin/koha/opac-authoritiesdetail.pl?authid= - - fa fa-search - - + + Subject(s): + + - - - | - - - - - - - - Genre/Form: + + + + Genre/Form: + + + @@ -933,16 +964,16 @@ DDC classification: - - - a - | - - - - | - - +
    + +
  • + + a2b +   + +
  • +
    +
@@ -950,12 +981,16 @@ LOC classification: - - - ab - | - - +
    + +
  • + + ab +   + +
  • +
    +
@@ -963,90 +998,96 @@ NLM classification: - - - a - | - - | - +
    + +
  • + + a + | + +
  • +
    +
- - Other classification: - - - a - | - - - - | - - + + Other classification: +
    + +
  • + + a + | + +
  • +
    +
- - - Online resources: - - + + + + Online resources: + + @@ -1109,19 +1150,22 @@ Action note: - - - - - - - - abcdefgijklnou - - - - | - +
    + +
  • + + + + + + + abcdefgijklnou + + + +
  • +
    +
@@ -1129,12 +1173,15 @@ Production credits: - - - a - - | - +
    + +
  • + + a + +
  • +
    +
@@ -1144,10 +1191,13 @@ Awards: - - - | - +
    + +
  • + +
  • +
    +
@@ -1291,86 +1341,88 @@ - Supplement: - - - + + Supplement: + - Supplement to: - - - + + Supplement to: + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index 7e5b5aca5e..cfb4e4812c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -1052,12 +1052,15 @@ Publisher number: - - - abq - | - - +
    + +
  • + + abq + +
  • +
    +
@@ -1130,13 +1133,15 @@ Other title: +
    +
  • ab - - . | +
  • +
@@ -1153,7 +1158,7 @@ Online access: -
    +
      -- 2.39.5