[Koha-bugs] [Bug 16979] New: Search for barcode containing parentheses fails
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jul 26 17:27:34 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16979
Bug ID: 16979
Summary: Search for barcode containing parentheses fails
Change sponsored?: ---
Product: Koha
Version: 16.05
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Searching
Assignee: gmcharlt at gmail.com
Reporter: jyorio at esilibrary.com
QA Contact: testopia at bugs.koha-community.org
Searching for a call number containing parentheses, similar to:
1234567890 (text)
or
1234(5678)90
fails to return any results, either in the staff interface or OPAC.
For the first barcode, leaving off "(text)" will return the expected result,
but removing the parentheses from the latter still does not.
The issue (and I suspect the solution) seems similar to 15468 and 12405 in
that, if I modify the URL to include %22 around the barcode, I get the expected
result.
To reproduce :
1) Set up an item with a barcode with the form: 1234567890 (text)
2) In the staff interface, perform a barcode search for the exact barcode
3) No results are returned
4) Modify the search URL to include %22 around barcode
e.g.:
.../cgi-bin/koha/catalogue/search.pl?idx=bc&q=1234567890+(text)&op=and&idx=kw&op=and&idx=kw&sort_by=relevance
becomes:
cgi-bin/koha/catalogue/search.pl?idx=bc&q=%221234567890+(text)%22&op=and&idx=kw&op=and&idx=kw&sort_by=relevance
5) Press enter
6) The expected result is returned
7) Setup an item with a barcode with the form: 1234(5678)90
8) In the staff interface, perform a barcode search for the exact barcode
9) No results are returned
10) Modify the result URL to include %22 around barcode
e.g.
.../cgi-bin/koha/catalogue/search.pl?idx=bc&q=1234(5678)90&op=and&idx=kw&op=and&idx=kw&sort_by=relevance
becomes:
.../cgi-bin/koha/catalogue/search.pl?idx=bc&q=%221234(5678)90%22&op=and&idx=kw&op=and&idx=kw&sort_by=relevance
11) Press enter
12) The expected result is returned
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list