From f77fd6c993896f9ee3b5d643f68877ed11a8a813 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 24 Jun 2021 11:50:05 +0000 Subject: [PATCH] Bug 20472: (QA follow-up) Add few TT filters Signed-off-by: Marcel de Rooy No more warns from qa tools. Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/circ/article-requests.tt | 6 +++--- .../intranet-tmpl/prog/en/modules/circ/request-article.tt | 2 +- .../opac-tmpl/bootstrap/en/modules/opac-request-article.tt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt index e97eb8708b..61e94ca026 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/article-requests.tt @@ -25,7 +25,7 @@ [% IF id_arg && format=='SCAN' %] - + Edit URLs @@ -219,7 +219,7 @@ [% ar.item.enumchron | html %] [% ar.item.barcode | html %] [% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %] - [% IF ar.format == 'SCAN' %][% IF ar.urls %]Yes[% ELSE %]No[% END%][% END %] + [% IF ar.format == 'SCAN' %][% IF ar.urls %]Yes[% ELSE %]No[% END%][% END %]

@@ -322,7 +322,7 @@ [% ar.item.enumchron | html %] [% ar.item.barcode | html %] [% IF ar.format == 'PHOTOCOPY' %]Copy[% ELSIF ar.format == 'SCAN' %]Scan[% END %] - [% IF ar.format == 'SCAN' %][% IF ar.urls %]Yes[% ELSE %]No[% END%][% END %] + [% IF ar.format == 'SCAN' %][% IF ar.urls %]Yes[% ELSE %]No[% END%][% END %]

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt index 8d452ea0a2..9206dba4e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/request-article.tt @@ -420,7 +420,7 @@ }); // Initialize format(s) - var supported_formats = "[% Koha.Preference('ArticleRequestsSupportedFormats') %]"; + var supported_formats = "[% Koha.Preference('ArticleRequestsSupportedFormats') | $raw %]"; if( !supported_formats.match(/PHOTOCOPY/) ) $('#format option[value="PHOTOCOPY"]').remove(); if( !supported_formats.match(/SCAN/) ) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt index 40d91b9247..ca8e3feb75 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt @@ -272,7 +272,7 @@ $(document).ready( function() { }); // Initialize format(s) - var supported_formats = "[% Koha.Preference('ArticleRequestsSupportedFormats') %]"; + var supported_formats = "[% Koha.Preference('ArticleRequestsSupportedFormats') | $raw %]"; if( !supported_formats.match(/PHOTOCOPY/) ) $('#format option[value="PHOTOCOPY"]').remove(); if( !supported_formats.match(/SCAN/) ) -- 2.39.5