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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2025-11-06 14:55:48 +00:00 committed by Lucas Gass
parent fa23e8c145
commit 643da6f9cd
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 5 additions and 0 deletions

View File

@ -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,

View File

@ -1,5 +1,6 @@
[% USE raw %]
[% USE Asset %]
[% USE AuthorisedValues %]
[% USE Koha %]
[% USE KohaDates %]
[% USE Branches %]
@ -65,6 +66,9 @@
<td>
[% INCLUDE 'biblio-title.inc' biblio=reser link = 1 %] [% IF ( reser.author ) %]by [% reser.author | html %][% END %]
[% IF ( reser.itemtype ) %](<strong>[% reser.itemtype | html %]</strong>)[% END %]
[% IF ( reser.ccode ) -%]
<span class="collection_code">Collection: [% AuthorisedValues.GetDescriptionByKohaField(kohafield => 'items.ccode', authorised_value => reser.ccode) | html %]</span>
[%- END %]
<br />Barcode: [% reser.barcode | html %]
</td>
<td