Bug 11944: (follow-up) Remove all utf8 filter from templates
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 14 May 2014 09:29:50 +0000 (11:29 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 13 Jan 2015 16:07:35 +0000 (13:07 -0300)
This patch removes 2 new occurrences introduced by bug 11351 and bug
10493.

Signed-off-by: Magnus Enger <digitalutvikling@gmail.com>
Removes a nasty "Template process failed: plugin error - EncodeUTF8:
plugin not found at /home/magnus/scripts/kohaclone/C4/Templates.pm line 124"
from /cgi-bin/koha/admin/itemtypes.pl

Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt

index 1a008c8..2e61a16 100644 (file)
@@ -1,4 +1,3 @@
-[% USE EncodeUTF8 %]
 [% USE AuthorisedValues %]
 [% INCLUDE 'doc-head-open.inc' %]
 <title>Koha &rsaquo; Administration &rsaquo; Item types [% IF ( add_form ) %]&rsaquo;
@@ -202,9 +201,9 @@ Item types administration
               <option value=""></option>
               [% FOREACH a IN AuthorisedValues.Get('SIP_MEDIA_TYPE', sip_media_type ) %]
                   [% IF a.selected %]
-                      <option value="[% a.authorised_value %]" selected="selected">[% a.lib | $EncodeUTF8 %]</option>
+                      <option value="[% a.authorised_value %]" selected="selected">[% a.lib %]</option>
                   [% ELSE %]
-                      <option value="[% a.authorised_value %]">[% a.lib | $EncodeUTF8  %]</option>
+                      <option value="[% a.authorised_value %]">[% a.lib %]</option>
                   [% END %]
               [% END %]
           </select>
index 964704f..e03247d 100644 (file)
@@ -55,7 +55,7 @@
 
                             [% ELSIF error == "too_soon" %]
 
-                                <p>[% item.biblio.title | $EncodeUTF8 %] [% item.biblioitem.subtitle | $EncodeUTF8 %] ( [% item.barcode %] ) cannot be renewed before [% soonestrenewdate | $KohaDates %]. </p>
+                                <p>[% item.biblio.title %] [% item.biblioitem.subtitle %] ( [% item.barcode %] ) cannot be renewed before [% soonestrenewdate | $KohaDates %]. </p>
 
                                 [% IF Koha.Preference('AllowRenewalLimitOverride') %]
                                     <form method="post" action="/cgi-bin/koha/circ/renew.pl">