From 45d5224273d210a3d315242ac948c112398f8ed5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 28 Mar 2019 07:12:37 -0400 Subject: [PATCH] Bug 20256: Update groups editor --- admin/library_groups.pl | 4 +++ .../prog/en/modules/admin/library_groups.tt | 25 ++++++++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/admin/library_groups.pl b/admin/library_groups.pl index 4c5ce25b4e..a235e95b10 100755 --- a/admin/library_groups.pl +++ b/admin/library_groups.pl @@ -48,6 +48,7 @@ if ( $action eq 'add' ) { my $description = $cgi->param('description') || undef; my $branchcode = $cgi->param('branchcode') || undef; my $ft_hide_patron_info = $cgi->param('ft_hide_patron_info') || 0; + my $ft_limit_item_editing = $cgi->param('ft_limit_item_editing') || 0; my $ft_search_groups_opac = $cgi->param('ft_search_groups_opac') || 0; my $ft_search_groups_staff = $cgi->param('ft_search_groups_staff') || 0; @@ -61,6 +62,7 @@ if ( $action eq 'add' ) { title => $title, description => $description, ft_hide_patron_info => $ft_hide_patron_info, + ft_limit_item_editing => $ft_limit_item_editing, ft_search_groups_opac => $ft_search_groups_opac, ft_search_groups_staff => $ft_search_groups_staff, branchcode => $branchcode, @@ -75,6 +77,7 @@ elsif ( $action eq 'edit' ) { my $title = $cgi->param('title') || undef; my $description = $cgi->param('description') || undef; my $ft_hide_patron_info = $cgi->param('ft_hide_patron_info') || 0; + my $ft_limit_item_editing = $cgi->param('ft_limit_item_editing') || 0; my $ft_search_groups_opac = $cgi->param('ft_search_groups_opac') || 0; my $ft_search_groups_staff = $cgi->param('ft_search_groups_staff') || 0; @@ -86,6 +89,7 @@ elsif ( $action eq 'edit' ) { title => $title, description => $description, ft_hide_patron_info => $ft_hide_patron_info, + ft_limit_item_editing => $ft_limit_item_editing, ft_search_groups_opac => $ft_search_groups_opac, ft_search_groups_staff => $ft_search_groups_staff, } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt index d8981cf1fe..3c16e2ccb3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt @@ -109,6 +109,12 @@ Limit patron data access by group

+

+ +

+

+ +

  • Hide patron's info for librarians outside of this group.
  • [% END %] + [% IF group.ft_limit_item_editing %] +
  • Limit item editing for librarians outside of this group.
  • + [% END %] [% IF group.ft_search_groups_opac %]
  • Use for OPAC search groups
  • [% END %] @@ -384,7 +403,7 @@
  • - + Edit
  • -- 2.21.0 (Apple Git-122.2)