From 865ca8b1fca9f4c8b929050e5472dde1a55d72ff Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 6 Jun 2024 12:54:18 +0000 Subject: [PATCH] Bug 34573: (follow-up) Add better logic for add/update title and headers Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/acqui/supplier.tt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 a2fe567d4c..8545c64a82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -147,7 +147,11 @@ [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] [% IF ( enter ) %] - [% tx("Modify vendor '{vendor}'", { vendor = name }) | html %] + [% IF ( booksellerid ) %] + [% tx("Modify vendor '{vendor}'", { vendor = name }) | html %] + [% ELSE %] + [% t("Add vendor") | html %] + [% END %] [% ELSE %] [% tx("Vendor '{vendor}'", { vendor = name }) | html %] [% END %] › @@ -173,7 +177,7 @@ <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a> [% END %] [% WRAPPER breadcrumb_item bc_active= 1 %] - <span>Modify vendor '[% name | html %]'</span> + [% tx("Modify vendor '{vendor}'", { vendor = name }) | html %] [% END %] [% ELSE %] [% WRAPPER breadcrumb_item bc_active= 1 %] @@ -196,7 +200,7 @@ [% IF ( enter ) %] [% IF ( booksellerid ) %] - <h1>Modify vendor '[% name | html %]'</h1> + <h1>[% tx("Modify vendor '{vendor}'", { vendor = name }) | html %]</h1> [% ELSE %] <h1>Add vendor</h1> [% END %] -- 2.39.5