From 128466aa3517c16ead73442d09a18ea02e0ec63c Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 24 Oct 2018 14:23:02 +0200 Subject: [PATCH] Bug 21644: better UNIMARC XSLT display of 210 in intranet In intranet default UNIMARC XSLT display of 210 is tricky. It tests each subfield with a complex conditional prefix. In OPAC default UNIMARC XSLT display 210 is simply displayed with a loop on all subfields. I propose to use the same code as OPAC in intranet. It allows to display $f and removes strange middle-score character. Test plan: 1) Doni't apply patch 2) Use an UNIMARC database 3) Use default XSLT in all displays 4) Configure a framework to allow 210 subfields from 'a' to 'h' 5) Edit a record with this framework 6) In each 210 subfield enter its letter : $a a, $b b ... 7) Save record 8) Look at record in OPAC, you see : "Publication: a, b : c, d, e, f : g, h" 9) Look at record in intranet 10) You see : ""Publication: a, b : c, d - e : g, h 11) Apply patch 12) Look at record in intranet 13) You see : "Publication: a, b : c, d, e, f : g, h" --- .../prog/en/xslt/UNIMARCslimUtils.xsl | 41 ++++++++----------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl index 65ec30683e..aba3a5a53d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl @@ -33,31 +33,22 @@ - - - , - - - - : - - - - , - - - - - - - - : - - - - , - - + + + + + : + + + + + + , + + + + + -- 2.17.1