From 65e95e2589c0971b230de9cc349e696b67c4e18c 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 Signed-off-by: Kyle M Hall --- .../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 +++++++++---------- .../modules/reports/guided_reports_start.tt | 42 +++++++-------- .../prog/en/modules/serials/serials-search.tt | 2 +- .../en/modules/serials/subscription-add.tt | 2 +- .../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 b95600cb7b..5ec88b8025 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 34c3f4213a..891ce4cbc6 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 %]