From 3baaf5a3241bc78fb46c8b4844dcd21dd6516eef Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 21 Nov 2023 13:48:42 +0000 Subject: [PATCH] Bug 34573: Fix inconsistencies in acquisitions modify vendor title tag This patch updates the vendor details template so that the title tag correctly reflects whether the user is viewing the vendor or modifying it. To test, apply the patch and go to Acquisitions. - Locate a vendor and view the details (supplier.pl?booksellerid=X) - The title should read "Vendor X > Acquisitions > Koha" - Edit the vendor. - The title should read "Modify vendor X > Acquisitions > Koha" Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/acqui/supplier.tt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index c254561de9..23dda479ff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -146,7 +146,12 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] - [% tx("Vendor {vendor}", { vendor = name }) | html %] › + [% IF ( enter ) %] + [% tx("Modify vendor {vendor}", { vendor = name }) | html %] + [% ELSE %] + [% tx("Vendor {vendor}", { vendor = name }) | html %] + [% END %] › + [% t("Acquisitions") | html %] › [% t("Koha") | html %] [% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -168,7 +173,7 @@ [% name | html %] [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] - Modify [% name | html %] + Modify vendor [% name | html %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] -- 2.39.5