[Koha-bugs] [Bug 20723] New: Author links containing hyphen do not return results.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 7 22:07:47 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20723
Bug ID: 20723
Summary: Author links containing hyphen do not return results.
Change sponsored?: ---
Product: Koha
Version: 17.11
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Searching
Assignee: koha-bugs at lists.koha-community.org
Reporter: barton at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
Created attachment 75144
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75144&action=edit
Marc data known to illustrate the problem.
A keyword search for Gene Porter Stratton generates author links of the form
{STAFF
URL}/cgi-bin/koha/catalogue/search.pl?q=au:%22Stratton-Porter,%20Gene,%22
This link will return no results.
If I replace the hyphen with %20 (i.e. a URL encoded space), the search works:
{STAFF
URL}/cgi-bin/koha/catalogue/search.pl?q=au:%22Stratton%20Porter,%20Gene,%22
To replicate:
Do a keyword search for an author with a hyphenated name (I've attached a marc
record that has Gene Porter-Stratton for convenience).
On the results list page or the detail page, click on the link with the
author's name, e.g.
By: Stratton-Porter, Gene, 1863-1924.
The results will look like this:
No results found
No results match your search for 'au:"Stratton-Porter, Gene,"' in
Some Library
Back up to the previous page. Copy the link url into a text editor. Change the
dash to a hyphen. Note that the search succeeds.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list