[Koha-bugs] [Bug 13478] Force item holds only for specific biblios

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 5 12:17:34 CET 2015


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

M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:

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

--- Comment #15 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
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 <nick at quecheelibrary.org>

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Amended: Added the column to biblio and removed the separate table.

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


More information about the Koha-bugs mailing list