Koha/koha-tmpl/opac-tmpl/bootstrap/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 Bug 10309 - New OPAC theme based on Bootstrap 2013-10-14 23:13:05 +00:00
MARC21slim2OPACDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
MARC21slim2OPACResults.xsl Bug 11517: Braille and combination swapped in XSLT result lists 2014-10-31 14:18:10 -03:00
MARC21slimUtils.xsl Bug 12901: (QA followup) correct copy and paste error 2014-10-30 00:26:33 -03:00
NORMARCslim2OPACDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
NORMARCslim2OPACResults.xsl Bug 12901: BiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-30 00:26:12 -03:00
NORMARCslimUtils.xsl Bug 12901: (QA followup) correct copy and paste error 2014-10-30 00:26:33 -03:00
plainMARC.xsl Bug 10647 - Make OPAC MARC plain view work for all flavours of MARC 2014-03-14 14:50:13 +00:00
UNIMARCslim2OPACDetail.xsl Bug 12829: properly skip invalid ISBN when rendering for normal record display 2014-11-07 11:27:52 -03:00
UNIMARCslim2OPACResults.xsl Bug 12901: BiblioDefaultView doesn't do anything with NORMARC or UNIMARC XSLT 2014-10-30 00:26:12 -03:00
UNIMARCslimUtils.xsl Bug 12901: (QA followup) correct copy and paste error 2014-10-30 00:26:33 -03:00