From b23e8cb41a3f3369a8292a9027184d56258338d6 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 6 Nov 2025 14:55:48 +0000 Subject: [PATCH] Bug 41206: Add collection code to transfers to receive This patch adds the collection code to the transfers to receive report It wraps it in a span for styling/hiding To test: 1 - Transfer some books with collection code set to another branch 2 - Sign in as that branch 3 - Circulation -> Transfers to receive 4 - No collection code shown 5 - Apply patch 6 - Refresh 7 - See collection code --- circ/transferstoreceive.pl | 1 + .../intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/circ/transferstoreceive.pl b/circ/transferstoreceive.pl index 46206ce5817..1b7d135a31b 100755 --- a/circ/transferstoreceive.pl +++ b/circ/transferstoreceive.pl @@ -98,6 +98,7 @@ while ( my $library = $libraries->next ) { biblionumber => $biblio->biblionumber, itemnumber => $item->itemnumber, barcode => $item->barcode, + ccode => $item->ccode, homebranch => $item->homebranch, holdingbranch => $item->holdingbranch, itemcallnumber => $item->itemcallnumber, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt index 2bec7d42392..18e38df03c1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% USE AuthorisedValues %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] @@ -65,6 +66,9 @@ [% INCLUDE 'biblio-title.inc' biblio=reser link = 1 %] [% IF ( reser.author ) %]by [% reser.author | html %][% END %] [% IF ( reser.itemtype ) %]([% reser.itemtype | html %])[% END %] + [% IF ( reser.ccode ) -%] + Collection: [% AuthorisedValues.GetDescriptionByKohaField(kohafield => 'items.ccode', authorised_value => reser.ccode) | html %] + [%- END %]
Barcode: [% reser.barcode | html %]