From ba470b03801a3ebb8730361a8becf1c5830a4c68 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 28 Apr 2016 18:54:59 +0000 Subject: [PATCH] Bug 15533 [QA Followup] - All itemtypes for all items showing in OPAC multi-hold --- .../opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 26 ++++++++++++---------- opac/opac-reserve.pl | 1 + 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 3b8ba6c..eb1cd3c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -249,18 +249,20 @@ [% INCLUDE 'date-format.inc' %] - [% UNLESS ( multi_hold ) %] - [% IF Koha.Preference('AllowHoldItemTypeSelection') %] -
  • - - -
  • - [% END %] + [% IF Koha.Preference('AllowHoldItemTypeSelection') %] + [% itemtypes = [] %] + [% FOREACH item IN bibitemloo.itemLoop %] + [% itemtypes.push( item.itype ) %] + [%- END %] +
  • + + +
  • [% END %] [% IF ( OpacHoldNotes ) %] diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 687a663..328d2c8 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -444,6 +444,7 @@ foreach my $biblioNum (@biblionumbers) { $itemLoopIter->{copynumber} = $itemInfo->{copynumber}; if ($itemLevelTypes) { $itemLoopIter->{translated_description} = $itemInfo->{translated_description}; + $itemLoopIter->{itype} = $itemInfo->{itype}; $itemLoopIter->{imageurl} = $itemInfo->{imageurl}; } -- 2.1.4