Bug 17169 - Use CCODE descriptions instead of codes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / doc-head-open.inc
index 8499f3f..59e6d53 100644 (file)
@@ -1,4 +1,25 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html lang="[% lang %]" xml:lang="[% lang %]" [% IF ( bidi ) %]dir="[% bidi %]"[% END %] xmlns="http://www.w3.org/1999/xhtml">
+<!DOCTYPE html>
+<!-- TEMPLATE FILE: [% template.name.split('/').last %] -->
+
+[% USE Koha %]
+[% IF Koha.Preference('DumpTemplateVarsIntranet') %]
+    [% TRY %]
+        [% USE Stash %]
+        [% USE Dumper %]
+        <!--
+        [% FILTER replace('<!--', '<!- -') %]
+            [% FILTER replace('-->', '- ->') %]
+                [% Dumper.dump( Stash.stash() ) %]
+            [% END %]
+        [% END %]
+        -->
+    [% CATCH %]
+        <!--
+            DumpTemplateVarsIntranet is set to 'Do', but
+            Template::Plugin::Stash is not installed.
+        -->
+    [% END %]
+[% END %]
+
+[% IF ( bidi ) %]<html lang="[% lang %]" dir="[% bidi %]">[% ELSE %]<html lang="[% lang %]">[% END %]
 <head>