[Koha-bugs] [Bug 12354] Prevent reserving items based on item field values
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Apr 4 23:32:46 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12354
M. Tompsett <mtompset at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28630|0 |1
is obsolete| |
--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 37501
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=37501&action=edit
Bug 12354 - Prevent reserving items based on item field values
Add a system preference PreventItemHoldsFieldvalues, which is
a pipe-delimited list of "fieldname=value", where fieldname is
one of the fields from items -table in the database. If
the field has the exact value, the item cannot be reserved.
For example, "ccode=PILA|location=OHE" would prevent reserving
the item if it's collection code is 'PILA' or if it's location is 'OHE'.
To test:
1) Go to the page where you put a hold on an item, and look
at the list of items. Note which ones are available for hold
and which ones aren't.
2) Apply patch, set the syspref value to eg. homebranch=FOO|biblionumber=12345
3) Check that items with homebranch FOO or items for biblio 12345
cannot be reserved by patrons, and need override permission for staff
to reserve.
NOTE: This should apply, but is missing tests added to
t/db_dependent/Reserves.t -- mtompset
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list