[open-ils-commits] r10786 -
branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 7 16:56:29 EDT 2008
Author: erickson
Date: 2008-10-07 16:56:24 -0400 (Tue, 07 Oct 2008)
New Revision: 10786
Modified:
branches/rel_1_2/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/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm
===================================================================
--- branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-07 20:55:43 UTC (rev 10785)
+++ branches/rel_1_2/Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm 2008-10-07 20:56:24 UTC (rev 10786)
@@ -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