Bug 19994: Used Modern::Perl in Authorities perl scripts
[koha.git] / authorities / auth_finder.pl
index e78a7d8..f017622 100755 (executable)
@@ -18,8 +18,7 @@
 # You should have received a copy of the GNU General Public License
 # along with Koha; if not, see <http://www.gnu.org/licenses>.
 
-use strict;
-use warnings;
+use Modern::Perl;
 
 use CGI qw ( -utf8 );
 use C4::Output;
@@ -105,10 +104,10 @@ if ( $op eq "do_search" ) {
       { term => "value_mainstr", val => scalar $query->param('value_mainstr') || "" };
     push @field_data,
       { term => "value_main", val => scalar $query->param('value_main') || "" };
-    push @field_data,
-      { term => "value_any", val => scalar $query->param('value_any') || "" };
     push @field_data,
       { term => "value_match", val => scalar $query->param('value_match') || "" };
+    push @field_data,
+      { term => "value_any", val => scalar $query->param('value_any') || "" };
 
     my @numbers = ();
     if ( $total > $resultsperpage ) {
@@ -150,12 +149,10 @@ if ( $op eq "do_search" ) {
         from             => $from,
         to               => $to,
         numbers          => \@numbers,
-        operator_mainstr => ( @operator > 0 && $operator[0] )
-        ? $operator[0]
-        : '',
-        operator_main  => ( @operator > 1 && $operator[1] ) ? $operator[1] : '',
-        operator_any   => ( @operator > 2 && $operator[2] ) ? $operator[2] : '',
-        operator_match => ( @operator > 3 && $operator[3] ) ? $operator[3] : '',
+        operator_mainstr => ( @operator > 0 && $operator[0] ) ? $operator[0] : '',
+        operator_main    => ( @operator > 1 && $operator[1] ) ? $operator[1] : '',
+        operator_match   => ( @operator > 2 && $operator[2] ) ? $operator[2] : '',
+        operator_any     => ( @operator > 3 && $operator[3] ) ? $operator[3] : '',
     );
 }
 else {