From 181a04539b3acd6df936feb753bc8409cf4a5ea4 Mon Sep 17 00:00:00 2001 From: dbwells Date: Fri, 4 Feb 2011 18:51:45 +0000 Subject: [PATCH] Fix ModsParser.pm bug involving invalid ISBNs. See bug #697398. git-svn-id: svn://svn.open-ils.org/ILS/trunk@19383 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/lib/OpenILS/Utils/ModsParser.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/ModsParser.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/ModsParser.pm index d77d07d579..287890c99c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/ModsParser.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/ModsParser.pm @@ -16,7 +16,7 @@ my $mods_sheet; # ---------------------------------------------------------------------------------------- # XPATH for extracting info from a MODS doc -my $isbn_xpath = "//mods:mods/mods:identifier[\@type='isbn']"; +my $isbn_xpath = "//mods:mods/mods:identifier[\@type='isbn' and not(\@invalid)]"; my $resource_xpath = "//mods:mods/mods:typeOfResource"; my $pub_xpath = "//mods:mods/mods:originInfo//mods:dateIssued[\@encoding='marc']|" . "//mods:mods/mods:originInfo//mods:dateIssued[1]"; -- 2.11.0