[Koha-bugs] [Bug 18884] Advanced search on staff client, Availability limit not properly limiting

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 18 21:10:43 CEST 2017


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

Mark Alexander <marka at pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marka at pobox.com

--- Comment #1 from Mark Alexander <marka at pobox.com> ---
I ran into this problem today on 17.05.01.

The workaround I came up with was to create a library group, and add to this
group the specific library I wanted to search.  Then in the search form, I
selected that library group.

I'm not familiar with the code, but I did take a quick look, and couldn't see a
way to fix this just in advsearch.tt.  The language limit is handled correctly
there through the use of a FOREACH loop that inserts "ln,rtrn:" in front of the
language name in the option value.  But the branch limit is handled by a call
to options_for_libraries.  That function, in html_helpers.inc, doesn't seem to
allow a prefix to be inserted in front of the option value.

So it looks like the branch selector in advsearch.tt should have a name other
than "limit", and in search.pl this param should be handled separately from the
other "limit" params, by inserting the prefix "limit=holdingbranch:" in front
of the branch name.

Of course, due to my ignorance, I could be entirely wrong about all this :-) .

-- 
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