Bug 32061: Remove spans from page titles for adding/editing Z39.50/SRU servers

In another bug we added spans to ease translations in the PROCESS
block for server types. This PROCESS is used in several places,
but only creates a problem when used in the title.

The patch removes the spans using the remove TT filter avoiding
having to change the PROCESS and causing a string change.

To test:
* Go to administration > Z39.50/SRU servers
* Add a new Z39.50 and a SRU server or look at the form
* The page title in the browser tab will show the span
* Same for editing an existing Z39.50 or SRU server
* Apply the patch
* Verify the page titles are now correct

Hint: you can see the full page title when hovering on the tab.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Hammat Wele <hammat@inlibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5dff3886b3)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Katrin Fischer 2022-11-16 22:47:35 +00:00 committed by Martin Renvoize
parent a5c960ca95
commit 8da2f66f42
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 2 additions and 2 deletions

View File

@ -13,10 +13,10 @@
<title>
[% IF op == 'edit' %]
Modify [% PROCESS ServerType %] server [% server.servername | html %] &rsaquo; [% END %]
Modify [% PROCESS ServerType | remove("</*span>") %] server [% server.servername | html %] &rsaquo; [% END %]
[% IF op == 'add' %]
New [% PROCESS ServerType %] server &rsaquo; [% END %]
New [% PROCESS ServerType | remove("</*span>") %] server &rsaquo; [% END %]
Z39.50/SRU servers &rsaquo; Administration &rsaquo; Koha
</title>