From 5bb6380b3093b0ca9ddc15d7227cf483dd27f25c 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 Signed-off-by: Bob Bennhoff - CLiC --- 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 ec7064504d..9d1a937f17 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; my $ft_local_hold_group = $cgi->param('ft_local_hold_group') || 0; @@ -66,6 +67,7 @@ if ( $action eq 'add' ) { ft_search_groups_opac => $ft_search_groups_opac, ft_search_groups_staff => $ft_search_groups_staff, ft_local_hold_group => $ft_local_hold_group, + ft_limit_item_editing => $ft_limit_item_editing, branchcode => $branchcode, } )->store(); @@ -83,6 +85,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; my $ft_local_hold_group = $cgi->param('ft_local_hold_group') || 0; @@ -95,6 +98,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, ft_local_hold_group => $ft_local_hold_group, 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 d483b056b0..07123ee75d 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 @@ -129,6 +129,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 %] @@ -424,7 +443,7 @@
  • - + Edit
  • -- 2.24.3 (Apple Git-128)