From: Art Rhyno Date: Wed, 26 Sep 2012 01:02:44 +0000 (-0400) Subject: Bring branch up to date with production X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3fd935fd8eec24f31f81f0b6ab50f649506b9669;p=contrib%2FConifer.git Bring branch up to date with production This adds the templates_windsor files and makes this branch the base for dealing with tpac changes for Windsor. --- 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 index 0000000000..61b8eb36a4 --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/css/style_overrides.css.tt2 @@ -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 index 0000000000..30882d1388 --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/base.tt2 @@ -0,0 +1,30 @@ + + + + + [% IF ctx.refresh %] + + [% ELSIF ctx.authtime %] + + [% END %] + + + + [% l('Catalog - [_1]', ctx.page_title) %] + + [% IF want_dojo %] + + [% END %] + [% INCLUDE 'opac/parts/goog_analytics.tt2' %] + + + [% content %] + [% INCLUDE 'opac/parts/footer.tt2' %] + [% INCLUDE 'opac/parts/js.tt2' %] + [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %] + [%- INCLUDE 'opac/parts/chilifresh.tt2' %] + [%- END %] + + 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 index 0000000000..9a4143de8e --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/config.tt2 @@ -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 index 0000000000..3ff4d0d78c --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/css/colors.tt2 @@ -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 index 0000000000..728e2fdbdd --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/css/fonts.tt2 @@ -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 index 0000000000..ca61536049 --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/footer.tt2 @@ -0,0 +1,39 @@ + 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 index 0000000000..591a61ddfe --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/homesearch.tt2 @@ -0,0 +1,13 @@ + 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 index 0000000000..6622098077 --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/topnav_links.tt2 @@ -0,0 +1,13 @@ + 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 index 0000000000..98562250c0 --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/parts/topnav_logo.tt2 @@ -0,0 +1,2 @@ + diff --git a/Open-ILS/src/templates_windsor/opac/results.tt2 b/Open-ILS/src/templates_windsor/opac/results.tt2 new file mode 100644 index 0000000000..73c3f0700c --- /dev/null +++ b/Open-ILS/src/templates_windsor/opac/results.tt2 @@ -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); +%] +
+
+ [% INCLUDE "opac/parts/searchbar.tt2" took_care_of_form=1 %] +
+
+
+
+ + + [% IF ctx.mylist.size %] +
+ [%- IF ctx.user; %] + [% l('View My List') %] + [%- ELSE %] + [% l('View My List') %] + [%- END %] +
+ [% END %] +
+ + + [% IF show_more_details.default != 'hide' %] +
+ + + [% END %] + +
+ + +
+
+
+
+
+
+
+
+
+ [% path = "opac/parts/result/" _ + (ctx.records.size ? "table.tt2" : "lowhits.tt2"); + INCLUDE $path %] +
+
+
+
+
+[% END %]