Add style_overrides.css to the OPAC base
authorDan Scott <dscott@laurentian.ca>
Tue, 9 Dec 2014 20:50:23 +0000 (15:50 -0500)
committerDan Scott <dscott@laurentian.ca>
Tue, 9 Dec 2014 20:52:18 +0000 (15:52 -0500)
This will enable sites to minimize the differences in their styles
and the core styles, at the cost of an extra HTTP request.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates_conifer/opac/css/style_overrides.css.tt2 [new file with mode: 0644]
Open-ILS/src/templates_conifer/opac/parts/base.tt2 [new file with mode: 0644]

diff --git a/Open-ILS/src/templates_conifer/opac/css/style_overrides.css.tt2 b/Open-ILS/src/templates_conifer/opac/css/style_overrides.css.tt2
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Open-ILS/src/templates_conifer/opac/parts/base.tt2 b/Open-ILS/src/templates_conifer/opac/parts/base.tt2
new file mode 100644 (file)
index 0000000..3b20bf4
--- /dev/null
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html lang='[% ctx.locale.replace('_', '-') %]'>
+    <head>
+        <meta charset="utf-8" />
+        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+        [% IF ctx.refresh %]
+        <meta http-equiv="refresh" content="[% ctx.refresh %]" />
+        [% ELSIF ctx.authtime AND !ctx.is_staff %]
+        <meta http-equiv="refresh" content="[% ctx.authtime %]; url=[% ctx.home_page %]" />
+        [% END %]
+        <meta name = "viewport" content = "initial-scale = 1.0">
+        <link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/default/opac/semiauto.css" />
+        <link rel="stylesheet" type="text/css" href="[% ctx.opac_root %]/css/style.css" />
+        <link rel="stylesheet" type="text/css" href="[% ctx.opac_root %]/css/style_overrides.css" />
+        <title>[% l('Catalog - [_1]', ctx.page_title) %]</title>
+        <link rel="unapi-server" type="application/xml" title="unAPI" href="/opac/extras/unapi" />
+        <link type="application/opensearchdescription+xml" rel='search' title="[% l('Evergreen OpenSearch') %]" href="/opac/extras/opensearch/1.1/[% ctx.get_aou(ctx.search_ou).shortname %]/-/osd.xml" />
+        [% IF want_dojo %]
+        <style type="text/css">
+            @import "[% ctx.media_prefix %]/js/dojo/dijit/themes/tundra/tundra.css";
+        </style>
+        [% END %]
+
+        [% INCLUDE 'opac/parts/goog_analytics.tt2' %]
+        [% PROCESS 'opac/parts/stripe.tt2' %]
+    </head>
+    <body[% IF want_dojo; ' class="tundra"'; END %]>
+        <h1 class="sr-only">[% l('Catalog') %]</h1>
+        [%#Each content page needs (at minimum) an <h2> describing the content%]
+        [% content %] 
+        <h2 class="sr-only">[% l('Additional Resources') %]</h2>
+        [% INCLUDE 'opac/parts/footer.tt2' %]
+        [% INCLUDE 'opac/parts/js.tt2' %]
+        [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
+            [%- INCLUDE 'opac/parts/chilifresh.tt2' %]
+        [%- END %]
+    </body>
+</html>