From 00c25b74b0d58d5ffa93019c8fb3e6b3d1643d25 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 12 May 2021 18:35:27 +0000 Subject: [PATCH] Bug 28347: Add DataTables, additional information to patron attribute types management This patch enhances the display of patron attribute information on the attribute management page. To test, apply the patch and go to Administration -> Patron attribute types. - If necessary, add multiple patron attributes so that there is data to display. Include: - Some which are mandatory - Some which are linked to an authorized value category - Some which share a class. - The tables showing your attributes should each have DataTables sorting and controls (except for column configuration, which isn't added by this patch). - Confirm that DataTable controls work correctly for each table. - The table should include columns showing authorized value category and whether the attribute is mandatory. - If you are logged in as a user with permission to manage authorized values, the data in the authorized value category column should be linked to that category on the authorized values page. Signed-off-by: David Nind --- .../prog/en/modules/admin/patron-attr-types.tt | 35 ++++++++++++++++++---- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt index 22c65fc19c..3696ad6162 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt @@ -292,13 +292,15 @@ Patron attribute types › Administration › Koha [% IF attribute.class %]

[% attribute.lib | html %]

[% END %] - +
- - + + + + @@ -315,15 +317,28 @@ Patron attribute types › Administration › Koha [% END %] [% IF libraries.count > 1 %] - [% libraries.count | html %] branches limitations + [% libraries.count | html %] library limitations [% ELSE %] - [% libraries.count | html %] branch limitation + [% libraries.count | html %] library limitation [% END %] [% ELSE %] No limitation [% END %] + + [% ELSE %] + [% item.authorised_value_category | html %] + [% END %] +
Code DescriptionBranches limitationActionsLibrary limitationAuthorized value categoryMandatoryActions
+ [% IF ( CAN_user_parameters_manage_auth_values ) %] + [% item.authorised_value_category | html %] + [% IF ( item.mandatory ) -%] + Yes + [% ELSE -%] + No + [% END %] + Edit Delete @@ -353,6 +368,8 @@ Patron attribute types › Administration › Koha [% MACRO jsinclude BLOCK %] [% Asset.js("js/admin-menu.js") | $raw %] + [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'columns_settings.inc' %] [% END %] -- 2.11.0