@@ -, +, @@ page - From the 'Actions' menu, select 'MARC structure.' - From the 'Actions' menu, select the 'View 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. --- .../prog/en/modules/admin/marc_subfields_structure.tt | 9 +++++++-- koha-tmpl/intranet-tmpl/prog/js/marc_subfields_structure.js | 8 +++++++- 2 files changed, 14 insertions(+), 3 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt @@ -266,13 +266,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.

- +
+ - + + + [% FOREACH loo IN loop %] @@ -307,6 +310,7 @@ [% END %] +
Subfield Text ConstraintsActionsActions
[% loo.tagsubfield | html %]
@@ -331,6 +335,7 @@ [% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] [% Asset.js("js/admin-menu.js") | $raw %] [% Asset.js("js/marc_subfields_structure.js") | $raw %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/js/marc_subfields_structure.js +++ a/koha-tmpl/intranet-tmpl/prog/js/marc_subfields_structure.js @@ -1,10 +1,16 @@ +/* global dataTablesDefaults */ $(document).ready(function() { $('#subfieldtabs').tabs(); $("input[id^='hidden_']").click(setHiddenValue); $("input[id^='hidden-']").each(function() { populateHiddenCheckboxes($(this).attr('id').split('-')[1]); }); - + $("#table_marcsubfieldstructure").dataTable($.extend(true, {}, dataTablesDefaults, { + "columnDefs": [ + { 'sortable': false, 'targets': [ 'NoSort' ] } + ], + paginate: false + })); }); /* Function to enable/disable hidden values checkboxes when Flag is (de)selected */ --