Browse Source

Bug 30629: fix <span> in title of some pages

== Test plan ==
1. Go to http://localhost:8081/cgi-bin/koha/patroncards/manage.pl?card_element=layout
2. See that the page title in your browser window title is wrong because it contains <span>
3. Go to http://localhost:8081/cgi-bin/koha/labels/label-manage.pl?label_element=batch
4. See that the page title in your browser window title is wrong because it contains <span>
5. Go to http://localhost:8081/cgi-bin/koha/admin/aqbudgetperiods.pl
6. Administration => Budgets => Click on a budget => planning => plan by months
7. See that the page title in your browser window title is wrong because it contains <span>
8. Refresh the pages and see that the titles are correct
9. Sign off :)

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
22.11.x
Victor Grousset 2 years ago
committed by Tomas Cohen Arazi
parent
commit
44d6528b56
Signed by: tomascohen GPG Key ID: 0A272EA1B2F3C15F
  1. 7
      koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc
  2. 17
      koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt
  3. 19
      koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt

7
koha-tmpl/intranet-tmpl/prog/en/includes/budget_planning.inc

@ -1,7 +1,8 @@
[% PROCESS 'i18n.inc' %]
[%- BLOCK planning -%]
[%- SWITCH plan -%]
[%- CASE 'MONTHS' -%]<span>by months</span>
[%- CASE 'BRANCHES' -%]<span>by libraries</span>
[%- CASE 'ITEMTYPES' -%]<span>by item types</span>
[%- CASE 'MONTHS' -%][% t('by months') | html %]
[%- CASE 'BRANCHES' -%][% t('by libraries') | html %]
[%- CASE 'ITEMTYPES' -%][% t('by item types') | html %]
[%- END -%]
[%- END -%]

17
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-manage.tt

@ -1,16 +1,17 @@
[% USE raw %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% BLOCK translate_label_element %]
[%- SWITCH element -%]
[%- CASE 'layout' -%]<span>layout</span>
[%- CASE 'Layouts' -%]<span>Layouts</span>
[%- CASE 'template' -%]<span>template</span>
[%- CASE 'Templates' -%]<span>Templates</span>
[%- CASE 'profile' -%]<span>profile</span>
[%- CASE 'Profiles' -%]<span>Profiles</span>
[%- CASE 'batch' -%]<span>batch</span>
[%- CASE 'Batches' -%]<span>Batches</span>
[%- CASE 'layout' -%][% t('layout') | html %]
[%- CASE 'Layouts' -%][% t('Layouts') | html %]
[%- CASE 'template' -%][% t('template') | html %]
[%- CASE 'Templates' -%][% t('Templates') | html %]
[%- CASE 'profile' -%][% t('profile') | html %]
[%- CASE 'Profiles' -%][% t('Profiles') | html %]
[%- CASE 'batch' -%][% t('batch') | html %]
[%- CASE 'Batches' -%][% t('Batches') | html %]
[%- END -%]
[% END %]
[% INCLUDE 'doc-head-open.inc' %]

19
koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt

@ -1,16 +1,17 @@
[% USE CGI %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% BLOCK translate_card_element %]
[%- SWITCH element -%]
[%- CASE 'layout' -%]<span>layout</span>
[%- CASE 'Layouts' -%]<span>Layouts</span>
[%- CASE 'template' -%]<span>template</span>
[%- CASE 'Templates' -%]<span>Templates</span>
[%- CASE 'profile' -%]<span>profile</span>
[%- CASE 'Profiles' -%]<span>Profiles</span>
[%- CASE 'batch' -%]<span>batch</span>
[%- CASE 'Batches' -%]<span>Batches</span>
[%- CASE 'Actions' -%]<span>Actions</span>
[%- CASE 'layout' -%][% t('layout') | html %]
[%- CASE 'Layouts' -%][% t('Layouts') | html %]
[%- CASE 'template' -%][% t('template') | html %]
[%- CASE 'Templates' -%][% t('Templates') | html %]
[%- CASE 'profile' -%][% t('profile') | html %]
[%- CASE 'Profiles' -%][% t('Profiles') | html %]
[%- CASE 'batch' -%][% t('batch') | html %]
[%- CASE 'Batches' -%][% t('Batches') | html %]
[%- CASE 'Actions' -%][% t('Actions') | html %]
[%- END -%]
[% END %]
[% BLOCK translate_card_elements %]

Loading…
Cancel
Save