Bug 31065 - SearchLimitLibrary sys. pref. not limiting correctly when set to holding library
Summary: SearchLimitLibrary sys. pref. not limiting correctly when set to holding library
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: 21.11
Hardware: All All
: P5 - low normal with 1 vote (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-29 09:32 UTC by Holly
Modified: 2022-06-29 09:32 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holly 2022-06-29 09:32:13 UTC
Bug 21249 added the system preference SearchLimitLibrary which allows a site to determine in an advanced search if the branch specified should be searched against the home library, the holding library or both the home and holding library of the item. 

On the release 21.11.06, I'm seeing instances where the sys. pref, set to "holding library", will still bring back results based on the home library.

Example:

The item record is set up with home library as branch A and holding library as branch B. 

A library group is set up with only branch A in it. 

The SearchLimitLibrary system preference is set to "holding library".

Under Advanced search, under "search for", the dropdown is set to "barcode".

Under "Location and Availability", the "Groups of libraries" option is set to the group containing only branch A. 

The barcode for the item is searched for and the item is returned. 

The item should not be returned, as the search should limit to the holding branch, which is not included in the library group being searched for. 

The same issue appears if branch A is searched for individually under the Advanced Search setting.