[Koha-patches] [PATCH] Bug 8288 - showmarc.tt should not include full doc-head-close.inc
Owen Leonard
oleonard at myacpl.org
Fri Jun 22 19:32:16 CEST 2012
showmarc.tt and opac-showmarc.tt are used to load a plain view
of a MARC record and thus do not need the full set of page assets
loaded with other pages (CSS and JavaScript). Removing the
standard doc-head-close include will reduce the load time of
these pages.
---
.../prog/en/modules/catalogue/showmarc.tt | 2 +-
.../opac-tmpl/prog/en/modules/opac-showmarc.tt | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showmarc.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showmarc.tt
index 05467e8..932a50a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showmarc.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/showmarc.tt
@@ -1,6 +1,6 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Cataloging › MARC import</title>
-[% INCLUDE 'doc-head-close.inc' %]
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="catalog_showmarc" class="catalog">
<div id="main">
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showmarc.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showmarc.tt
index 2a30906..3a5a9f8 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showmarc.tt
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showmarc.tt
@@ -1,4 +1,5 @@
-[% INCLUDE 'doc-head-open.inc' %]MARC view[% INCLUDE 'doc-head-close.inc' %]
+[% INCLUDE 'doc-head-open.inc' %]MARC view
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="opac-showmarc">
<div id="main">
--
1.7.9.5
More information about the Koha-patches
mailing list