@@ -, +, @@
---
C4/Items.pm | 5 ++++-
.../prog/en/modules/tools/inventory.tt | 15 +++++++++++++++
tools/inventory.pl | 9 ++++++---
3 files changed, 25 insertions(+), 4 deletions(-)
--- a/C4/Items.pm
+++ a/C4/Items.pm
@@ -1090,7 +1090,10 @@ sub GetItemsForInventory {
if ($f and $sf) {
# We replace the code with it's description
my $authvals = C4::Koha::GetKohaAuthorisedValuesFromField($f, $sf, $row->{'frameworkcode'});
- $row->{$_} = $authvals->{$row->{$_}} if defined $authvals->{$row->{$_}};
+ if ( defined $authvals->{ $row->{$_} } ) {
+ $row->{"$_-code"} = $row->{$_};
+ $row->{$_} = $authvals->{ $row->{$_} };
+ }
}
}
push @results, $row;
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
@@ -163,6 +163,21 @@ $(document).ready(function(){
[% END %]
+ [% IF (authorised_values) %]
+
+ [% END %]
+