Bug 40691: Add ccode label on inventory table
Test plan: 1) Perform an item inventory, be sure to have some items with problems :) like 'wrong place' 2) On table if item has 'wrong place' problem (maybe others cases ?) if it's linked to collection code just the AV code appears not the label 3) Apply this patch 4) Refresh page, normally that's okay now Sponsored-by: BibLibre Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
fce45b4279
commit
25b9895c8d
|
|
@ -504,7 +504,7 @@ sub additemtoresults {
|
|||
my $fc = $item->{'frameworkcode'} || '';
|
||||
|
||||
# Populating with authorised values description
|
||||
foreach my $field (qw/ location notforloan itemlost damaged withdrawn /) {
|
||||
foreach my $field (qw/ location notforloan itemlost damaged withdrawn ccode /) {
|
||||
my $av = Koha::AuthorisedValues->get_description_by_koha_field(
|
||||
{ frameworkcode => $fc, kohafield => "items.$field", authorised_value => $item->{$field} } );
|
||||
if ( $av and defined $item->{$field} and defined $av->{lib} ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue