Browse Source

Bug 13618: Fix BLOCKs

perl -p -i -e  's/BLOCK \| html/BLOCK/g' **/*.inc **/*.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
18.11.x
Jonathan Druart 6 years ago
committed by Nick Clemens
parent
commit
dd9e978c2c
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc
  2. 4
      koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt
  3. 4
      koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
  4. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
  5. 2
      koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc
  6. 2
      koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
  7. 2
      koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt

2
koha-tmpl/intranet-tmpl/prog/en/includes/facets.inc

@ -25,7 +25,7 @@
<ul>
[% SET url = "/cgi-bin/koha/catalogue/search.pl?" _ query_cgi _ limit_cgi %]
[% IF ( sort_by ) %]
[% url = BLOCK | html %][% url | html %][% "&amp;sort_by=" _ sort_by |url %][% END %]
[% url = BLOCK %][% url | html %][% "&amp;sort_by=" _ sort_by |url %][% END %]
[% END %]
[% FOREACH facet IN facets_loo.facets %]
[% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetByCode('CCODE',facet.facet_label_value,0) || facet.facet_label_value %][% END %]

4
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt

@ -327,7 +327,7 @@
<td>
[% IF loop_receive.cannot_cancel or ( order.basket.effective_create_items == "receiving" and loop_receive.holds > 0 ) %]
[% IF loop_receive.cannot_cancel %]
[% span_title = BLOCK | html %]
[% span_title = BLOCK %]
Cannot cancel receipt of this order line because it
was created from a partial receipt of order line no.
[% order.parent_ordernumber | html %], which is
@ -337,7 +337,7 @@
[% ELSE %]
[%# FIXME Here we block the cancellation if holds exist. Actually it could be possible if items will be exist after the deletion %]
[%# Some additional checks should be added in the pl file %]
[% span_title = BLOCK | html %]
[% span_title = BLOCK %]
Cannot cancel receipt of this order line because at least one reservation exists on the records.
[% END %]
[% END %]

4
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt

@ -20,11 +20,11 @@
[% url_params = [] | html %]
[% FOREACH param IN CGI.params.pairs %]
[% escaped_value = BLOCK | html %][% param.value | uri %][% END %]
[% escaped_value = BLOCK %][% param.value | uri %][% END %]
[% url_params.push(param.key _ '=' _ escaped_value) | html %]
[% END %]
[% SET referrer = '/cgi-bin/koha/serials/serials-search.pl?' %]
[% referrer = BLOCK | html %][% referrer | url %][% url_params.join("&amp;") |uri %][% END %]
[% referrer = BLOCK %][% referrer | url %][% url_params.join("&amp;") |uri %][% END %]
[% SET edit_action_link = '/cgi-bin/koha/serials/subscription-batchedit.pl?referrer=' _ referrer %]
[% BLOCK subscriptions_table %]

2
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt

@ -68,7 +68,7 @@
<p>You searched for <b>[% searchfield | html %]</b></p>
[% END %]
[% IF ( letter && !independant_branch) %]
[% select_for_copy = BLOCK | html %]
[% select_for_copy = BLOCK %]
<select name="branchcode">
[% FOREACH l IN Branches.all() %]
<option value="[% l.branchcode | html %]">Copy to [% l.branchname | html %]</option>

2
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-facets.inc

@ -35,7 +35,7 @@
<ul>
[% SET url = "/cgi-bin/koha/opac-search.pl?" _ query_cgi _ limit_cgi %]
[% IF ( sort_by ) %]
[% url = BLOCK | html %][% url | html %][% "&amp;sort_by=" _ sort_by |url %][% END %]
[% url = BLOCK %][% url | html %][% "&amp;sort_by=" _ sort_by |url %][% END %]
[% END %]
[% FOREACH facet IN facets_loo.facets %]
[% IF facets_loo.type_label_CollectionCodes %][% SET facet.facet_label_value = AuthorisedValues.GetByCode('CCODE',facet.facet_label_value,1) || facet.facet_label_value %][% END %]

2
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt

@ -469,7 +469,7 @@
<div class="results_summary ratings">
[% SET rating_avg = ratings.get_avg_rating() %]
[% rating_avg_int = BLOCK | html %][% rating_avg | format("%.0f") %][% END %]
[% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
[% FOREACH i IN [ 1 2 3 4 5 ] %]
[% IF rating_avg_int == i && borrowernumber %]
<input class="auto-submit-star" type="radio" name="rating" value="[% i | html %]" checked="checked" />

2
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt

@ -480,7 +480,7 @@
[% IF ( OpacStarRatings == 'all' ) %]
<div class="results_summary ratings">
[% SET rating_avg = SEARCH_RESULT.ratings.get_avg_rating() %]
[% rating_avg_int = BLOCK | html %][% rating_avg | format("%.0f") %][% END %]
[% rating_avg_int = BLOCK %][% rating_avg | format("%.0f") %][% END %]
[% FOREACH i IN [ 1 2 3 4 5 ] %]
[% IF rating_avg_int == i %]
<input class="star" type="radio" name="rating-[% SEARCH_RESULT.biblionumber | html %]" value="[% i | html %]" checked="checked" disabled="disabled" />

Loading…
Cancel
Save