From 37de8f6c235ed5bb4bb2879c30a6265a413888b7 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 dcf71c87a3..fccdca7da2 100755 --- a/admin/library_groups.pl +++ b/admin/library_groups.pl @@ -49,6 +49,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; @@ -67,6 +68,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(); @@ -84,6 +86,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; @@ -96,6 +99,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 edfe7b5ddc..c1d28273f8 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 @@ -121,6 +121,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 %] @@ -416,7 +435,7 @@
  • - + Edit
  • -- 2.24.1 (Apple Git-126)