Bug 18776: Translatability: Get rid of exposed tt directives in opac-advsearch.tt
The file opac-advsearch.tt exposes template directives to translation where translators should not be confronted with.
Example in po file:
"[%% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('itemtype')."
"size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and "
"OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) "
"%%] "
To test:
- Apply patch
- Verify that advanced search in OPAC behaves as before
- Create a new translation for a 'language' aa-AA (perl translate create aa-AA)
- Verify that template directives ar no longer exposed in aa-AA-opac-bootstrap.po
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit ae684fc949)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit b1bce06e51)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
parent
5bca22d7cf
commit
14de764e5e
|
|
@ -110,8 +110,8 @@
|
|||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('itemtype').size > 0 and not expanded_options ) or
|
||||
( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) %]
|
||||
[%# Following on one line for translatability %]
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('itemtype').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('itemtype').size > 0 and expanded_options ) ) %]
|
||||
<div class="span12">
|
||||
<div id="advsearches" class="toptabs">
|
||||
<ul>
|
||||
|
|
@ -161,8 +161,8 @@
|
|||
[% END %]
|
||||
|
||||
<div class="row-fluid">
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('pubdate').size > 0 and not expanded_options ) or
|
||||
( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('pubdate').size > 0 and expanded_options ) ) %]
|
||||
[%# Following on one line for translatability %]
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('pubdate').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('pubdate').size > 0 and expanded_options ) ) %]
|
||||
<div class="span3">
|
||||
<div id="pubrange">
|
||||
<!-- PUB RANGE OPTION -->
|
||||
|
|
@ -177,8 +177,8 @@
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('language').size > 0 and not expanded_options ) or
|
||||
( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('language').size > 0 and expanded_options ) ) %]
|
||||
[%# Following on one line for translatability %]
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('language').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('language').size > 0 and expanded_options ) ) %]
|
||||
<div class="span3">
|
||||
<div id="langfilter">
|
||||
<fieldset>
|
||||
|
|
@ -203,8 +203,8 @@
|
|||
</div> <!-- / .span3 -->
|
||||
[% END %]
|
||||
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('location').size > 0 and not expanded_options ) or
|
||||
( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('location').size > 0 and expanded_options ) ) %]
|
||||
[%# Following on one line for translatability %]
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('location').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('location').size > 0 and expanded_options ) ) %]
|
||||
[% UNLESS ( singleBranchMode ) %]
|
||||
<div class="span3">
|
||||
<!-- AVAILABILITY LIMITS -->
|
||||
|
|
@ -242,8 +242,8 @@
|
|||
[% END # / UNLESS singleBranchMode %]
|
||||
[% END %]
|
||||
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('sorting').size > 0 and not expanded_options ) or
|
||||
( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('sorting').size > 0 and expanded_options ) ) %]
|
||||
[%# Following on one line for translatability %]
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('sorting').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('sorting').size > 0 and expanded_options ) ) %]
|
||||
<div class="span3">
|
||||
<!-- RANK LIMITS -->
|
||||
<div id="sortby">
|
||||
|
|
@ -260,8 +260,8 @@
|
|||
[% END %]
|
||||
</div> <!-- / .row-fluid -->
|
||||
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('subtype').size > 0 and not expanded_options ) or
|
||||
( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('subtype').size > 0 and expanded_options ) ) %]
|
||||
[%# Following on one line for translatability %]
|
||||
[% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('subtype').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('subtype').size > 0 and expanded_options ) ) %]
|
||||
<div class="row-fluid">
|
||||
[% IF ( usmarc ) %]
|
||||
<!-- SUBTYPE LIMITS -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue