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