From 10a519d1d0b7c8a4c356d72d90446d04fd4df4d5 Mon Sep 17 00:00:00 2001 From: Andrew Fuerste Henry Date: Fri, 4 Apr 2025 19:27:29 +0000 Subject: [PATCH] Bug 39555: Relabel "On Loan" in Transfers to Send This test plan edits database values rather than getting these transfers requested via StockRotation. I don't believe that impacts the validity of the testing. To test: 1 - enable StockRotation syspref (otherwise the Transfers to Show page doesn't show up) 2 - go to /cgi-bin/koha/circ/branchtransfers.pl and transfer an item 3 - log into the database and "update branchtransfers set datesent=NULL where branchtransfer_id=[your transfer]" 4 - go to /cgi-bin/koha/circ/transfers_to_send.pl 5 - confirm there is a column named "On shelf" and your transfer shows the value "On shelf" in that column 6 - back in the database, "update items set onloan=curdate() where itemnumber=[your item]" 7 - reload Transers to Send, confirm it now shows "Due [today]" for your item in the On Loan column 8 - apply patch 9 - reload Transfers to Send, confirm column is now titled "Date due" and the value for your item is still the due date 10 - back in the database, "update items set onloan=NULL where itemnumber=[your item]" 11 - reload Transfers to Send, confirm your item now shows a value of "Not checked out" Signed-off-by: David Nind --- .../intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt index f978274327..e8fce4d118 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transfers_to_send.tt @@ -50,7 +50,7 @@ Date of request Title Reason - On loan + Date due Home library Call number Actions @@ -67,7 +67,7 @@
Barcode: [% transfer.item.barcode | html %]

[% PROCESS transfer_reason transfer=transfer %]

- [% IF transfer.item.onloan %]Due [% transfer.item.onloan | $KohaDates %][% ELSE %]On shelf[% END %] + [% IF transfer.item.onloan %]Due [% transfer.item.onloan | $KohaDates %][% ELSE %]Not checked out[% END %] [% Branches.GetName( transfer.item.homebranch ) | html %] [% transfer.item.itemcallnumber | html %] -- 2.39.5