forward porting r14821: make sure there is a space before and after normalized date...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 7 Nov 2009 20:02:32 +0000 (20:02 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 7 Nov 2009 20:02:32 +0000 (20:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14824 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm

index c8239cb..e095391 100644 (file)
@@ -1025,7 +1025,7 @@ sub xpath_to_string {
     }
 
     $string =~ s/(\w+)\/(\w+)/$1 $2/sgo;
-    $string =~ s/(\d{4})-(\d{4})/$1 $2/sgo;
+    $string =~ s/(\d{4})-(\d{4})/ $1 $2 /sgo;
 
     return NFD($string);
 }
@@ -1232,7 +1232,7 @@ sub _marcxml_to_full_rows {
             $val =~ s/\pM+//sgo;
             $val =~ s/\pC+//sgo;
             $val =~ s/\W+$//sgo;
-            $val =~ s/(\d{4})-(\d{4})/$1 $2/sgo;
+            $val =~ s/(\d{4})-(\d{4})/ $1 $2 /sgo;
             $val =~ s/(\w+)\/(\w+)/$1 $2/sgo;
             $ns->value( lc($val) );
 
@@ -1257,7 +1257,7 @@ sub _marcxml_to_full_rows {
                 $val =~ s/\pC+//sgo;
                 $val =~ s/\W+$//sgo;
                 $val =~ s/(\w+)\/(\w+)/$1 $2/sgo;
-                $val =~ s/(\d{4})-(\d{4})/$1 $2/sgo;
+                $val =~ s/(\d{4})-(\d{4})/ $1 $2 /sgo;
                 $ns->value( lc($val) );
     
                 push @ns_list, $ns;