From 52196919f22cb4e72dc61b670ea400f15c4a9cf6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Nov 2019 17:25:57 +0100 Subject: [PATCH] Bug 14973: Add missing filters in templates Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize --- .../prog/en/modules/suggestion/suggestion.tt | 8 ++-- .../bootstrap/en/modules/opac-suggestions.tt | 38 +++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 36809188e7..d4bb01b4c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -240,12 +240,12 @@ [% IF ( op_save ) %] [% FOR m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'biblio_exists' %] - A similar document already exists: [% m.title %]. Click on "Confirm your suggestion" to ignore this message. + A similar document already exists: [% m.title | html %]. Click on "Confirm your suggestion" to ignore this message. [% CASE %] - [% m.code %] + [% m.code | html %] [% END %]
[% END %] @@ -457,7 +457,7 @@ [% CASE 'already_exists' %] The suggestion has not been added. A suggestion with this title already exists (suggestion #[% m.id | html %]) [% CASE 'biblio_exists' %] - A similar document already exists: [% m.title %]. Click on "Confirm your suggestion" to ignore this message. + A similar document already exists: [% m.title | html %]. Click on "Confirm your suggestion" to ignore this message. [% CASE %] [% m.code | html %] [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index 7650af864a..db6d7ce420 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -41,12 +41,12 @@

Only certain fields (marked in red) are required, but the more information you enter the easier it will be for the librarians to find the title you're requesting. The "Notes" field can be used to provide any additional information.

[% FOR m IN messages %] -
+
[% SWITCH m.code %] [% CASE 'biblio_exists' %] - A similar document already exists: [% m.title %]. Click on "Confirm your suggestion" to ignore this message. + A similar document already exists: [% m.title | html %]. Click on "Confirm your suggestion" to ignore this message. [% CASE %] - [% m.code %] + [% m.code | html %] [% END %]
[% END %] @@ -57,73 +57,73 @@
  • [% IF ( title_required ) %] - + Required [% ELSE %] - + [% END %]
  • [% IF ( author_required ) %] - + Required [% ELSE %] - + [% END %]
  • [% IF ( copyrightdate_required ) %] - + Required [% ELSE %] - + [% END %]
  • [% IF ( isbn_required ) %] - + Required [% ELSE %] - + [% END %]
  • [% IF ( publishercode_required ) %] - + Required [% ELSE %] - + [% END %]
  • [% IF ( collectiontitle_required ) %] - + Required [% ELSE %] - + [% END %]
  • [% IF ( place_required ) %] - + Required [% ELSE %] - + [% END %]
  • @@ -187,11 +187,11 @@
  • [% IF ( note_required ) %] - + Required [% ELSE %] - + [% END %]
  • -- 2.39.5