@@ -, +, @@ 1 - In frameworks add a new subfield to 952, "C" - make it editable in items tab and visible in intranet/editor 2 - In mappings map that subfield to items.permanent_location 3 - Set an item to have differing shelving location and permanent_location 4 - This saves correctly for an individual item 5 - Edit the item using Tools->batch item modification, updating the note field 6 - Note the permanet_location is removed 7 - Check the DB, the field is set to NULL 8 - Apply patch 9 - Repeat --- tools/batchMod.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/tools/batchMod.pl +++ a/tools/batchMod.pl @@ -121,6 +121,15 @@ if ($op eq "action") { my $values_to_modify = scalar(grep {!/^$/} @values) || scalar(grep {!/^$/} @searches); my $values_to_blank = scalar(@disabled); + # Clear the fields we are not editing, leave fields we are blanking + foreach( my $i = 0; $i < scalar @values; $i++ ){ + unless( $values[$i] || grep { $subfields[$i] } @disabled ){ + splice(@values,$i,1); + splice(@subfields,$i,1); + splice(@tags,$i,1); + } + } + my $marcitem; #initializing values for updates @@ -239,7 +248,6 @@ if ($op eq "action") { } } } - $modified += UpdateMarcWith( $marcitem, $localmarcitem ); if ($modified) { eval { --