Bug 21644: better UNIMARC XSLT display of 210 in intranet
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 24 Oct 2018 12:23:02 +0000 (14:23 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 26 Nov 2018 12:51:51 +0000 (12:51 +0000)
commit7b16603b310212cc42d2e06e4b9bcaefa4b066ea
treea8174a10e374bb216cfa1bfabfd5ce800946f641
parent38481c253ddfa5af061dfe3646650be0e3a52d58
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 <arouss1980@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
This patch makes intranet consistent with staff again on this area.
Note that we loose some punctuation like "- e".

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslimUtils.xsl