From 8ae97b5c36b6baaee772b8ec051ad5021794ec91 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 11 Feb 2022 14:03:36 +0100 Subject: [PATCH] Bug 30063: Make the main patron search use the REST API To test: * Length menu (PatronsPerPage) * Query description * Highlight of the current library * sticky header - Does not work (?) If the table does not show when you submit the filter form, make sure you regenerated the compiled CSS. --- .../prog/en/includes/patron-search.inc | 315 ++++++++++++--- .../prog/en/includes/patronfields.inc | 2 +- .../prog/en/modules/members/member.tt | 376 ++---------------- .../prog/en/modules/members/search.tt | 5 +- members/member.pl | 4 + 5 files changed, 294 insertions(+), 408 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc index 8efb1e2a290..d6c8acb0a4c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -1,6 +1,8 @@ [% USE Koha %] +[% USE I18N %] [% USE Branches %] [% USE raw %] +[% USE Asset %] [% USE To %] [% BLOCK patron_search_filters_simple %] @@ -18,12 +20,11 @@
  1. -
    Enter patron card number or partial name:
  2. - [% FOR column IN columns %] - [% SWITCH column %] + [% FOR filter IN filters %] + [% SWITCH filter %] [% CASE 'branch' %]
  3. @@ -47,11 +48,43 @@ [% END %]
  4. + [% CASE 'search_field' %] +
  5. + + +
  6. + [% CASE 'search_type' %] +
  7. + + +
  8. [% END %] [% END %]
+
@@ -78,11 +111,13 @@ [% END %] + +

Patrons found for:

+