From: dbs Date: Mon, 15 Nov 2010 22:43:58 +0000 (+0000) Subject: Trim leading and trailing whitespace from metabib.full_rec values - fixes ISSN quicks... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4293f8932f20aa8453fef0e303671c08c201f525;p=Evergreen.git Trim leading and trailing whitespace from metabib.full_rec values - fixes ISSN quicksearch (thanks for noticing this, Dan Wells!) git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_1@18753 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 cf13beec7b..98ff353a0f 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Ingest.pm @@ -1096,6 +1096,11 @@ sub _data_tag_to_full_rows { # Split date ranges and ISSNs on the hyphen $val =~ s/(\d{4})-(\d{3,4}x?)/ $1 $2 /goi; $val =~ s/(\w+)\/(\w+)/$1 $2/sgo; + + # Remove leading and trailing space + $val =~ s/^\s*//; + $val =~ s/\s*$//; + $ns->value( lc($val) ); push @$ns_list, $ns;