LP#1266937: Fix missing/incorrect regex for authority in Vandelay.pm
authorSrey Seng <sseng@catalystitservices.com>
Tue, 7 Jan 2014 22:30:49 +0000 (14:30 -0800)
committerBill Erickson <berick@esilibrary.com>
Thu, 9 Jan 2014 13:56:30 +0000 (08:56 -0500)
Add in missing "~" in function import_record_list_impl when
type is authority records. Also replace "auth" with "authority"
so that the generated values match up with functions in the
database.

Signed-off-by: Srey Seng <sreyseng@gmail.com>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Vandelay.pm

index b821b11..0bb52d6 100644 (file)
@@ -930,8 +930,8 @@ sub import_record_list_impl {
     $bib_sources{$_->id} = $_->source for @$sources;
 
     if($type eq 'auth') {
-        $overlay_func =~ s/bib/auth/o;
-        $auto_overlay_func = s/bib/auth/o;
+        $overlay_func =~ s/bib/authority/o; 
+        $auto_overlay_func =~ s/bib/authority/o; 
         $retrieve_func =~ s/bib/authority/o;
         $retrieve_queue_func =~ s/bib/authority/o;
         $update_queue_func =~ s/bib/authority/o;