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 <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 3baaf5a324
)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
5b5aa52547
commit
e5600ea8dc
1 changed files with 7 additions and 2 deletions
|
@ -146,7 +146,12 @@
|
||||||
[% SET footerjs = 1 %]
|
[% SET footerjs = 1 %]
|
||||||
[% INCLUDE 'doc-head-open.inc' %]
|
[% INCLUDE 'doc-head-open.inc' %]
|
||||||
<title>[% FILTER collapse %]
|
<title>[% 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 %]
|
[% t("Koha") | html %]
|
||||||
[% END %]</title>
|
[% END %]</title>
|
||||||
[% INCLUDE 'doc-head-close.inc' %]
|
[% INCLUDE 'doc-head-close.inc' %]
|
||||||
|
@ -168,7 +173,7 @@
|
||||||
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
|
<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% name | html %]</a>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
||||||
<span>Modify [% name | html %]</span>
|
<span>Modify vendor [% name | html %]</span>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
[% WRAPPER breadcrumb_item bc_active= 1 %]
|
||||||
|
|
Loading…
Reference in a new issue