consider prefix/suffix when searching for matching call numbers
authorJason Etheridge <jason@esilibrary.com>
Mon, 21 Mar 2011 07:57:17 +0000 (03:57 -0400)
committerJason Etheridge <jason@esilibrary.com>
Mon, 21 Mar 2011 07:57:17 +0000 (03:57 -0400)
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm

index c5e5b83..525871d 100644 (file)
@@ -919,6 +919,8 @@ sub update_volume {
         owning_lib => $vol->owning_lib,
         record     => $vol->record,
         label      => $vol->label,
+        prefix     => $vol->prefix,
+        suffix     => $vol->suffix,
         deleted    => 'f',
         id         => {'!=' => $vol->id}
     });
@@ -1041,6 +1043,8 @@ sub batch_volume_transfer {
         my $existing_vol = $e->search_asset_call_number(
             {
                 label      => $vol->label, 
+                prefix     => $vol->prefix, 
+                suffix     => $vol->suffix, 
                 record     => $rec, 
                 owning_lib => $o_lib,
                 deleted    => 'f'
index efd3da1..2ee5cba 100644 (file)
@@ -1360,6 +1360,7 @@ sub unitize_items {
 sub _find_or_create_call_number {
     my ($e, $lib, $cn_string, $record) = @_;
 
+    # FIXME: should suffix and prefix come into play here?
     my $existing = $e->search_asset_call_number({
         "owning_lib" => $lib,
         "label" => $cn_string,