[open-ils-commits] r11196 - branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 14 15:51:11 EST 2008
Author: miker
Date: 2008-11-14 15:51:07 -0500 (Fri, 14 Nov 2008)
New Revision: 11196
Modified:
branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm
Log:
replace / with " " for indexing
Modified: branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm
===================================================================
--- branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm 2008-11-14 20:50:43 UTC (rev 11195)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm 2008-11-14 20:51:07 UTC (rev 11196)
@@ -696,6 +696,7 @@
}
}
+ $string =~ s/(\w+)\/(\w+)/$1 $2/sgo;
$string =~ s/(\d{4})-(\d{4})/$1 $2/sgo;
return NFD($string);
@@ -903,6 +904,7 @@
$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) );
More information about the open-ils-commits
mailing list