From: Fridolin Somers Date: Wed, 24 Oct 2018 12:23:02 +0000 (+0200) Subject: Bug 21644: better UNIMARC XSLT display of 210 in intranet X-Git-Url: http://git.equinoxoli.org/?p=koha.git;a=commitdiff_plain;h=4e949243ad7df62756e5f96b7d94c796a73a03e1 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" Signed-off-by: Andreas Roussos Signed-off-by: Marcel de Rooy This patch makes intranet consistent with staff again on this area. Note that we loose some punctuation like "- e". Signed-off-by: Nick Clemens (cherry picked from commit 7b16603b310212cc42d2e06e4b9bcaefa4b066ea) Signed-off-by: Jesse Maseto --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl index 48d50c5..c41777b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl @@ -34,31 +34,22 @@ - - - , - - - - : - - - - , - - - - — - - - - : - - - - , - - + + + + + : + + + + + + , + + + + + •