From 4c726f8559040b52c5c7b1a6658094979de61e7a 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 --- .../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 fae8f92e65..75822c4a15 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.30.2