[Koha-bugs] [Bug 8783] New: Parentheses not escaped properly in queries when using XSLT
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Sep 18 14:20:35 CEST 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8783
Priority: P5 - low
Change sponsored?: ---
Bug ID: 8783
Assignee: gmcharlt at gmail.com
Summary: Parentheses not escaped properly in queries when using
XSLT
Severity: normal
Classification: Unclassified
OS: All
Reporter: kyle at bywatersolutions.com
Hardware: All
Status: NEW
Version: master
Component: Searching
Product: Koha
When XSLT is enabled, searching on subjects containing parentheses cause an
error. The problem is the parens are not escaped properly, and so are
interpreted as part of the query language, rather than the query string.
For example, this query fails:
(su:{Baggins, Frodo (Fictitious character)}) AND (su:{Fiction})
but this query works:
(su:{Baggins, Frodo \(Fictitious character\)}) AND (su:{Fiction})
I think the problem is within the xslt template subfieldSelect. Interestingly,
with XSLT off, each subject shows up as an individual link ( so one link for
Frogo, and one link for Ficition ) whereas with XSLT on, they subjects are
combined with an AND.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list