From 06fdf07f827d8f5ddf0529d1c4267578d9636711 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Mon, 5 Nov 2018 15:55:05 +0100 Subject: [PATCH] Bug 17047: [QA tool] add template filters --- .../en/includes/mana/mana-report-search-result.inc | 28 ++++++------ .../mana/mana-subscription-search-result.inc | 32 ++++++------- .../prog/en/includes/reports-toolbar.inc | 6 +-- .../prog/en/includes/serials-toolbar.inc | 52 +++++++++++----------- .../en/modules/reports/guided_reports_start.tt | 42 ++++++++--------- .../prog/en/modules/serials/serials-search.tt | 2 +- .../prog/en/modules/serials/subscription-add.tt | 2 +- .../prog/en/modules/serials/subscription-detail.tt | 2 +- 8 files changed, 83 insertions(+), 83 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc index b95600c..5ec88b8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-report-search-result.inc @@ -45,30 +45,30 @@ $(document).ready(function() { [% FOREACH report IN reports %] [% UNLESS report.cannotdisplay %] [% IF report.nbofcomment > highWarned %] - + [% ELSIF report.nbofcomment > warned %] - + [% ELSIF report.nbofcomment > lowWarned %] - + [% END %] - - [% IF ( report.report_name ) %][% report.report_name %][% END %] -
+ + [% IF ( report.report_name ) %][% report.report_name | html %][% END %] +
[% IF report.notes.length > 200 %] - [% report.notes.substr(0,200) %]Show More
[% END %] - [% report.type %] - [% IF ( report.nbofusers ) %][% report.nbofusers %][% END %] - [% report.lastimport | $KohaDates %] - [% FOREACH comment IN report.comments %][% comment.message %] ([% comment.nb %])
[% END %] + [% report.type | html %] + [% IF ( report.nbofusers ) %][% report.nbofusers | $raw %][% END %] + [% report.lastimport | $KohaDates %] + [% FOREACH comment IN report.comments %][% comment.message | html %] ([% comment.nb | $raw %])
[% END %] [% UNLESS search_only %] - + [% END %] @@ -77,5 +77,5 @@ $(document).ready(function() { [% ELSE %] -

[% msg %] statuscode: [% statuscode %]

+

[% msg | html %] statuscode: [% statuscode | $raw %]

[% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-subscription-search-result.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-subscription-search-result.inc index 34c3f42..891ce4c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-subscription-search-result.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/mana/mana-subscription-search-result.inc @@ -35,29 +35,29 @@ $(document).ready(function() { [% FOREACH subscription IN subscriptions %] [% UNLESS subscription.cannotdisplay %] [% IF subscription.nbofcomment > highWarned %] - + [% ELSIF subscription.nbofcomment > warned %] - + [% ELSIF subscription.nbofcomment > lowWarned %] - + [% END %] - - [% IF ( subscription.issn ) %][% subscription.issn %][% END %] - [% subscription.title %] - [% IF ( subscription.publishercode ) %][% subscription.publishercode %][% END %] - [% IF ( subscription.sfdescription ) %][% subscription.sfdescription %][% END %] - [% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod %][% END %] - [% IF ( subscription.nbofusers ) %][% subscription.nbofusers %][% END %] - [% subscription.lastimport | $KohaDates %] - [% FOREACH comment IN subscription.comments %][% comment.message %] ([% comment.nb %])
[% END %] + + [% IF ( subscription.issn ) %][% subscription.issn | html %][% END %] + [% subscription.title | html %] + [% IF ( subscription.publishercode ) %][% subscription.publishercode | html %][% END %] + [% IF ( subscription.sfdescription ) %][% subscription.sfdescription | html %][% END %] + [% IF ( subscription.numberingmethod ) %][% subscription.numberingmethod | html %][% END %] + [% IF ( subscription.nbofusers ) %][% subscription.nbofusers | $raw %][% END %] + [% subscription.lastimport | $KohaDates %] + [% FOREACH comment IN subscription.comments %][% comment.message | html %] ([% comment.nb | $raw %])
[% END %] [% UNLESS search_only %] - - [% FOREACH comment IN subscription.comments %] - + [% END %] @@ -70,7 +70,7 @@ $(document).ready(function() { [% ELSE %] -

Mana search fails with the code: [% statuscode %]

+

Mana search fails with the code: [% statuscode | html %]

[% END %]