[open-ils-commits] r10785 -
branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Search
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 7 16:55:48 EDT 2008
Author: erickson
Date: 2008-10-07 16:55:43 -0400 (Tue, 07 Oct 2008)
New Revision: 10785
Modified:
branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
Log:
only strip beginning and trailing spaces from tcn value in search
Modified: branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-07 20:01:48 UTC (rev 10784)
+++ branches/rel_1_2_3/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-07 20:55:43 UTC (rev 10785)
@@ -188,7 +188,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