Bug 6553: parentheses in authors break tracings
authorIan Walls <ian.walls@bywatersolutions.com>
Mon, 3 Oct 2011 15:22:30 +0000 (11:22 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 25 Oct 2011 23:35:15 +0000 (19:35 -0400)
commit258d980197403a6501409a69d8f54fd34481d60a
treefe206e1745d3963ff72f931c3acb09baed611ea2
parentecb4cd1782384c98d9bbb931ed3b25ed5133940e
Bug 6553: parentheses in authors break tracings

If an author's name includes parentheses or other escape-characters, the tracing links
produced in the OPAC and staff client fail in XSLT mode.  This patch wraps the author names
in double-quotes, providing the necessary escapement.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Test plan:
- Create a new framework, delete Thesaurus from 700 and other fields
- Create a new record in this framework
- Add 700$a - use parentheses
- Check the search links in OPAC and staff detail pages
> before patch link was broken, after it works

Note: Links are only broken when no authorities are being used.
When using authorities the link uses the auth number instead of the text
for linking, so the parentheses don't matter for search.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 0ae2c3c4ceab85993ee23360d2c0d5409f465df6)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl