From fba1d7897373aeb43fc34feda07a287031a36caa Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 17 Oct 2022 17:02:39 +0000 Subject: [PATCH] Bug 31671: Add print slip button to transfer page To test: 1. Apply patch 2. Go to Circulation / Transfer 3. Try transfering some items and notice the 'Print transfer slip' button 4. Try clicking on it and make sure it generates correctly and with the correct information on the slip --- .../prog/en/modules/circ/branchtransfers.tt | 52 ++++++++++++++----- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt index ca153d719b..7e621a9e9a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt @@ -2,6 +2,7 @@ [% USE Branches %] [% USE ItemTypes %] [% USE AuthorisedValues %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Transfers › Circulation › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -198,19 +199,35 @@ [% IF ( trsfitemloop ) %] -
- - +
Transferred items
+ + + + + + + + + + + + + + [% FOREACH trsfitemloo IN trsfitemloop %] - - - - - - - - - + + + + + + + + + + [% FOREACH trsfitemloo IN trsfitemloop %] @@ -245,5 +262,14 @@ [% END %] - +[% MACRO jsinclude BLOCK %] + +[% END %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.30.2
Transferred items
TitleAuthorBarcodeShelving locationCall numberItem typeCollectionOriginDestinationPrint transfer slip
TitleAuthorBarcodeShelving locationCall numberItem typeCollectionOriginDestination + [% INCLUDE 'biblio-title.inc' biblio=trsfitemloo.item.biblio link=1 %] + + [% trsfitemloo.item.biblio.author | html %][% trsfitemloo.item.barcode | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => trsfitemloo.item.location ) | html %][% trsfitemloo.item.itemcallnumber | html %][% ItemTypes.GetDescription( trsfitemloo.item.effective_itemtype ) | html %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => trsfitemloo.item.ccode ) | html %][% Branches.GetName( trsfitemloo.frombrcd ) | html %][% Branches.GetName( trsfitemloo.tobrcd ) | html %]