[% IF CAN_user_tools_manage_patron_lists || CAN_user_borrowers_edit_borrowers %]
-
@@ -234,16 +145,8 @@
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% INCLUDE 'str/members-menu.inc' %]
- [% Asset.js("lib/hc-sticky.js") | $raw %]
[% Asset.js("js/members-menu.js") | $raw %]
+
+ [% IF circsearch == 1 %]
+ [% SET redirect_url = '/cgi-bin/koha/circ/circulation.pl' %]
+ [% ELSE %]
+ [% SET redirect_url = '/cgi-bin/koha/members/moremember.pl' %]
+ [% END %]
+ [% PROCESS patron_search_js
+ table_id => 'memberresultst',
+ categories => categories,
+ libraries => libraries,
+ extended_attribute_types => attribute_type_codes,
+ columns => columns,
+ actions => ['edit', 'checkout'],
+ redirect_if_one_result => 1,
+ redirect_url => redirect_url,
+ sticky_header => "searchheader",
+ sticky_to => "patron_search_results",
+ %]
+
+
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt
@@ -17,7 +17,7 @@
- [% PROCESS patron_search_filters categories => categories, libraries => libraries, columns => columns, search_filter => searchmember %]
+ [% PROCESS patron_search_filters categories => categories, libraries => libraries, filters => ['branch', 'category'], search_filter => searchmember %]
[% PROCESS patron_search_table table_id => 'memberresultst' columns => columns %]
@@ -35,7 +35,8 @@
extended_attribute_types => attribute_type_codes,
columns => columns,
filter => filter,
- selection_type => selection_type,
+ actions => [selection_type],
+ preview_on_name_click => 1,
callback => callback
%]
[% END %]
--- a/members/member.pl
+++ a/members/member.pl
@@ -29,6 +29,7 @@ use C4::Output qw( output_html_with_http_headers );
use CGI qw( -utf8 );
use Koha::List::Patron qw( GetPatronLists );
use Koha::Patrons;
+use Koha::Patron::Attribute::Types;
my $input = CGI->new;
@@ -79,6 +80,9 @@ $template->param(
PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20,
view => $view,
circsearch => $circsearch,
+ attribute_type_codes => ( C4::Context->preference('ExtendedPatronAttributes')
+ ? [ Koha::Patron::Attribute::Types->search( { staff_searchable => 1 } )->get_column('code') ]
+ : [] ),
);
output_html_with_http_headers $input, $cookie, $template->output;
--