From d63cb721ac75e487f8f5937e6e34ee1631934c11 Mon Sep 17 00:00:00 2001 From: David Nind Date: Thu, 25 Dec 2025 00:59:23 +0000 Subject: [PATCH] Bug 41494: Rename "Koha administration" module name to "Administration" This changes "Koha administration" to "Administration" on the staff interface home page and the administration module home page. Everywhere else in the staff interface, such as browser page titles and breadcrumbs, administration is used. This improves consistency, and is how it is commonly referred to. It also change some other occurences in the code base, such as code comments. Test plan: 1. Note the inconsistencies in how we name and refer to the administration module: 1.1 Staff interface home page: Koha administration 1.2 Administration module home page: Koha administration, but note that the breadcrumb and browser page title is "Administration". 1.3 Breadcrumbs and browser page titles for any of the administration areas are just "Administration". 1.4 More > Administration. 2. Apply the patch. 3. Note that on the staff interface home page and the administration home page are now labelled "Administration". Signed-off-by: David Nind --- Koha/Filter/MARC/ViewPolicy.pm | 3 +-- .../prog/en/modules/admin/admin-home.tt | 2 +- .../intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- misc/export_records.pl | 4 ++-- t/db_dependent/selenium/administration_tasks.t | 14 +++++++------- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/Koha/Filter/MARC/ViewPolicy.pm b/Koha/Filter/MARC/ViewPolicy.pm index 5e750967cf..4c3517f6e6 100644 --- a/Koha/Filter/MARC/ViewPolicy.pm +++ b/Koha/Filter/MARC/ViewPolicy.pm @@ -33,8 +33,7 @@ my $processor = Koha::RecordProcessor->new( { filters => ('ViewPolicy') } ); Filter to remove fields based on the 'Advance constraints' settings found when editing a particular subfield definition of -a MARC bibliographic framework found under the Koha administration -menu. +a MARC bibliographic framework found under the administration menu. =cut diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt index f1a6ee0256..d81754198d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt @@ -25,7 +25,7 @@ [% END #/ WRAPPER sub-header.inc %] [% WRAPPER 'main-container.inc' %] -

Koha administration

+

Administration

[% IF ( CAN_user_parameters_manage_mana ) %] [% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index fe5e0597aa..c50befa87f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -175,7 +175,7 @@ [% IF ( CAN_user_parameters || CAN_user_plugins_admin ) %]
  • - Koha administration + Administration
  • [% END %] diff --git a/misc/export_records.pl b/misc/export_records.pl index fefa166791..515776498e 100755 --- a/misc/export_records.pl +++ b/misc/export_records.pl @@ -554,8 +554,8 @@ Print a brief help message. --destination_server_id=ID Provide this option, along with the destination server ID, to upload the resultant mrc file to the selected file transport server. - You can create file transport servers via the Koha Staff client, under - Koha Administration. + You can create file transport servers using the Koha staff interface, + under Administration. =item B<--delete_local_after_run> diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t index 71459258fe..7beef723a1 100755 --- a/t/db_dependent/selenium/administration_tasks.t +++ b/t/db_dependent/selenium/administration_tasks.t @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with Koha; if not, see . -#This selenium test tests the Koha Administration module functionality including adding circ rules, item types and modifying frameworks +#This selenium test tests the Administration module functionality including adding circ rules, item types and modifying frameworks #Note: If you are testing this on kohadevbox with selenium installed in kohadevbox then you need to set the staffClientBaseURL to localhost:8080 and the OPACBaseURL to http://localhost:80 @@ -55,7 +55,7 @@ SKIP: { $s->auth; { # Item types # Navigate to the Administration area and create an item type - $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration + $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration $s->click( { href => '/admin/itemtypes.pl', main_class => 'main container-fluid' } ); # Item Types $s->click( { href => '/admin/itemtypes.pl?op=add_form', main_class => 'main container-fluid' } ) ; # New item type @@ -72,7 +72,7 @@ SKIP: { { # Circulation/fine rules my $itype = $builder->build_object( { class => "Koha::ItemTypes" } ); $driver->get($mainpage); - $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration + $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration $s->click( { href => '/admin/smart-rules.pl', main_class => 'main container-fluid' } ) ; # Circulation and fine rules my $elt = $driver->find_element( @@ -96,7 +96,7 @@ SKIP: { { # Biblio frameworks $driver->get($mainpage); - $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration + $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration $s->click( { href => '/admin/biblio_framework.pl', main_class => 'main container-fluid' } ) ; # MARC bibliographic framework $s->click( { href => '/admin/biblio_framework.pl?op=add_form', main_class => 'main container-fluid' } ) @@ -120,7 +120,7 @@ SKIP: { { #Libraries $driver->get($mainpage); - $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration + $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration $s->click( { href => '/admin/branches.pl', main_class => 'main container-fluid' } ); # Libraries and groups $s->click( { href => '/admin/branches.pl?op=add_form', main_class => 'main container-fluid' } ); # New library $s->fill_form( { branchcode => $branchcode, branchname => 'my library' } ); @@ -148,7 +148,7 @@ SKIP: { { #Authorized values $driver->get($mainpage); - $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); #Koha administration + $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration $s->click( { href => '/admin/authorised_values.pl', main_class => 'main container-fluid' } ); #Authorized values @@ -194,7 +194,7 @@ SKIP: { { # Patron categories $driver->get($mainpage); - $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration + $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration $s->click( { href => '/admin/categories.pl', main_class => 'main container-fluid' } ); # Patron categories $s->click( { href => '/admin/categories.pl?op=add_form', main_class => 'main container-fluid' } ) ; # New patron category -- 2.39.5