@@ -, +, @@ --- .../prog/en/includes/patron-search-header.inc | 2 +- .../prog/en/includes/patron-search.inc | 311 ++++++++++++--- .../prog/en/includes/patronfields.inc | 2 +- .../prog/en/modules/members/member.tt | 376 ++---------------- .../prog/en/modules/members/search.tt | 4 +- members/member.pl | 4 + members/members-home.pl | 4 + 7 files changed, 296 insertions(+), 407 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-header.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-header.inc @@ -24,7 +24,7 @@

- [% FOR column IN columns %] - [% SWITCH column %] + [% FOR f IN filters %] + [% SWITCH f %] [% CASE 'branch' %]

  • @@ -47,11 +48,43 @@ [% END %]
  • + [% CASE 'search_field' %] +
  • + + +
  • + [% CASE 'search_type' %] +
  • + + +
  • [% END %] [% END %]
    +
    @@ -78,12 +111,14 @@ [% END %] + +

    Patrons found for:

    + @@ -130,76 +110,7 @@
    @@ -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 @@