[Koha-bugs] [Bug 21249] Syspref to choose whether to search homebranch, holding branch or both for library groups in advanced search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 3 08:04:40 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21249

David Cook <dcook at prosentient.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA

--- Comment #36 from David Cook <dcook at prosentient.com.au> ---
"home library and holding library" doesn't work for individual libraries.

It's generating the following PQF:
@attrset Bib-1 @or @and @attr 1=8023 @attr 4=6 @attr 5=1 @attr 2=102
39999000001310 @attr 1=homebranch CPL @attr 1=8012 CPL

The Library Group option generates the following which is correct:
@attrset Bib-1 @and @attr 1=8023 @attr 4=6 @attr 5=1 @attr 2=102 39999000001310
@or @attr 1=homebranch CPL @attr 1=8012 CPL

The key is the parentheses in your query.

For the group you're doing this:
"(%s or %s)"

For the individual you're doing this:
"$homebranchlimit or $holdingbranchlimit"

If you change that last one to the following it should work:
"($homebranchlimit or $holdingbranchlimit)"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list