From: miker Date: Fri, 14 Nov 2008 20:50:43 +0000 (+0000) Subject: replace / with " " for indexing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d3ad15bd7393671100941d0a2985ef5d4b5d480c;p=Evergreen.git replace / with " " for indexing git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4@11195 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm b/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm index 0a3cbd4372..f9ee0ac30d 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm @@ -703,6 +703,7 @@ sub xpath_to_string { } } + $string =~ s/(\w+)\/(\w+)/$1 $2/sgo; $string =~ s/(\d{4})-(\d{4})/$1 $2/sgo; return NFD($string); @@ -910,6 +911,7 @@ sub _marcxml_to_full_rows { $val =~ s/\pM+//sgo; $val =~ s/\pC+//sgo; $val =~ s/\W+$//sgo; + $val =~ s/(\w+)\/(\w+)/$1 $2/sgo; $val =~ s/(\d{4})-(\d{4})/$1 $2/sgo; $ns->value( lc($val) );