From cbc3a37f8ed5e80560f6f93b258335e70a20fbf7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 23 Jun 2020 11:52:20 +0000 Subject: [PATCH] Bug 25832: Add DataTables to MARC subfield structure admin page for authorities This patch adds DataTables sorting and filtering to the table of subfields shown on the Authority MARC subfield structure administration page. To test, apply the patch and go to Administration -> Authority types. - From the 'Actions' menu, select 'MARC structure.' - From the 'Actions' menu, select the 'Subfields' link for a tag with multiple subfields. - On the page showing all the subfields for the tag, confirm that the table is sorted by default by subfield and that sorting works correctly. - Confirm that the search form at the top of the table works. Signed-off-by: Katrin Signed-off-by: Jonathan Druart --- .../modules/admin/auth_subfields_structure.tt | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt index 33d767081c..4e9f929dcb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt @@ -263,13 +263,16 @@

This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.

The column 'Koha field' shows that the subfield is linked with a Koha field.

- - - - - - - +
SubfieldTextConstraints 
+ + + + + + + + + [% FOREACH loo IN loop %] [% END %] +
SubfieldTextConstraints 
@@ -309,6 +312,7 @@
@@ -342,11 +346,18 @@ [% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] [% Asset.js("js/admin-menu.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.39.5