From a15f32ec9b773f6e160bd96c0c1d778660d00ad5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 9 Jan 2024 13:42:54 +0100 Subject: [PATCH] Bug 35329: Move patron search to modal - remove members/search.pl git grep members/search.pl should not return any results Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../prog/en/modules/members/search.tt | 84 ------------------- members/search.pl | 50 ----------- 2 files changed, 134 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt delete mode 100755 members/search.pl diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt deleted file mode 100644 index 01adca73c5..0000000000 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt +++ /dev/null @@ -1,84 +0,0 @@ -[% USE raw %] -[% USE Asset %] -[% USE Koha %] -[% USE Branches %] -[% USE Categories %] -[% PROCESS 'i18n.inc' %] -[% SET footerjs = 1 %] -[% INCLUDE 'doc-head-open.inc' %] -[% SET libraries = Branches.all %] -[% SET categories = Categories.all.unblessed %] -[% PROCESS 'patron-search.inc' %] -[% FILTER collapse %] - [% t("Patron search") | html %] › - [% t("Patrons") | html %] › - [% t("Koha") | html %] -[% END %] -[% INCLUDE 'doc-head-close.inc' %] -[%# FIXME This is not great, we should make members/memberentrygen.tt use a modal as well and we won't need that here %] - - - - - -[% MACRO jsinclude BLOCK %] -[% INCLUDE 'select2.inc' %] - - - [% PROCESS patron_search_js table_id => 'memberresultst', categories => categories, libraries => libraries, columns => columns, filter => filter, actions => [selection_type], preview_on_name_click => 1, callback => callback %] -[% END %] - -[% SET popup_window = 1 %] -[% INCLUDE 'intranet-bottom.inc' %] diff --git a/members/search.pl b/members/search.pl deleted file mode 100755 index 05752ae13d..0000000000 --- a/members/search.pl +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/perl - -# This file is part of Koha. -# -# Koha is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# Koha is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with Koha; if not, see . - -use Modern::Perl; - -use CGI qw ( -utf8 ); -use C4::Context; -use C4::Auth qw( get_template_and_user ); -use C4::Output qw( output_html_with_http_headers ); -use Koha::Patron::Attribute::Types; - -my $input = CGI->new; - -my ( $template, $loggedinuser, $cookie, $staff_flags ) = get_template_and_user( - { template_name => "members/search.tt", - query => $input, - type => "intranet", - flagsrequired => { catalogue => '*' }, - } -); - -my $referer = $input->referer(); - -my @columns = split ',', $input->param('columns'); -my $callback = $input->param('callback'); -my $selection_type = $input->param('selection_type') || 'select'; -my $filter = $input->param('filter'); - -$template->param( - view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results", - callback => $callback, - columns => \@columns, - filter => $filter, - selection_type => $selection_type, -); -output_html_with_http_headers( $input, $cookie, $template->output ); -- 2.39.5