Bug 10911: fix invalid links when displaying records that have 880 fields
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 18 Sep 2013 19:24:08 +0000 (15:24 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 23 Sep 2013 17:12:13 +0000 (17:12 +0000)
commit115a3e6b60cab0e5000483575ca69736bb40ee2c
treef73ef34a92ae50bbc72085b24c49de4dc6f3aa7d
parent54befcf59ed85be0041d72760eb1771bcce0492e
Bug 10911: fix invalid links when displaying records that have 880 fields

Koha intranet search results using XSLT for records with 880 fields have
the details link created by a code path that incorrectly links to some
opac pages.

Test Plan:
1) Enable XSLT for intranet search results
2) Upload or create a record with at least one 880 field
3) Search for the item ( must have multiple hits to avoid redirection )
4) Click the title link, note it is broken
5) Apply this patch
6) Click the title link, note it is correct

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Work as described, no koha-qa errors.

Test
1) imported two times sample record
2) reindex
3) search, find example record, broken links
4) applied patch
5) refresh, good links

NOTE: A similar (invalid references) problem is present on
UNIMARC and NORMAC files
I'll file a new bug for those cases.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, tested with a different set of sample
records with Hebrew 880 fields.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slimUtils.xsl