Lines 231-240
if ($op eq "action") {
Link Here
|
231 |
} |
231 |
} |
232 |
} |
232 |
} |
233 |
else { |
233 |
else { |
234 |
$item->exclude_from_local_holds_priority($exclude_from_local_holds_priority)->store if defined $exclude_from_local_holds_priority; |
234 |
my $modified_holds_priority = 0; |
|
|
235 |
if (defined $exclude_from_local_holds_priority && $item->exclude_from_local_holds_priority != $exclude_from_local_holds_priority) { |
236 |
$item->exclude_from_local_holds_priority($exclude_from_local_holds_priority)->store; |
237 |
$modified_holds_priority = 1; |
238 |
} |
239 |
my $modified = 0; |
235 |
if ( $values_to_modify || $values_to_blank ) { |
240 |
if ( $values_to_modify || $values_to_blank ) { |
236 |
my $localmarcitem = Item2Marc($itemdata); |
241 |
my $localmarcitem = Item2Marc($itemdata); |
237 |
my $modified = 0; |
|
|
238 |
|
242 |
|
239 |
for ( my $i = 0 ; $i < @tags ; $i++ ) { |
243 |
for ( my $i = 0 ; $i < @tags ; $i++ ) { |
240 |
my $search = $searches[$i]; |
244 |
my $search = $searches[$i]; |
Lines 292-307
if ($op eq "action") {
Link Here
|
292 |
} |
296 |
} |
293 |
}; |
297 |
}; |
294 |
} |
298 |
} |
295 |
if ($runinbackground) { |
299 |
} |
296 |
$modified_items++ if $modified; |
300 |
if ($runinbackground) { |
297 |
$modified_fields += $modified; |
301 |
$modified_items++ if $modified || $modified_holds_priority; |
298 |
$job->set( |
302 |
$modified_fields += $modified + $modified_holds_priority; |
299 |
{ |
303 |
$job->set( |
300 |
modified_items => $modified_items, |
304 |
{ |
301 |
modified_fields => $modified_fields, |
305 |
modified_items => $modified_items, |
302 |
} |
306 |
modified_fields => $modified_fields, |
303 |
); |
307 |
} |
304 |
} |
308 |
); |
305 |
} |
309 |
} |
306 |
} |
310 |
} |
307 |
$i++; |
311 |
$i++; |
308 |
- |
|
|