From 87ad62e48789525c8a3d30da346d13cf3f1015a6 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 Content-Type: text/plain; charset=utf-8 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 --- .../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