From: miker Date: Fri, 10 Dec 2010 17:22:47 +0000 (+0000) Subject: Patch from James Fournie to address https://bugs.launchpad.net/evergreen/+bug/622908... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=337e7932ca992ab8e298a8fdf0070ba1016ba766;p=evergreen%2Fjoelewis.git Patch from James Fournie to address https://bugs.launchpad.net/evergreen/+bug/622908 wherein we learn that related item physical description might be used as the main PD of the main item, if the main item lacks such a field in the MARC git-svn-id: svn://svn.open-ils.org/ILS/trunk@18969 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm b/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm index 1e97458708..d77d07d579 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/ModsParser.pm @@ -26,9 +26,9 @@ my $edition_xpath = "//mods:mods/mods:originInfo//mods:edition[1]"; my $abstract_xpath = "//mods:mods/mods:abstract"; my $related_xpath = ""; my $online_loc_xpath = "//mods:location/mods:url"; -my $physical_desc = "(//mods:physicalDescription/mods:form|//mods:physicalDescription/mods:extent|". - "//mods:physicalDescription/mods:reformattingQuality|//mods:physicalDescription/mods:internetMediaType|". - "//mods:physicalDescription/mods:digitalOrigin)"; +my $physical_desc = "(//mods:mods/mods:physicalDescription/mods:form|//mods:mods/mods:physicalDescription/mods:extent|". + "//mods:mods/mods:physicalDescription/mods:reformattingQuality|//mods:mods/mods:physicalDescription/mods:internetMediaType|". + "//mods:mods/mods:physicalDescription/mods:digitalOrigin)"; my $toc_xpath = "//mods:tableOfContents"; my $xpathset = {