Repaired copy private/public note vandelay bug
authorBill Erickson <berick@esilibrary.com>
Thu, 4 Aug 2011 20:46:54 +0000 (16:46 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Thu, 4 Aug 2011 21:46:33 +0000 (17:46 -0400)
Previously, all copy notes imported through vandelay were coming in as
public copy notes.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/AssetCommon.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm

index 11ecdfc..626a9a1 100644 (file)
@@ -523,7 +523,7 @@ sub create_copy_note {
     my $note = Fieldmapper::asset::copy_note->new;
     $note->owning_copy($copy->id);
     $note->creator($e->requestor->id);
-    $note->pub('t');
+    $note->pub($pub ? 't' : 'f');
     $note->value($value);
     $note->title($title);
     $e->create_asset_copy_note($note) or return $e->die_event;
index c2811d1..78c6f38 100644 (file)
@@ -1543,7 +1543,7 @@ sub import_record_asset_list_impl {
             }
 
             $evt = OpenILS::Application::Cat::AssetCommon->create_copy_note(
-                $e, $copy, '', $item->priv_note, 1) if $item->priv_note;
+                $e, $copy, '', $item->priv_note) if $item->priv_note;
 
             if($evt) {
                 $$report_args{evt} = $evt;