From: erickson Date: Mon, 7 Aug 2006 20:20:36 +0000 (+0000) Subject: added sanity check for pre-cat mods creation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2fe204e8584ae15f6e670b50765cf9106a2e7bc3;p=evergreen%2Fpines.git added sanity check for pre-cat mods creation git-svn-id: svn://svn.open-ils.org/ILS/trunk@5348 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm index 7dd68c18ad..09cc0b099e 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm @@ -25,6 +25,8 @@ use XML::LibXSLT; use Data::Dumper; $Data::Dumper::Indent = 0; +use OpenILS::Const qw/:const/; + use OpenILS::Application::AppUtils; my $apputils = "OpenILS::Application::AppUtils"; my $U = $apputils; @@ -60,6 +62,7 @@ sub _records_to_mods { while( my $resp = $request->recv ) { my $content = $resp->content; + next if $content->id == OILS_PRECAT_RECORD; my $u = OpenILS::Utils::ModsParser->new(); $u->start_mods_batch( $content->marc ); my $mods = $u->finish_mods_batch();