Bug 13618: Manually replace missing .raw
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 19 Jul 2018 21:47:46 +0000 (18:47 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 17 Aug 2018 15:55:10 +0000 (15:55 +0000)
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 files changed:
koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc
koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc
koha-tmpl/intranet-tmpl/prog/en/includes/popup-bottom.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt
koha-tmpl/opac-tmpl/bootstrap/en/includes/bodytag.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-sendbasket.tt

index 8be66b2..c8d2680 100644 (file)
@@ -18,7 +18,7 @@
 [% Asset.css("lib/font-awesome/css/font-awesome.min.css") | $raw %]
 [% Asset.css("css/print.css", { media = "print" }) | $raw %]
 [% INCLUDE intranetstylesheet.inc %]
-[% IF ( bidi ) %][% Asset.css("css/right-to-left.css").raw %][% END %]
+[% IF ( bidi ) %][% Asset.css("css/right-to-left.css") | $raw %][% END %]
 
 [% IF ( login ) %]
     [% Asset.css("css/login.css") | $raw %]
index 89619a0..022c4e3 100644 (file)
@@ -69,7 +69,7 @@
     <span id="audio-alert"></span>
     [% IF ( footerjs ) %]
         [% INCLUDE js_includes.inc %]
-        [% jsinclude.raw # Parse the page template's JavaScript block if necessary %]
+        [% jsinclude | $raw # Parse the page template's JavaScript block if necessary %]
     [% END %]
     </body>
 </html>
index 7fd95b9..9a113d4 100644 (file)
@@ -1,7 +1,7 @@
 [% USE raw %]
     [% IF ( footerjs ) %]
         [% INCLUDE js_includes.inc popup=1 %]
-        [% jsinclude.raw # Parse the page template's JavaScript block if necessary %]
+        [% jsinclude | $raw # Parse the page template's JavaScript block if necessary %]
     [% END %]
 </body>
 </html>
index 8de5299..09a44d9 100644 (file)
         }
 
         $(document).ready(function() {
-            columns_settings = [% ColumnsSettings.GetColumns( 'admin', 'currency', 'currencies-table', 'json' ).raw %]
+            columns_settings = [% ColumnsSettings.GetColumns( 'admin', 'currency', 'currencies-table', 'json' ) | $raw %]
             var issuest = KohaTable("currencies-table", {
                 dom: 'B<"clearfix">t',
                 "columnDefs": [
index e61faa3..032761f 100644 (file)
@@ -65,7 +65,7 @@ function AreMandatoriesNotOk(){
                [% FOREACH subfield_loo IN innerloo.subfield_loop %]
                        [% IF ( subfield_loo.mandatory ) %]mandatories.push("[% subfield_loo.id | html %]");
                     tab.push("[% BIG_LOO.number | html %]");
-                    label.push("[% subfield_loo.marc_lib.raw |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]");
+                    label.push("[% subfield_loo.marc_lib | $raw |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]");
                        [% END %]
                        [% END %]
                [% END %]
index 38e8fcd..8f14152 100644 (file)
@@ -303,7 +303,7 @@ function confirm_deletion() {
                         [% ELSE  %]
                             <a href="#" id="buttonDot_[%- mv.id | html -%]" class="[%- mv.class | html -%]" title="Tag editor">...</a>
                         [% END %]
-                        [%- mv.javascript.raw -%]
+                        [%- mv.javascript | $raw -%]
                     [% END %]
                 [% ELSIF ( mv.type == 'text' ) %]
                     [% IF mv.readonly %]
index 6cdc633..c345a26 100644 (file)
@@ -693,9 +693,9 @@ No patron matched <span class="ex">[% message | html %]</span>
                    [% IF ( debarredcomment ) %]
                        with the explanation: <br/><i>
                        [% IF debarredcomment.search('OVERDUES_PROCESS') %]
-                           Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ').raw | html_line_break %]
+                           Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | raw | html_line_break %]
                        [% ELSE %]
-                           [% debarredcomment.raw | html_line_break %]
+                           [% debarredcomment | raw | html_line_break %]
                        [% END %]
                        </i>
                    [% END %]
@@ -1004,7 +1004,7 @@ No patron matched <span class="ex">[% message | html %]</span>
         var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export");
         var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone.");
 
-        columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ).raw %]
+        columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) | $raw %]
 
         [% IF borrowernumber and patron %]
             if($.cookie("holdfor") != [% patron.borrowernumber | html %]){
index 137deea..c6c7119 100644 (file)
     [% INCLUDE 'columns_settings.inc' %]
     <script type="text/javascript">
         $(document).ready(function() {
-          var columns_settings = [% ColumnsSettings.GetColumns('circ', 'holds', 'holds-to-pull', 'json').raw %];
+          var columns_settings = [% ColumnsSettings.GetColumns('circ', 'holds', 'holds-to-pull', 'json') | $raw %];
           var holdst = KohaTable("holdst", {
             "aoColumnDefs": [
                 { "sType": "anti-the", "aTargets" : [ "anti-the" ] },
index e8d2588..e2bb802 100644 (file)
             };
             $('#holdst thead input').on('change keyup keydown', filterColumn);
 
-            var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json').raw %];
+            var columns_settings = [% ColumnsSettings.GetColumns('circ', 'view_holdsqueue', 'holds-table', 'json') | $raw %];
             var holdst = KohaTable("holdst", {
                 "aaSorting": [[ 3, "asc" ]],
                 "aoColumns": [
index 283ef72..1f64b17 100644 (file)
         $(document).ready(function() {
             var txtActivefilter = _("Filter paid transactions");
             var txtInactivefilter = _("Show all transactions");
-            var columns_settings = [% ColumnsSettings.GetColumns('members', 'fines', 'account-fines', 'json').raw %];
+            var columns_settings = [% ColumnsSettings.GetColumns('members', 'fines', 'account-fines', 'json') | $raw %];
             var table_account_fines = KohaTable("table_account_fines", {
                 "sPaginationType": "four_button",
                 'aaSorting': [[0, 'desc']],
index 11d971e..a82f0e8 100644 (file)
@@ -32,5 +32,5 @@
 [%~ IF data.zipcode %][% SET address = address _ data.zipcode _ ' ' %][% END %]
 [%~ IF data.country %][% SET address = address _ data.country _ ' ' %][% END %]
 [%~ SET address = address _ Branches.GetName( data.branchcode ) %]
-[%~ To.json( address ).raw ~%]
+[%~ To.json( address ) | $raw ~%]
 [% END %]
index db1a9ff..6799c31 100644 (file)
@@ -45,5 +45,5 @@
 [%~ IF data.streettype %][% address = address _ AuthorisedValues.GetByCode( 'ROADTYPE', data.streettype ) _ ' ' | html %][% END %]
 [%~ IF data.address %][% address = address _ data.address _ ' ' | html %][% END %]
 [%~ IF data.address2 %][% address = address _ data.address2 _ ' ' | html %][% END %]
-[%~ To.json( address ).raw ~%]
+[%~ To.json( address ) | $raw ~%]
 [% END %]
index 5cd4e21..cbb9e9b 100644 (file)
@@ -971,7 +971,7 @@ $(document).ready(function() {
         $(document).ready(function(){
 
             $('[data-toggle="tooltip"]').tooltip();
-            var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'saved-sql', 'table_reports', 'json' ).raw %];
+            var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'saved-sql', 'table_reports', 'json' ) | $raw %];
 
             $('#limit').change(function() {
                 $('#limitselect').submit();
index 93ce0ba..b4c741b 100644 (file)
     [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
     <script type='text/javascript'>
         $(document).ready(function() {
-            var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'lostitems', 'lostitems-table', 'json' ).raw %];
+            var columns_settings = [% ColumnsSettings.GetColumns( 'reports', 'lostitems', 'lostitems-table', 'json' ) | $raw %];
             var lostitems_table = KohaTable("lostitems-table", {
                 "dom": 'B<"clearfix">t',
                 "aaSorting": [],
index 75c67fc..fdc389e 100644 (file)
@@ -1,14 +1,14 @@
 [% USE raw %]
 [% classprop  = 'class="' | html %]
 [% IF LoginBranchcode.defined %]
-    [% classprop = classprop.raw _ 'branch-' _ LoginBranchcode %]
+    [% classprop = classprop | $raw _ 'branch-' _ LoginBranchcode %]
 [% ELSE %]
-    [% classprop = classprop.raw _ 'branch-default' %]
+    [% classprop = classprop | $raw _ 'branch-default' %]
 [% END %]
 [% IF bodyclass.defined %]
-    [% classprop = classprop.raw _ ' ' _ bodyclass %]
+    [% classprop = classprop | $raw _ ' ' _ bodyclass %]
 [% END %]
-[% classprop = classprop.raw _ '"' %]
+[% classprop = classprop | $raw _ '"' %]
 
 [% IF bodyid.defined %]
     [% idprop = 'ID="' _ bodyid _ '" ' | html %]
index ac51ea5..5c51764 100644 (file)
@@ -31,7 +31,7 @@
 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Details for: [% title | html %][% FOREACH subtitl IN subtitle %][% IF Koha.Preference('marcflavour')=='UNIMARC' %],[% END %] [% subtitl.subfield | html %][% END %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
 [% IF ( bidi ) %]
-  [% BLOCK cssinclude %][% Asset.css("css/right-to-left.css").raw %][% END %]
+  [% BLOCK cssinclude %][% Asset.css("css/right-to-left.css") | $raw %][% END %]
 [% END %]
 [% IF ( OpacStarRatings != 'disable' ) %]
     [% BLOCK cssinclude %][% Asset.css("css/jquery.rating.css") | $raw %][% END %]
 [% END %]
 [% IF ( OpacStarRatings != 'disable' ) %][% Asset.js("lib/jquery/plugins/jquery.rating.js") | $raw %][% END %]
 
-[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js").raw %][% END %]
+[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %][% END %]
 
 <script>
 //<![CDATA[
             }
         });
 
-        var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ).raw %];
+        var columns_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'holdingst', 'json' ) | $raw ];
 
         KohaTable("#holdingst", {
             dom: '<"clearfix">t',
             "bKohaColumnsUseNames": true
         }, columns_settings);
 
-        var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ).raw %];
+        var serial_column_settings = [% ColumnsSettings.GetColumns( 'opac', 'biblio-detail', 'subscriptionst', 'json' ) | $raw %];
 
         KohaTable("#subscriptionst", {
             dom: '<"clearfix">t',
index e71e9de..e711428 100644 (file)
 [% IF ( OverDriveEnabled ) %][% Asset.js("js/overdrive.js") | $raw %][% END %]
 [% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
 [% Asset.js("js/authtoresults.js") | $raw %]
-[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js").raw %]
+[% IF ( OpacHighlightedWords ) %][% Asset.js("lib/jquery/plugins/jquery.highlight-3.js") | $raw %]
 [% END %]<script>
 //<![CDATA[
 [% IF ( Koha.Preference( 'opacuserlogin' ) == 1 ) && ( Koha.Preference( 'RequestOnOpac' ) == 1 ) %]
index 8f9a98a..3c53c3b 100644 (file)
@@ -40,7 +40,7 @@ Your cart
             <span>Author(s): [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author | $raw %][% END %]
 
             [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %]
-                [% IF ( BIBLIO_RESULT.author.raw ) %]; [% END %]
+                [% IF ( BIBLIO_RESULT.author | $raw ) %]; [% END %]
                 [% FOREACH MARCAUTHOR IN BIBLIO_RESULT.MARCAUTHORS %]
                     [% FOREACH MARCAUTHOR_SUBFIELDS_LOO IN MARCAUTHOR.MARCAUTHOR_SUBFIELDS_LOOP %]
                         [% MARCAUTHOR_SUBFIELDS_LOO.separator | $raw %][% MARCAUTHOR_SUBFIELDS_LOO.value | $raw %]