From 3aa7273e699978e1b7865e52d304e8c6dc06e88f Mon Sep 17 00:00:00 2001 From: Natasha Date: Wed, 20 Jan 2016 23:35:48 +0000 Subject: [PATCH] Bug 15564 - Display "print slip" option when returning an item which is in a rotating collection To Test - 1. Make a new rotating collection (under tools) with at least one book in it. 2. Check out the book/s from rotating collection. 3. Set library to a different library. 4. Check in book you just checked out. 5. Should show a dialog box with no print slip link or city. 6. Apply patch and repeat steps 1-4. Dialog box should now show the item name, city name and print slip link. --- circ/returns.pl | 1 + koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/circ/returns.pl b/circ/returns.pl index f7fb52c..0b9d2f4 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -632,6 +632,7 @@ if ( $itemnumber ) { $template->param( collectionItemNeedsTransferred => 1, collectionBranch => GetBranchName($collectionBranch), + itemnumber => $itemnumber, ); } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 5895b60..badd70f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -133,7 +133,10 @@ $(document).ready(function () { [% END %] [% IF ( collectionItemNeedsTransferred ) %] -
This item is part of a rotating collection and needs to be transferred to [% collectionBranch %]
+ +
+

[% title or "item" |html %] is part of a rotating collection and needs to be transferred to [% Branches.GetName( returnbranch ) %]
( Print slip )

+
[% END %] -- 1.7.10.4