Bug 21476: Fix HTML5 media from playing in the OPAC - incorrect filters
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-restrictedpage.tt
index ac6765d..6a50b1b 100644 (file)
@@ -1,16 +1,16 @@
+[% USE raw %]
 [% USE Koha %]
-[% USE KohaDates %]
 
 [% INCLUDE 'doc-head-open.inc' %]
 <title>
     [% IF ( LibraryNameTitle ) %]
-        [% LibraryNameTitle %]
+        [% LibraryNameTitle | html %]
     [% ELSE %]
         Koha online
     [% END %]
     catalog
     [% IF RestrictedPageTitle %]
-        &rsaquo; [% RestrictedPageTitle %]
+        &rsaquo; [% RestrictedPageTitle | html %]
     [% END %]
 </title>
 [% INCLUDE 'doc-head-close.inc' %]
@@ -22,8 +22,8 @@
 <div class="main">
     <ul class="breadcrumb">
         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a></li>
-        [% IF ( RestrictedPageTitle ) %]
-            <li> <span class="divider">&rsaquo;</span> [% RestrictedPageTitle %]</li>
+        [% IF Koha.Preference('RestrictedPageTitle') %]
+            <li> <span class="divider">&rsaquo;</span> [% Koha.Preference('RestrictedPageTitle') | html %]</li>
         [% END %]
     </ul>
 
             </div>
             <div class="span10">
                 <div id="restrictedcontent" class="maincontent">
-                    [% IF ( RestrictedPageTitle ) %]
-                        <h1>[% RestrictedPageTitle %]</h1>
+                    [% IF Koha.Preference('RestrictedPageTitle') %]
+                        <h1>[% Koha.Preference('RestrictedPageTitle') | html %]</h1>
                     [% END %]
-                    [% RestrictedPageContent %]
+                    [% Koha.Preference('RestrictedPageContent') | $raw %]
                 </div>
             </div> <!-- / .span10 -->
         </div> <!-- / .row-fluid -->