Remove defunct variable from 'jtitle' code user/dbwells/jtitle_small_cleanup
authorDan Wells <dbw2@calvin.edu>
Fri, 7 Sep 2012 13:50:11 +0000 (09:50 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 7 Sep 2012 13:50:11 +0000 (09:50 -0400)
With the second part of the 'jtitle' code moved elsewhere,
we no longer need this extra '$q' variable.  No big deal, but
best to sweep up while we're in here.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm

index 3f66f53..296dc1a 100644 (file)
@@ -26,8 +26,7 @@ sub _prepare_biblio_search_basics {
         next unless $query =~ /\S/;
 
         # Hack for journal title
-        my $q = $qtype;
-        if ($q eq 'jtitle') {
+        if ($qtype eq 'jtitle') {
             $qtype = 'title';
         }