[open-ils-commits] r10787 -
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 7 16:56:40 EDT 2008
Author: erickson
Date: 2008-10-07 16:56:36 -0400 (Tue, 07 Oct 2008)
New Revision: 10787
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
only strip beginning and trailing spaces from tcn value in search
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-07 20:56:24 UTC (rev 10786)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-07 20:56:36 UTC (rev 10787)
@@ -190,7 +190,7 @@
my( $self, $client, $tcn, $include_deleted ) = @_;
- $tcn =~ s/.*?(\w+)\s*$/$1/o;
+ $tcn =~ s/^\s+|\s+$//og;
my $e = new_editor();
my $search = {tcn_value => $tcn};
More information about the open-ils-commits
mailing list