From d6eeff7fae0ce3fd1b69c318b7f6a530ea1beebc Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Thu, 5 Oct 2017 14:04:18 +0000 Subject: [PATCH] Bug 4319 - [OPAC] allow to holds items in transit Test plan is the same that for waiting items but with items in transit Signed-off-by: Sonia BOUIS --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc | 2 +- opac/opac-detail.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc index 9069ee4..a94180c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-detail-sidebar.inc @@ -3,7 +3,7 @@ [% UNLESS ( norequests ) %] [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] - [% IF ( AllowOnShelfHolds OR ItemsIssued OR ItemsWaiting ) %] + [% IF ( AllowOnShelfHolds OR ItemsIssued OR ItemsWaitingOrInTransit ) %]
  • Place hold
  • [% END %] [% END %] diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl index 49f80e7..d371f44 100755 --- a/opac/opac-detail.pl +++ b/opac/opac-detail.pl @@ -461,7 +461,7 @@ if ($session->param('busc')) { $template->param( ItemsIssued => CountItemsIssued( $biblionumber ), - ItemsWaiting => Koha::Holds->search({biblionumber => $biblionumber, found => 'W'})->count(), + ItemsWaitingOrInTransit => Koha::Holds->search({biblionumber => $biblionumber, found => ['W', 'T']})->count(), OPACShowCheckoutName => C4::Context->preference("OPACShowCheckoutName"), OPACShowBarcode => C4::Context->preference("OPACShowBarcode") ); -- 2.7.4