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

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

index 07de45c..c36f165 100644 (file)
@@ -190,7 +190,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};