Advanced search by shelving location broken?
Dear list folks I have Koha 3.20.02 In advanced search - use first search line drop down to select "shelving location" Enter term to search for. Koha searches for =location,wrdl: ... but 0 results Use second line drop down to select "shelving location" Enter term to search for. Koha then searches for the search term(s) as a keyword, not a location. =kw,wrdl: Can anyone check and confirm whether they can successfully search by shelving location? If so, what Koha version are you on? Thank you Agnes -- Agnes Rivers-Moore CEO / Chief Librarian Hanover Public Library 451 10th Ave, Hanover, ON, N4N 2P1 Tel: 519.364.1420 | Fax: 519.364.1747 Email: arm@hanover.ca<mailto:arm@hanover.ca> | Web: www.hanoverlibrary.ca<http://www.hanoverlibrary.ca> Please consider the environment before printing this message or attachments. Support your library! Could you make a donation, volunteer, or remember us in your will?
Hi Agnes, have you tried searching with the location code instead of the description? I think this should work - I have tested in 3.18 and on master. As the patrons don't know the code and you can set up a search option for locations with checkboxes like for itemtpyes (system preference AdvancedSearchTypes), we have hidden the entry in the pull down for some libraries with jQuery: $("#advsearch option[value='location']").hide(); The change in the search index you see when leaving the first field empty is because of a bug: Bug 7607 - Advanced search: Index and search term don't match when leaving fields empty http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7607 The problem is that it will use the index selected for the first search option if you have left it empty. In your case that means it will do a keyword search selected on the first line instead of using the location index you selected on the second. Hope this helps, Katrin Am 03.12.2015 um 01:56 schrieb Agnes Rivers-Moore:
Dear list folks
I have Koha 3.20.02
In advanced search - use first search line drop down to select "shelving location" Enter term to search for. Koha searches for =location,wrdl: ... but 0 results
Use second line drop down to select "shelving location" Enter term to search for. Koha then searches for the search term(s) as a keyword, not a location. =kw,wrdl:
Can anyone check and confirm whether they can successfully search by shelving location? If so, what Koha version are you on?
Thank you Agnes
-- Agnes Rivers-Moore CEO / Chief Librarian Hanover Public Library 451 10th Ave, Hanover, ON, N4N 2P1
Tel: 519.364.1420 | Fax: 519.364.1747 Email: arm@hanover.ca<mailto:arm@hanover.ca> | Web: www.hanoverlibrary.ca<http://www.hanoverlibrary.ca>
Please consider the environment before printing this message or attachments. Support your library! Could you make a donation, volunteer, or remember us in your will? _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz https://lists.katipo.co.nz/mailman/listinfo/koha
participants (2)
-
Agnes Rivers-Moore -
Katrin Fischer