From f97975203196a5ba30366807e194abde7f80eac5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 12 Sep 2023 18:02:43 +0000 Subject: [PATCH] Bug 34773: Improve translation of title tags: Cataloging tools This patch modifies cataloging tools templates so that title tags can be more easily translated. The patch also makes some modifications to titles, breadcrumb navigation, and page headers in order to make them more consistent with each other and with other similar pages. Note that stockrotation.pl has been modified so that rota information is available to the template in more cases for the purpose of showing that information in navigation and headings. To test, apply the patch and go to Cataloging. Test each page and each variation of the page to confirm that titles, breadcrumbs, and page headers look correct. - Export catalog data - Stage records for import - Main page - Upload file -> Stage for import - Manage staged records - Main page - Batch details - Import batch - Batch item modification and batch item deletion - Main page - Submit batch - Save - Batch record modification - Main page - Submit batch - Modify selected - Batch record deletion - Main page - Submit batch - Delete selected - MARC modification templates - Main page - Edit actions for a template - Item modifications by age - Main page - Add rules - Stock rotation - Main page - New rota - Edit rota - Manage stages for rota - New stage - Edit stage - Manage items for rota - Add items Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../automatic_item_modification_by_age.tt | 10 ++- .../prog/en/modules/tools/batchMod-del.tt | 37 ++++++++-- .../prog/en/modules/tools/batchMod-edit.tt | 36 ++++++++-- .../prog/en/modules/tools/batchMod.tt | 11 ++- .../en/modules/tools/batch_delete_records.tt | 38 +++++++++-- .../tools/batch_record_modification.tt | 21 +++++- .../prog/en/modules/tools/export.tt | 7 +- .../en/modules/tools/manage-marc-import.tt | 37 ++++++---- .../tools/marc_modification_templates.tt | 29 +++++--- .../en/modules/tools/stage-marc-import.tt | 19 ++++-- .../prog/en/modules/tools/stockrotation.tt | 67 ++++++++++++++----- tools/stockrotation.pl | 6 ++ 12 files changed, 253 insertions(+), 65 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt index 22683cef3b..1ceac4b135 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt @@ -1,8 +1,16 @@ [% USE raw %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Automatic item modifications by age › Cataloging › Koha +[% FILTER collapse %] + [% IF ( op == 'edit_form' ) %] + [% t("Rules") | html %] › + [% END %] + [% t("Automatic item modifications by age") | html %] › + [% t("Cataloging") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index 1608d37c64..8f62d3ac31 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -3,10 +3,20 @@ [% USE KohaDates %] [% USE Asset %] [% USE Branches %] -[% SET footerjs = 1 %] [% PROCESS 'i18n.inc' %] +[% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] -Batch item deletion › Cataloging › Koha +[% FILTER collapse %] + [% IF ( show ) %] + [% t("Confirm selection") | html %] › + [% END %] + [% IF op == 'enqueued' %] + [% t("Job enqueued") | html %] › + [% END %] + [% t("Batch item deletion") | html %] › + [% t("Cataloging") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %]