only strip beginning and trailing spaces from tcn value in search
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Oct 2008 20:56:24 +0000 (20:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 7 Oct 2008 20:56:24 +0000 (20:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10786 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search/Biblio.pm

index c49e23d..d9cb12d 100644 (file)
@@ -188,7 +188,7 @@ sub biblio_search_tcn {
 
        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};