Bug 18703 - Translatability: Resolve some remaining %%] problems for staff client in 6 Files

There are some more files that expose parts of tt diretives to translations, mostly due to
line breaks inside directives.

Files covered with this Bug:

koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc
 koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt

To test:
- Review code, verify that line breaks are removed
- Run QA tools
- Bonus test: Create a "language" aa-AA and verify that no fragments
  containign %%] are picked for the 6 files

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 9fb5f8519f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit a704e04e96)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
changes to members-update.tt didn't apply to 16.11.x
This commit is contained in:
Marc Véron 2017-05-30 20:44:30 +02:00 committed by Katrin Fischer
parent 5bdd19301f
commit 53b9cb83b2
5 changed files with 20 additions and 40 deletions

View File

@ -1,11 +1,9 @@
[% BLOCK showreference %]
[%#
Parameters:
heading: the heading itself
linkType: currently 'seefrom' or 'seealso', controls the label for the entry
type:
authid: if it is a linked authority, its authid
%]
[%# Parameters: %]
[%# heading: the heading itself %]
[%# linkType: currently 'seefrom' or 'seealso', controls the label for the entry type: %]
[%# authid: if it is a linked authority, its authid %]
[% SET authidurl = '/cgi-bin/koha/authorities/detail.pl?authid=' %]
[% SET searchurl = '/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=' %]
@ -102,12 +100,8 @@
<span class="seefrom">used for/see from:</span>
[% FOREACH seefro IN summary.seefrom %]
<div class="authref">
[% PROCESS showreference
heading=seefro.heading
linkType='seefrom'
type=seefro.type
authid=seefro.authid
%]
[%# Following on one line for translatability %]
[% PROCESS showreference heading=seefro.heading linkType='seefrom' type=seefro.type authid=seefro.authid %]
</div>
[% END %]
</div>
@ -117,12 +111,8 @@
<span class="seealso">see also:</span>
[% FOREACH seeals IN summary.seealso %]
<div class="authref">
[% PROCESS showreference
heading=seeals.heading
linkType='seealso'
type=seeals.type
authid=seeals.authid
%]
[%# Following on one line for translatability %]
[% PROCESS showreference heading=seeals.heading linkType='seealso' type=seeals.type authid=seeals.authid %]
</div>
[% END %]
</div>

View File

@ -69,8 +69,7 @@
<ul>
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
[% IF ( circview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]">Check out</a></li>
[% IF Koha.Preference('BatchCheckouts') &&
Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ categorycode _ '$').size > 0 %]
[% IF Koha.Preference('BatchCheckouts') && Koha.Preference('BatchCheckoutsValidCategories').split('\|').grep('^' _ categorycode _ '$').size > 0 %]
[% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]&amp;batch=1">Batch check out</a></li>
[% END %]
[% END %]

View File

@ -40,15 +40,13 @@
[% END %]
<option value="pb">Publisher</option>
<option value="pl">Publisher location</option>
[%#
Use non-normalized st-year instead of st-numeric,
since pubdate can include 'u' to signify unkown
dates. See "Legal Characters" at:
http://www.loc.gov/marc/bibliographic/bd008a.html
This search is also for date ranges due to the
special Zebra r=r CCL mapping for 'yr'
%]
[%# Use non-normalized st-year instead of st-numeric, %]
[%# since pubdate can include 'u' to signify unkown %]
[%# dates. See "Legal Characters" at: %]
[%# http://www.loc.gov/marc/bibliographic/bd008a.html %]
[%# This search is also for date ranges due to the %]
[%# special Zebra r=r CCL mapping for 'yr' %]
<option value="yr,st-year">Publication date (yyyy-yyyy)</option>
<option value="acqdate,st-date-normalized">Acquisition date (yyyy-mm-dd)</option>
</select>

View File

@ -39,8 +39,7 @@ $(document).ready(function() {
<h4>Checked out [% total %] times</h4>
<table id="table_issues">
<thead><tr>
[% IF Koha.Preference('intranetreadinghistory')
AND CAN_user_circulate_circulate_remaining_permissions %]
[% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
<th>Patron</th>
[% END %]
<th>Barcode</th>
@ -53,8 +52,7 @@ $(document).ready(function() {
<tbody>
[% FOREACH issue IN issues %]
<tr>
[% IF Koha.Preference('intranetreadinghistory')
AND CAN_user_circulate_circulate_remaining_permissions %]
[% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% issue.borrowernumber %]">[% IF HidePatronName %][% issue.cardnumber %][% ELSE %][% issue.surname %][% IF ( issue.firstname ) %], [% issue.firstname %][% END %][% END %]</a></td>
[% END %]
<td>[% IF ( issue.barcode ) %]

View File

@ -119,13 +119,8 @@ var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this news item? This
</div><!-- /yui-u -->
</div><!-- /yui-g -->
<div class="yui-g">
[% IF ( ( CAN_user_tools_moderate_comments && pendingcomments )
|| ( CAN_user_tools_moderate_tags && pendingtags )
|| ( CAN_user_borrowers && pending_borrower_modifications )
|| ( CAN_user_acquisition && pendingsuggestions )
|| ( CAN_user_borrowers && pending_discharge_requests )
|| pending_article_requests
) %]
[%# Following statment must be in one line for translatability %]
[% IF ( ( CAN_user_tools_moderate_comments && pendingcomments ) || ( CAN_user_tools_moderate_tags && pendingtags ) || ( CAN_user_borrowers && pending_borrower_modifications ) || ( CAN_user_acquisition && pendingsuggestions ) || ( CAN_user_borrowers && pending_discharge_requests ) || pending_article_requests) %]
<div id="area-pending">
[% IF pending_article_requests %]
<div class="pending-info" id="article_requests_pending">