http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13478

M. de Rooy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #36237|0                           |1
        is obsolete|                            |
  Attachment #36238|0                           |1
        is obsolete|                            |

--- Comment #15 from M. de Rooy <[email protected]> ---
Created attachment 36566
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=36566&action=edit
Bug 13478: Force item holds only for specific biblios

This patch adds the option to selectively force item holds for specific
biblionumbers.
The patch adds routine C4::Reserves::CheckBiblioForceItemHolds. It is
tested in Reserves.t.
The preference OPACItemHolds gets a new choice: selectiveforce.
The description of the pref is adjusted.

Please note that this option is specifically targeted for the OPAC. Staff
users still have both possibilities.

A follow-up report (13479) will add the possibility for staff users to
enable the forced item hold on biblio level.

TEST PLAN:
[ 1] Run the unit test t/db_dependent/Reserves.t.
[ 2] Set OPACItemHolds to force.
[ 3] Add a hold in the OPAC; verify that you cannot place a next/av hold.
[ 4] Set OPACItemHolds to Allow.
[ 5] Add a hold in the OPAC; verify that you can place both hold types.
[ 6] Set OPACItemHolds to Do not allow.
[ 7] Add a hold in the OPAC; verify that you can only place next/av holds.
[ 8] Enable forced item holds for two biblionumbers:
     UPDATE biblio SET forced_item_holds=1 WHERE biblionumber=?
[ 9] Set OPACItemHolds to Selectively force.
[10] Add a hold on three biblionumbers at once (including these two).
     Verify that you have two hold types for the single biblio and that
     you have only item holds for the two other biblios.

Signed-off-by: Nick <[email protected]>

Signed-off-by: Marcel de Rooy <[email protected]>
Amended: Added the column to biblio and removed the separate table.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to