Lines 174-179
my $authvalcode_items_itemlost = GetAuthValCode('items.itemlost',$fw);
Link Here
|
174 |
my $authvalcode_items_damaged = GetAuthValCode('items.damaged', $fw); |
174 |
my $authvalcode_items_damaged = GetAuthValCode('items.damaged', $fw); |
175 |
|
175 |
|
176 |
my $analytics_flag; |
176 |
my $analytics_flag; |
|
|
177 |
my $materials_flag; # set this if the items have anything in the materials field |
177 |
foreach my $item (@items) { |
178 |
foreach my $item (@items) { |
178 |
|
179 |
|
179 |
$item->{homebranch} = GetBranchName($item->{homebranch}); |
180 |
$item->{homebranch} = GetBranchName($item->{homebranch}); |
Lines 251-257
foreach my $item (@items) {
Link Here
|
251 |
$analytics_flag=1; |
252 |
$analytics_flag=1; |
252 |
$item->{countanalytics} = $countanalytics; |
253 |
$item->{countanalytics} = $countanalytics; |
253 |
} |
254 |
} |
254 |
|
255 |
if ($item->{'materials'} ne ''){ |
|
|
256 |
$materials_flag = 1; |
257 |
} |
255 |
push @itemloop, $item; |
258 |
push @itemloop, $item; |
256 |
} |
259 |
} |
257 |
|
260 |
|
Lines 276-281
$template->param(
Link Here
|
276 |
hostrecords => $hostrecords, |
279 |
hostrecords => $hostrecords, |
277 |
analytics_flag => $analytics_flag, |
280 |
analytics_flag => $analytics_flag, |
278 |
C4::Search::enabled_staff_search_views, |
281 |
C4::Search::enabled_staff_search_views, |
|
|
282 |
materials => $materials_flag, |
279 |
); |
283 |
); |
280 |
|
284 |
|
281 |
if (C4::Context->preference("AlternateHoldingsField") && scalar @items == 0) { |
285 |
if (C4::Context->preference("AlternateHoldingsField") && scalar @items == 0) { |