From 465fc4c8baea98dba18ade40bd002e47783313e3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 28 Nov 2023 15:03:07 +0000 Subject: [PATCH] Bug 35417: Update breadcrumbs and page titles for vendor issues This patch updates the vendor issues template so that title and breadcrumbs follow the same pattern on other updated templates: Translatable strings in the title and breadcrumbs using the template WRAPPER. To test, apply the patch and go to Acquisitions. - Search for a vendor and view the details. - Click the "Isssues" link in the sidebar. - Check that the page title and breadcrumbs are correct in each variation of the page: - The main page - New vendor issue - Modify vendor issue - Issue deletion confirmation Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../prog/en/modules/acqui/vendor_issues.tt | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt index 0a9de738a7..377b9fcb5a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/vendor_issues.tt @@ -2,20 +2,26 @@ [% USE Asset %] [% USE AuthorisedValues %] [% USE KohaDates %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] - +<title>[% FILTER collapse %] [% IF op =='add_form' %] [% IF issue.issue_id %] - Modify vendor issue + [% tx("Modify vendor issue {issue_number}", { issue_number = issue.issue_id }) | html %] [% ELSE %] - New vendor issue - [% END %] › [% ELSE %] + [% t("New vendor issue") | html %] + [% END %] › + [% ELSE %] [% IF op == 'delete_confirm' %] - Confirm deletion of vendor issue › [% END %] + [% t("Confirm deletion of vendor issue") | html %] › + [% END %] [% END %] - Vendor issue › Acquisition › Koha - + [% t("Vendor issues") | html %] › + [% vendor.name | html %] › + [% t("Acquisition") | html %] › + [% t("Koha") | html %] +[% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -25,38 +31,32 @@ [% END %] [% WRAPPER 'sub-header.inc' %] - -[% END %] + [% END #/ WRAPPER breadcrumbs %] +[% END #/ WRAPPER sub-header.inc %]
@@ -86,7 +86,7 @@ [% IF op == 'add_form' %] [% IF issue %] -

Modify a vendor issue

+

[% tx("Modify vendor issue {issue_number}", { issue_number = issue.issue_id }) | html %]

[% ELSE %]

New vendor issue

[% END %] @@ -131,7 +131,7 @@ [% IF op == 'delete_confirm' %]
-

Delete issue #[% issue.issue_id | html %]?

+

Delete issue [% issue.issue_id | html %]?

@@ -145,7 +145,7 @@ [% END %] [% IF op == 'show' %] -

Vendor issue #[% issue.issue_id | html %]

+

Vendor issue [% issue.issue_id | html %]

    -- 2.39.5