Bring branch up to date with production
authorArt Rhyno <art632000@yahoo.ca>
Wed, 26 Sep 2012 01:02:44 +0000 (21:02 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 8 May 2013 15:56:54 +0000 (11:56 -0400)
This adds the templates_windsor files and makes this branch
the base for dealing with tpac changes for Windsor.

Open-ILS/src/templates_windsor/opac/css/style_overrides.css.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/base.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/config.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/css/colors.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/css/fonts.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/footer.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/homesearch.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/topnav_links.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/parts/topnav_logo.tt2 [new file with mode: 0644]
Open-ILS/src/templates_windsor/opac/results.tt2 [new file with mode: 0644]

diff --git a/Open-ILS/src/templates_windsor/opac/css/style_overrides.css.tt2 b/Open-ILS/src/templates_windsor/opac/css/style_overrides.css.tt2
new file mode 100644 (file)
index 0000000..61b8eb3
--- /dev/null
@@ -0,0 +1,20 @@
+[%- PROCESS "opac/parts/css/colors.tt2" %]
+
+#adv_search_tabs a.acct-tab-on, #acct_tabs a.acct-tab-on, #acct_fines_tabs a.acct-tab-on {
+    color: [% css_colors.primary %];
+}
+#acct_checked_tabs a, #acct_holds_tabs a, #acct_prefs_tabs a {
+    color: [% css_colors.text_invert %];
+}
+
+#acct_checked_tabs div.selected a, #acct_holds_tabs div.selected a, #acct_prefs_tabs div.selected a {
+    color: [% css_colors.text %];
+}
+
+#acct_checked_tabs, #acct_holds_tabs, #acct_prefs_tabs {
+    color: [% css_colors.text %];
+}
+
+#main-content .login_boxes {
+    color: [% css_colors.text %];
+}
diff --git a/Open-ILS/src/templates_windsor/opac/parts/base.tt2 b/Open-ILS/src/templates_windsor/opac/parts/base.tt2
new file mode 100644 (file)
index 0000000..30882d1
--- /dev/null
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns='http://www.w3.org/1999/xhtml' lang='[% ctx.locale %]' xml:lang='[% ctx.locale %]'>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+        [% IF ctx.refresh %]
+        <meta http-equiv="refresh" content="[% ctx.refresh %]">
+        [% ELSIF ctx.authtime %]
+        <meta http-equiv="refresh" content="[% ctx.authtime %]; url=[% ctx.logout_page %]">
+        [% END %]
+        <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" />
+        [% 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' %]
+    </head>
+    <body[% IF want_dojo; ' class="tundra"'; END %]>
+        [% content %] 
+        [% INCLUDE 'opac/parts/footer.tt2' %]
+        [% INCLUDE 'opac/parts/js.tt2' %]
+        [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
+            [%- INCLUDE 'opac/parts/chilifresh.tt2' %]
+        [%- END %]
+    </body>
+</html>
diff --git a/Open-ILS/src/templates_windsor/opac/parts/config.tt2 b/Open-ILS/src/templates_windsor/opac/parts/config.tt2
new file mode 100644 (file)
index 0000000..9a4143d
--- /dev/null
@@ -0,0 +1,133 @@
+[% 
+
+##############################################################################
+# This file contains skin-level configuration settings.
+# Many of these settings will probably migrate into actor.org_unit_settings.
+##############################################################################
+
+##############################################################################
+# Holds blocking
+##############################################################################
+# Block the ability to place holds if item is available
+ctx.holds_block.enabled = 'true';
+
+##############################################################################
+# RefWorks configuration
+##############################################################################
+# RefWorks is a Web-based citation manager
+ctx.refworks.enabled = 'true';
+
+# Base URL for RefWorks
+ctx.refworks.url = 'http://ezproxy.uwindsor.ca/login?url=http://refworks.scholarsportal.info';
+
+# Some sites have a hosted RefWorks instance at a different URL;
+# in addition, you might want to proxy access to RefWorks - for example:
+# ctx.refworks.url = 'http://librweb.laurentian.ca/login?url=http://refworks.scholarsportal.info';
+
+##############################################################################
+# OpenURL resolution
+##############################################################################
+# Evergreen provides the ability to point at an OpenURL resolver to find
+# electronic resources for a given ISSN or ISBN. Currently, only the SFX
+# resolver is supported.
+#
+# You must enable the open-ils.resolver instance in opensrf.xml to use
+# this feature.
+##############################################################################
+
+openurl.enabled = 'true';
+openurl.baseurl = 'http://sfx.scholarsportal.info/windsor';
+
+##############################################################################
+# Google Analytics support
+##############################################################################
+# You can enable Google Analytics support in Evergreen by entering a
+# valid Google Analytics code and changing 'false' to 'true'
+##############################################################################
+google_analytics.enabled = 'true';
+google_analytics.code = 'UA-2478632-6';
+
+##############################################################################
+# Enable "Forgot your password?" prompt at login
+##############################################################################
+reset_password = 'false';
+
+##############################################################################
+# Hide various options from user preferences that you might not want to expose
+# if you rely on centralized authentication via open-ils.auth_proxy, like LDAP
+#
+# Username changes can be disabled by the opac.lock_usernames OU setting.
+##############################################################################
+disable_password_change = 'true';
+disable_email_change = 'true';
+
+##############################################################################
+# Some libraries do not do notifications by phone; if not true, then this
+# hides the user preference for phone notifications as well as the phone
+# notification portion of the hold dialogue
+##############################################################################
+allow_phone_notifications = 'false';
+
+##############################################################################
+# Misc. UI Settings
+##############################################################################
+# Option for full details as a default, esp. impt. for e-content
+# that uses resolver plumbing. Valid values are 'true', 'false' and 'hide'.
+# Setting this to 'true' shows full details by default but allows the link
+# to appear for 'Show Fewer Details'. The 'hide' option shows full details
+# and also suppresses the link from displaying at all.
+show_more_details.default = 'hide';
+
+##############################################################################
+# Size of the jacket image to display on the record detail summary.
+# Sizes vary depending on added content provider.
+# Options are "small", "medium", and "large"
+record.summary.jacket_size = 'medium';
+
+
+##############################################################################
+# Define the order in which facets are displayed.  Only facets listed here 
+# will be displayed.  To show all facets sorted by name, comment out this 
+# setting.  
+# facet.display = [] # show no facets
+facet.display = [
+    {facet_class => 'author',  facet_order => ['personal', 'corporate']},
+    {facet_class => 'subject', facet_order => ['topic']},
+    {facet_class => 'series',  facet_order => ['seriestitle']},
+    {facet_class => 'subject', facet_order => ['name', 'geographic']}
+];
+
+##############################################################################
+# Define the advanced search limiters and labels.
+# adv_label is the (translated) label for the limiter
+# adv_attr is an array of possible limiters, the first one that has any
+#   values will be used
+# adv_break will end the current row. If specified with a label/attr it
+#   will do so *after* that limiter.
+# adv_special will drop in a special entry:
+#   lib_selector will put the search library box (with limit to available)
+#   pub_year will put the publication year box
+#   sort_selector will put the sort results selector
+
+search.adv_config = [
+    {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"]},
+    {adv_label => l("Item Form"), adv_attr => "item_form"},
+    {adv_label => l("Language"),  adv_attr => "item_lang"},
+    {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"], adv_break => 1},
+    {adv_label => l("Video Format"), adv_attr => "vr_format"},
+    {adv_label => l("Bib Level"), adv_attr => "bib_level"},
+    {adv_label => l("Literary Form"), adv_attr => "lit_form", adv_break => 1},
+    {adv_label => l("Search Library"), adv_special => "lib_selector"},
+    {adv_label => l("Publication Year"), adv_special => "pub_year"},
+    {adv_label => l("Sort Results"), adv_special => "sort_selector"},
+];
+
+##############################################################################
+# For each search box the default "query type" value can be specified here
+# This is the actual backend value, not the label
+# Also note that including more than the row count entries won't add rows
+# The first entry should be used as a default for "basic" search as well
+
+search.default_qtypes = ['keyword','title','author'];
+
+%]
diff --git a/Open-ILS/src/templates_windsor/opac/parts/css/colors.tt2 b/Open-ILS/src/templates_windsor/opac/parts/css/colors.tt2
new file mode 100644 (file)
index 0000000..3ff4d0d
--- /dev/null
@@ -0,0 +1,36 @@
+[%
+    css_colors = {
+
+        background = "#fff", # white
+        background_alert = "#ffcccc", # pink
+        background_invert = "#252525", # charcoal
+        text = "black", # black 
+        text_alert = "red", # red
+        text_attention = "#ffcc33", # pumpkin orange
+        text_badnews = "#f41d36", # cherry red
+        text_goodnews = "#1dd93c", # lime green
+        text_greatnews = "green", # green
+        text_invert = "#fff", # white
+        text_match = "#c00", # deep red
+        primary = "#9DA51A", # uwindsor library greenish
+        primary_fade = "#B2BB1E", # medium of uwindsor green
+        primary_offset = "#C7D122", # light of uwindsor green
+        control = "#003E7E", # lighter green
+        accent_light = "#ccc", #  grey (light)
+        accent_lighter = "#ddd", #  grey (lighter)
+        accent_lighter2 = "#d8d8d8", #  grey (lighter again)
+        accent_lightest = "#eee", #  grey (lightest)
+        accent_ultralight = "#f0f0f0", # ivory
+        accent_medium = "#999", # gun metal grey (medium)
+        accent_mediumdark = "#888", # gun metal grey (medium dark)
+        accent_dark = "#666", # gun metal grey (dark)
+        accent_darker = "#5689BF", # gun metal grey (darker)
+        border_standard = "#e9ebf3", # light grey-blue
+        border_dark = "black", # black
+        border_alert = "red", # red
+        button_text = "#fbf9f9", # off-white 
+        button_text_shadow = "#555555", # medium grey
+        table_heading = "#d8d8d8", # grey-blue
+    };
+    
+%]
diff --git a/Open-ILS/src/templates_windsor/opac/parts/css/fonts.tt2 b/Open-ILS/src/templates_windsor/opac/parts/css/fonts.tt2
new file mode 100644 (file)
index 0000000..728e2fd
--- /dev/null
@@ -0,0 +1,11 @@
+[%-
+    css_fonts = {
+        size_base = "15px",
+        size_small = "92%", # 11px
+        size_smaller = "83%", # 10px
+        size_smallest = "75%", # 9px
+        size_big = "110%", # 13.2px
+        size_bigger = "125%",
+        size_biggest = "150%"
+    }
+%]
diff --git a/Open-ILS/src/templates_windsor/opac/parts/footer.tt2 b/Open-ILS/src/templates_windsor/opac/parts/footer.tt2
new file mode 100644 (file)
index 0000000..ca61536
--- /dev/null
@@ -0,0 +1,39 @@
+<div id="footer-wrap">
+<div id="footer">
+    <a href="http://leddy.uwindsor.ca">[% l('Library Home') %]</a> &nbsp;|&nbsp;
+    <a href="http://www.uwindsor.ca/law/library/">[% l('Law Library') %]</a> &nbsp;|&nbsp;
+    <a href="http://leddy.uwindsor.ca/research-tools">[% l('Journal Articles and Research Tools') %]</a> &nbsp;|&nbsp;
+    <a href="http://sfx.scholarsportal.info/windsor/az">[% l('Browse Journals') %]</a> &nbsp;|&nbsp;
+    <a href="http://reserves.uwindsor.ca/">[% l('Access Course Reserves') %]</a> &nbsp;|&nbsp;
+    <a href="http://leddy.uwindsor.ca/hours">[% l('Library Hours') %]</a> &nbsp;|&nbsp;
+    <a href="http://leddy.uwindsor.ca/contact-us">[% l('Contact Us') %]</a>
+    [% IF ctx.timing %]
+    <div id="timing">
+        [% FOR event IN ctx.timing %]
+        At <span class="timing-time">[% event.0 | format("%0.4f") %]</span>:
+        <span class="timing-event">[% event.1 %]</span><br />
+        [% END %]
+    </div>
+    [% END %]
+    <div id="copyright_text" style="margin-top: 2em;">
+        [% l('Copyright &copy; 2006-[_1] Georgia Public Library Service, and others', date.format(date.now, '%Y')) %]
+    </div>
+    <div id="footer_logo">
+        [% l('Powered by') %]
+        <a href="http://evergreen-ils.org">
+            <img src="[% ctx.media_prefix %]/opac/images/eg_tiny_logo.png"
+                style="border:none; width: 94px; height: 16px;"
+                alt="[% l('Evergreen') %]"
+            />
+        </a>
+        <br clear="left"/>
+        [% l('A service of') %]
+        <a href="http://projectconifer.ca">
+            <img src="[% ctx.media_prefix %]/opac/images/conifer_tiny_logo.jpg"
+                style="border:none; width: 80px; height: 20px;"
+                alt="[% l('Project Conifer') %]"
+            />
+        </a>
+    </div>
+</div>
+</div>
diff --git a/Open-ILS/src/templates_windsor/opac/parts/homesearch.tt2 b/Open-ILS/src/templates_windsor/opac/parts/homesearch.tt2
new file mode 100644 (file)
index 0000000..591a61d
--- /dev/null
@@ -0,0 +1,13 @@
+<div id="homesearch_main_logo">
+    <strong>
+    <center>
+    <h3>
+    [% l('Notice anything different? We are trying a new interface to the catalogue but you can still use the previous version') %]
+    <a href="http://windsor.concat.ca/opac/en-CA/skin/uwin/xml/index.xml?l=106">[% l('here') %]</a> 
+    </h3>
+    </center>
+    <center>
+    <img src="[% ctx.media_prefix %]/images/uwin_logo.png" />
+     </center>
+    </strong>
+</div>
diff --git a/Open-ILS/src/templates_windsor/opac/parts/topnav_links.tt2 b/Open-ILS/src/templates_windsor/opac/parts/topnav_links.tt2
new file mode 100644 (file)
index 0000000..6622098
--- /dev/null
@@ -0,0 +1,13 @@
+<div id="gold-links-holder">
+    <div id="gold-links">
+        <div id="header-links">
+            <a href="http://leddy.uwindsor.ca">[% l('Library Home') %]</a>
+            <a href="http://www.uwindsor.ca/law/library/">[% l('Law Library') %]</a>
+            <a href="http://leddy.uwindsor.ca/research-tools">[% l('Journal Articles and Research Tools') %]</a>
+            <a href="http://sfx.scholarsportal.info/windsor/az">[% l('Browse Journals') %]</a>
+            <a href="http://reserves.uwindsor.ca/">[% l('Access Course Reserves') %]</a>
+            <a href="http://leddy.uwindsor.ca/hours">[% l('Library Hours') %]</a>
+            <a href="http://leddy.uwindsor.ca/contact-us">[% l('Contact Us') %]</a>
+        </div>
+    </div>
+</div>
diff --git a/Open-ILS/src/templates_windsor/opac/parts/topnav_logo.tt2 b/Open-ILS/src/templates_windsor/opac/parts/topnav_logo.tt2
new file mode 100644 (file)
index 0000000..9856225
--- /dev/null
@@ -0,0 +1,2 @@
+       <div id="topnav_logo"><a href="http://leddy.uwindsor.ca" title="Leddy Library, University of Windsor"><img alt="[% l('University of Windsor logo') %]" 
+            src="[% ctx.media_prefix %]/images/uwin_logo_small.png" /></a></div>
diff --git a/Open-ILS/src/templates_windsor/opac/results.tt2 b/Open-ILS/src/templates_windsor/opac/results.tt2
new file mode 100644 (file)
index 0000000..73c3f07
--- /dev/null
@@ -0,0 +1,81 @@
+[%  PROCESS "opac/parts/header.tt2";
+
+    WRAPPER "opac/parts/base.tt2";
+    INCLUDE "opac/parts/topnav.tt2";
+
+    IF is_advanced || is_special;
+        ctx.page_title = l("Search Results");
+    ELSE;
+        ctx.page_title = l("Search Results: ") _ CGI.param('query') | html;
+    END;
+
+    page = CGI.param('page');
+    page = page.match('^\d+$') ? page : 0; # verify page is a sane value
+
+    page_count = ctx.page_size == 0 ? 1 : POSIX.ceil(ctx.hit_count / ctx.page_size);
+%]
+    <form action="[% ctx.opac_root %]/results" method="GET">
+    <div id="search-wrapper">
+        [% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %]
+    </div>
+    <div class="almost-content-wrapper">
+        <div id="results_header_bar">
+            <div id="results_header_inner">
+                <div class="results_header_btns">
+                    <a href="[% mkurl(ctx.opac_root _ '/home') %]">[% l('Another Search') %]</a>
+                </div>
+                <div class="results_header_btns">
+                    <a href="[% mkurl(ctx.opac_root _ '/advanced') %]">[% l('Advanced Search') %]</a>
+                </div>
+                [% IF ctx.mylist.size %]
+                <div class="results_header_btns cached_list_div">
+                    [%- IF ctx.user; %]
+                    <a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]">[% l('View My List') %]</a>
+                    [%- ELSE %]
+                    <a href="[% mkurl(ctx.opac_root _ '/mylist') %]">[% l('View My List') %]</a>
+                    [%- END %]
+                </div>
+                [% END %]
+                <div class="results_header_div"></div>
+                    <label class="results_header_lbl">[% l('Sort by') %]
+                    [% INCLUDE "opac/parts/filtersort.tt2" value=CGI.param('sort') submit_on_change=1 %]
+                    </label>
+
+                    [% IF show_more_details.default != 'hide' %]
+                    <div class="results_header_div"></div>
+
+                    <div class='results_header_sel' id='simple-detail-view-links'>
+                        [% IF CGI.param('detail_record_view') %]
+                        <a href="[% mkurl('', {detail_record_view => ''}) %]">[% l('Show Fewer Details') %]</a>
+                        [% ELSE %]
+                        <a href="[% mkurl('', {detail_record_view => 1}) %]">[% l('Show More Details') %]</a>
+                        [% END %]
+                    </div>
+                    [% END %]
+
+                    <div class="results_header_div"></div>
+
+                    <label class="results_header_lbl">
+                        <input type="checkbox" id="limit_to_available" name="modifier" value="available"
+                            onchange="limit_to_avail_onchange(this, true)"
+                            [% CGI.param('modifier').grep('available').size ? ' checked="checked"' : '' %] />
+                        [% l('Limit to available items') %]
+                    </label>
+                <div class="clear-both"></div>
+            </div>
+        </div>
+    </div>
+    </form>
+    <br class="clear-both" />
+    <div id="content-wrapper">
+        <div id="main-content">
+            <div id="results-page">
+                [% path = "opac/parts/result/" _
+                    (ctx.records.size ? "table.tt2" : "lowhits.tt2");
+                INCLUDE $path %]
+            </div>
+            <div class="common-full-pad"></div>    
+        </div>
+        <br class="clear-both" />
+    </div>
+[% END %]