From 2f982f239eccbf36832fd9b0b91e656d59d7a203 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 26 May 2021 16:24:32 +0200 Subject: [PATCH] Bug 28462: Remove TT tag on several lines - opac-advsearch.tt It fixes the translation in case the operators have been translated Test plan: 1. misc/translator/translate update pt-BR 2. In pt-BR-opac-bootstrap.po , find OpacAdvSearchMoreOptions 3. sabotage the translation part, like replacing IF with something else 4. misc/translator/translate install pt-BR 5. enable and use pt-BR and hit opac-advsearch.pl 6. Notice the error Template process failed: file error - parse error - /kohadevbox/koha/koha-tmpl/opac-tmpl/bootstrap/pt-BR/modules/opac-advsearch.tt line 409: unexpected token (e) [% IF (OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.size> 0 e extended_options) ou (OpacAdvSearchOptions and OpacAdvSearchOptions.size> 0 e n expandido_options) %] at /kohadevbox/koha/C4/Templates.pm 7. Apply the patch and redo update and install of the language 8. Note that it's now working Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit f60efe6e8e647651512a6a4275e7a1ce8a6f5f37) Signed-off-by: Fridolin Somers (cherry picked from commit e2328c015f31de22eceb06ab122be251d7cd8319) Signed-off-by: Victor Grousset/tuxayo --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt index 08b8889382..8302c1ad02 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -381,8 +381,7 @@ [% END # / IF expanded_options %] - [% IF ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.size > 0 and expanded_options ) or - ( OpacAdvSearchOptions and OpacAdvSearchOptions.size > 0 and not expanded_options ) %] + [% IF ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.size > 0 and expanded_options ) or ( OpacAdvSearchOptions and OpacAdvSearchOptions.size > 0 and not expanded_options ) %]
-- 2.39.5