# 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;
use Koha::Authority::Types;
-my $query = new CGI;
+my $query = CGI->new;
my $op = $query->param('op') || '';
my $authtypecode = $query->param('authtypecode') || '';
my $index = $query->param('index') || '';
: 'authorities/auth_finder.tt',
query => $query,
type => 'intranet',
- authnotrequired => 0,
flagsrequired => { catalogue => 1 },
}
);
\@marclist, \@and_or, \@excluding, \@operator,
\@value, $authtypecode, $orderby
);
+ $template->param( search_query => $search_query ) if C4::Context->preference('DumpSearchQueryTemplate');
my $offset = $startfrom * $resultsperpage;
my ( $results, $total ) =
$searcher->search_auth_compat( $search_query, $offset,