Koha/koha-tmpl/intranet-tmpl/prog/en/xslt
Tomas Cohen Arazi 3fb57f34ea Bug 12829: properly skip invalid ISBN when rendering for normal record display
Currently, 020$z (and 010$z fr UNIMARC) occurences are not shown, but the XSLT logic
used introduces punctuation characters for those $z occurences.

This patch adds a check for the existence of subfield a, and only loops
on $a subfields.

To test:
- Create/have a record with 020$z (or 010$z on UNIMARC) but no 020$a (no 010$a on UNIMARC).
- Open the detail page for the record (on both OPAC and staff).
=> FAIL: the ISBN label and ';' and '.' characters incorrectly shown.
- Repeat mixing with 020$a occurences to notice the bug.
- Apply the patch, reload
=> SUCCES: ISBN label shows only on the presence of a $a, and $z are skipped.
           no matter how many ISBN fields you add.
- Sign off :-D

Regards
To+

http://bugs.koha-community.org/show_bug.cgi?id=12901
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
2014-11-07 11:27:52 -03:00
..
compact.xsl
identity.xsl
MARC21slim2ATOM.xsl
MARC21slim2DC.xsl
MARC21slim2intranetDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
MARC21slim2intranetResults.xsl Bug 11517: Braille and combination swapped in XSLT result lists 2014-10-31 14:18:10 -03:00
MARC21slim2MADS.xsl
MARC21slim2MODS.xsl
MARC21slim2MODS3-1.xsl
MARC21slim2MODS3.xsl
MARC21slim2MODS32.xsl
MARC21slim2OAIDC.xsl
MARC21slim2RDFDC.xsl
MARC21slim2RDFDC.xsl.1
MARC21slim2RSS2.xsl
MARC21slim2SRWDC.xsl
MARC21slim9522852.xsl
MARC21slimUtils-MODS31.xsl
MARC21slimUtils.xsl Bug 12900: (consistency followup) add buildBiblioDefaultViewURL to MARC21 XSLT 2014-10-27 10:52:48 -03:00
MARC21slimUtils2.xsl
NORMARCslim2intranetDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
NORMARCslim2intranetResults.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00
NORMARCslim2OAIDC.xsl
NORMARCslimUtils.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00
oilsMARC21slim2HTML.xsl
UNIMARC_compact.xsl
UNIMARCslim2intranetDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
UNIMARCslim2intranetResults.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00
UNIMARCslim2OAIDC.xsl
UNIMARCslimUtils.xsl Bug 12900: IntranetBiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-27 10:52:37 -03:00