-} elsif ($itemlost ne $item_data_hashref->{'itemlost'}) {
- $item_changes->{'itemlost'} = $itemlost;
-} elsif ($withdrawn ne $item_data_hashref->{'withdrawn'}) {
- $item_changes->{'withdrawn'} = $withdrawn;
-} elsif ($damaged ne $item_data_hashref->{'damaged'}) {
- $item_changes->{'damaged'} = $damaged;
+} elsif ( $op eq "set_lost" && $itemlost ne $item_data_hashref->{'itemlost'}) {
+ $item->itemlost($itemlost);
+} elsif ( $op eq "set_withdrawn" && $withdrawn ne $item_data_hashref->{'withdrawn'}) {
+ $item->withdrawn($withdrawn);
+} elsif ( $op eq "set_exclude_priority" && $exclude_from_local_holds_priority ne $item_data_hashref->{'exclude_from_local_holds_priority'}) {
+ $item->exclude_from_local_holds_priority($exclude_from_local_holds_priority);
+ $messages = "updated_exclude_from_local_holds_priority=$exclude_from_local_holds_priority&";
+} elsif ( $op eq "set_damaged" && $damaged ne $item_data_hashref->{'damaged'}) {
+ $item->damaged($damaged);