Replace erroneous calls to $e->retrieve_authority_record($rec_id).
authorJason Stephenson <jstephenson@mvlc.org>
Fri, 8 Nov 2013 20:02:53 +0000 (15:02 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 20 Nov 2013 15:50:39 +0000 (10:50 -0500)
On lines 153 and 175 of OpenILS::Application::Cat::Authority calls
like the above should be $e->retrieve_authority_record_entry($rec_id).
This branch replaces the two misspelled calls with the proper ones.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Conflicts [just whitespace]:
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/Authority.pm

Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/Authority.pm

index 696a446..cc1141f 100644 (file)
@@ -148,9 +148,9 @@ __PACKAGE__->register_method(
 );
 sub retrieve_authority_record {
     my($self, $conn, $auth, $rec_id, $options) = @_;
-       my $e = new_editor(authtoken=>$auth);
-       return $e->die_event unless $e->checkauth;
-    my $rec = $e->retrieve_authority_record($rec_id) or return $e->event;
+    my $e = new_editor(authtoken=>$auth);
+    return $e->die_event unless $e->checkauth;
+    my $rec = $e->retrieve_authority_record_entry($rec_id) or return $e->event;
     $rec->clear_marc if $$options{clear_marc};
     return $rec;
 }
@@ -172,7 +172,7 @@ sub batch_retrieve_authority_record {
        my $e = new_editor(authtoken=>$auth);
        return $e->die_event unless $e->checkauth;
     for my $rec_id (@$rec_id_list) {
-        my $rec = $e->retrieve_authority_record($rec_id) or return $e->event;
+        my $rec = $e->retrieve_authority_record_entry($rec_id) or return $e->event;
         $rec->clear_marc if $$options{clear_marc};
         $conn->respond($rec);
     }