Lines 171-176
$dat->{'hiddencount'} = scalar @all_items + @hostitems - scalar @items;
Link Here
|
171 |
|
171 |
|
172 |
my $shelflocations = GetKohaAuthorisedValues('items.location', $fw); |
172 |
my $shelflocations = GetKohaAuthorisedValues('items.location', $fw); |
173 |
my $collections = GetKohaAuthorisedValues('items.ccode' , $fw); |
173 |
my $collections = GetKohaAuthorisedValues('items.ccode' , $fw); |
|
|
174 |
my $copynumbers = GetKohaAuthorisedValues('items.copynumber', $fw); |
174 |
my (@itemloop, %itemfields); |
175 |
my (@itemloop, %itemfields); |
175 |
my $norequests = 1; |
176 |
my $norequests = 1; |
176 |
my $authvalcode_items_itemlost = GetAuthValCode('items.itemlost',$fw); |
177 |
my $authvalcode_items_itemlost = GetAuthValCode('items.itemlost',$fw); |
Lines 201-210
foreach my $item (@items) {
Link Here
|
201 |
$item->{itemdamagedloop} = GetAuthorisedValues($authvalcode_items_damaged, $item->{damaged}) if $authvalcode_items_damaged; |
202 |
$item->{itemdamagedloop} = GetAuthorisedValues($authvalcode_items_damaged, $item->{damaged}) if $authvalcode_items_damaged; |
202 |
} |
203 |
} |
203 |
#get shelf location and collection code description if they are authorised value. |
204 |
#get shelf location and collection code description if they are authorised value. |
|
|
205 |
# same thing for copy number |
204 |
my $shelfcode = $item->{'location'}; |
206 |
my $shelfcode = $item->{'location'}; |
205 |
$item->{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) ); |
207 |
$item->{'location'} = $shelflocations->{$shelfcode} if ( defined( $shelfcode ) && defined($shelflocations) && exists( $shelflocations->{$shelfcode} ) ); |
206 |
my $ccode = $item->{'ccode'}; |
208 |
my $ccode = $item->{'ccode'}; |
207 |
$item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) ); |
209 |
$item->{'ccode'} = $collections->{$ccode} if ( defined( $ccode ) && defined($collections) && exists( $collections->{$ccode} ) ); |
|
|
210 |
my $copynumber = $item->{'copynumber'}; |
211 |
$item->{'copynumber'} = $copynumbers->{$copynumber} if ( defined($copynumber) && defined($copynumbers) && exists( $copynumbers->{$copynumber} ) ); |
208 |
foreach (qw(ccode enumchron copynumber itemnotes uri)) { |
212 |
foreach (qw(ccode enumchron copynumber itemnotes uri)) { |
209 |
$itemfields{$_} = 1 if ( $item->{$_} ); |
213 |
$itemfields{$_} = 1 if ( $item->{$_} ); |
210 |
} |
214 |
} |