[open-ils-commits] [GIT] Evergreen ILS branch master updated. c48288ded7b86b76ccd8f85911f5a1a979d5c6d8

Evergreen Git git at git.evergreen-ils.org
Tue May 24 13:28:05 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  c48288ded7b86b76ccd8f85911f5a1a979d5c6d8 (commit)
       via  fceb8d6f3c5dc57d6ce9618e0d4ee8e354f8889c (commit)
      from  8ab630642cf7331a3cbb3d216f376ff837e7ed52 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c48288ded7b86b76ccd8f85911f5a1a979d5c6d8
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Tue May 24 13:27:05 2016 -0400

    LP#1580676: fix error message
    
    This patch fixes a typo in the error message presented
    if the queued record could not be cleaned up for some
    reason; it also reports the correct type of the record.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/support-scripts/marc_stream_importer.pl b/Open-ILS/src/support-scripts/marc_stream_importer.pl
index 29d5e85..670e8c7 100755
--- a/Open-ILS/src/support-scripts/marc_stream_importer.pl
+++ b/Open-ILS/src/support-scripts/marc_stream_importer.pl
@@ -380,7 +380,7 @@ sub import_queued_records {
         };
 
         if ($@) {
-            $logger->error("Error deleteing queued bib record $_: $@");
+            $logger->error("Error deleting queued $cur_rec_type record $_: $@");
             last;
         }
     }

commit fceb8d6f3c5dc57d6ce9618e0d4ee8e354f8889c
Author: Bill Erickson <berickxx at gmail.com>
Date:   Wed May 11 12:19:12 2016 -0400

    LP#1580676 MARC stream authority cleanup repair
    
    Delete the successfully imported authority record from the vandelay
    authority queue instead of the bib record that happens to have the same
    ID as the imported authority record.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/support-scripts/marc_stream_importer.pl b/Open-ILS/src/support-scripts/marc_stream_importer.pl
index f51e0ff..29d5e85 100755
--- a/Open-ILS/src/support-scripts/marc_stream_importer.pl
+++ b/Open-ILS/src/support-scripts/marc_stream_importer.pl
@@ -371,10 +371,12 @@ sub import_queued_records {
     $pcrud->request('open-ils.pcrud.transaction.begin', $authtoken)->recv;
     my $err;
 
+    my $api = 'open-ils.pcrud.delete.';
+    $api .= $cur_rec_type eq 'auth' ? 'vqar' : 'vqbr';
+
     foreach (@cleanup_recs) {
         eval {
-            $pcrud->request(
-                'open-ils.pcrud.delete.vqbr', $authtoken, $_)->recv;
+            $pcrud->request($api, $authtoken, $_)->recv;
         };
 
         if ($@) {

-----------------------------------------------------------------------

Summary of changes:
 .../src/support-scripts/marc_stream_importer.pl    |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list