Bug 40287: (follow-up) Use GetDescriptionByKohaField for item fields

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2025-07-21 13:52:18 +00:00 committed by Lucas Gass
parent 676b220687
commit ed2556e7f3
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
3 changed files with 7 additions and 7 deletions

View File

@ -74,8 +74,8 @@
<strong>Home library: </strong>
[% Branches.GetName( loopfilte.filter ) | html %]
[% CASE '6' %]
<strong>Collection: </strong>
[% AuthorisedValues.GetByCode( 'CCODE', loopfilte.filter ) | html %]
<strong>Collection:</strong>
[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => loopfilte.filter ) %]
[% CASE '7' %]
<strong>Item type: </strong>
[% ItemTypes.GetDescription( loopfilte.filter ) | html %]

View File

@ -68,11 +68,11 @@
[% CASE "Library" %]
<strong>Library:</strong> [% Branches.GetName( loopfilte.filter ) | html %]
[% CASE "Shelving Location" %]
<strong>Location:</strong> [% AuthorisedValues.GetByCode( 'LOC', loopfilte.filter ) | html %]
<strong>Location:</strong> [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => loopfilte.filter ) %]
[% CASE "Collection Code" %]
<strong>Collection:</strong> [% AuthorisedValues.GetByCode( 'CCODE', loopfilte.filter ) | html %]
<strong>Collection:</strong> [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => loopfilte.filter ) %]
[% CASE "Status" %]
<strong>Not for loan:</strong> [% AuthorisedValues.GetByCode( 'NOT_LOAN', loopfilte.filter ) | html %]
<strong>Not for loan:</strong> [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => loopfilte.filter ) %]
[% CASE "Materials" %]
<strong>Materials specified:</strong> [% loopfilte.filter | html %]
[% CASE "Barcode (not like)" %]

View File

@ -82,9 +82,9 @@
[% CASE 4 %]
<strong>Issuing library:</strong> [% Branches.GetName( loopfilte.filter ) | html %]
[% CASE 5 %]
<strong>Collection:</strong> [% AuthorisedValues.GetByCode( 'CCODE', loopfilte.filter ) | html %]
<strong>Collection:</strong> [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => loopfilte.filter ) %]
[% CASE 6 %]
<strong>Location:</strong> [% AuthorisedValues.GetByCode( 'LOC', loopfilte.filter ) | html %]
<strong>Location:</strong> [% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.location', authorised_value => loopfilte.filter ) %]
[% CASE 7 %]
<strong>Item call number &gt; [% loopfilte.filter | html %] </strong>
[% CASE 8 %]