Bug 33673: Change "global system preferences" to "system preferences"

The Koha Community normally refers to "global system preferences"
as just "system preferences".

This updates the staff interface and other occurences to refelect
this, including:
- Administration > Global system preferences and the description
- Patrons > [a patron] > More > Set permissions > Manage Koha
  system settings > Manage global system preferences
  (manage_sysprefs)
- The installer files and the database (permissions table)

Test plan:
1. Note that in the staff interface "Global system preferences"
   is dispalyed in two places:
   1.1 Administration: Go to Administration. There is a section
       called "Global system preferences" with a description
       and a search box.
   1.2 User permissions: View the details for a patron > More >
       Set permissions > expand 'Manage Koha system settings' >
       scroll down to 'Manage global system preferences
       (manage_sysprefs)'
2. Apply the patch.
3. Update the database.
4. Revisit the pages in step 1 - these should now show as
   "System prefereneces" or "system preferences" as appropriate.
5. Sign off!

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
I agree with this change, consistency is good. As far as I can see
this patch cathes all the occurrences of "global".
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
David Nind 2023-05-04 20:25:01 +00:00 committed by Tomas Cohen Arazi
parent 79188de0cd
commit d6b5a7f7df
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
4 changed files with 16 additions and 4 deletions

View file

@ -0,0 +1,12 @@
use Modern::Perl;
return {
bug_number => "33673",
description => "Change \"global system preferences\" to \"system preferences\"",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{ UPDATE permissions SET description = 'Manage system preferences' WHERE code = 'manage_sysprefs' });
say $out "Updated manage_sysprefs permission description.";
},
};

View file

@ -10,7 +10,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES
( 3, 'manage_accounts', 'Manage Account Debit and Credit Types' ),
( 3, 'manage_circ_rules', 'Manage circulation rules'),
( 3, 'manage_circ_rules_from_any_libraries', 'Manage circ rules for any libraries'),
( 3, 'manage_sysprefs', 'Manage global system preferences'),
( 3, 'manage_sysprefs', 'Manage system preferences'),
( 3, 'manage_libraries', 'Manage libraries and library groups'),
( 3, 'manage_itemtypes', 'Manage item types'),
( 3, 'manage_auth_values', 'Manage authorized values'),

View file

@ -146,7 +146,7 @@
<span class="permissioncode">([% name | html %])</span>
[%- CASE 'manage_sysprefs' -%]
<span class="sub_permission manage_sysprefs_subpermission">
Manage global system preferences
Manage system preferences
</span>
<span class="permissioncode">([% name | html %])</span>
[%- CASE 'manage_libraries' -%]

View file

@ -54,8 +54,8 @@
[% IF ( CAN_user_parameters_manage_sysprefs ) %]
<form action="/cgi-bin/koha/admin/preferences.pl" method="post">
<fieldset>
<h4><a href="/cgi-bin/koha/admin/preferences.pl">Global system preferences</a></h4>
<p>Manage global system preferences like MARC flavor, date format, administrator email, and templates.</p>
<h4><a href="/cgi-bin/koha/admin/preferences.pl">System preferences</a></h4>
<p>Manage system preferences like MARC flavor, date format, administrator email, and templates.</p>
<input type="hidden" name="op" value="search" />
<input type="text" name="searchfield" value="[% searchfield | html %]" />
<input type="submit" name="ok" class="btn btn-primary" value="Search" />