]> git.koha-community.org Git - koha.git/commit
Bug 4319: [OPAC] Allow holds on waiting/transit items
authorAlex Arnaud <alex.arnaud@biblibre.com>
Tue, 3 Oct 2017 14:50:36 +0000 (14:50 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 13 Feb 2018 16:02:23 +0000 (13:02 -0300)
commita9779b67d652351c32486ffc005a01b465ec463e
treec1cfa13c50704ce4547a5c4978910ad871353889
parentaddb4a06b5e082c56f91a325565c0b688439a1de
Bug 4319: [OPAC] Allow holds on waiting/transit items

Test plan:

 - Checkout an item
 - Place hold on this item,
 - Return the item
 - Make sure the hold is waiting (found W) and AllowOnShelfHolds is
   not to 'Allow'
 - Check that the button "Place hold" appears in opac detail page of
   the biblio

 - do the samewith items/reserves in transit

Changes on C4::Reserves::IsAvailableForItemLevelRequest

Make sure this tests pass:
  - t/db_dependent/Reserves.t
  - t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t

Rebased - 2017-12-12 - Alex Arnaud

Bug 4319 - [QA fix] Create Koha::Biblio->hasItemswaitingOrInTransit

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Reserves.pm
Koha/Biblio.pm
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc
opac/opac-detail.pl
t/db_dependent/Holds/DisallowHoldIfItemsAvailable.t
t/db_dependent/Koha/Biblios.t