From: Bill Erickson Date: Mon, 23 Jan 2012 21:49:29 +0000 (-0500) Subject: kpac : first steps X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=93c2707e0ba849a48394f5d6e96564c8bc89da2a;p=evergreen%2Fpines.git kpac : first steps initial pile of template integration and apache configuration Signed-off-by: Bill Erickson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/examples/apache/eg_vhost.conf b/Open-ILS/examples/apache/eg_vhost.conf index 9fd59b2604..5d5551be8e 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf +++ b/Open-ILS/examples/apache/eg_vhost.conf @@ -611,6 +611,20 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] # (e.g. NOVELIST) into here or to an outer container shared by # both /opac and /eg/opac since some are used in both places + + PerlSetVar OILSWebContextLoader "OpenILS::WWW::EGKPacLoader" + # Expire the HTML quickly since we're loading dynamic data for each page + ExpiresActive On + ExpiresByType text/html "access plus 5 seconds" + + # For use with embedded Content Cafe content + #SetEnv OILS_CONTENT_CAFE_USER 123 + #SetEnv OILS_CONTENT_CAFE_PASS 456 + # Consider copying/moving other added content configs + # (e.g. NOVELIST) into here or to an outer container shared by + # both /opac and /eg/opac since some are used in both places + + # Note: the template processor will decline handling anything it does not diff --git a/Open-ILS/examples/kpac.xml b/Open-ILS/examples/kpac.xml new file mode 100644 index 0000000000..92182e1087 --- /dev/null +++ b/Open-ILS/examples/kpac.xml @@ -0,0 +1,55 @@ + + + + + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + + + + + 11 + 10 + 12 + + + + + su:mammal audience(j) + su:mammal audience(j) + su:mammal audience(j) + su:mammal audience(j) + su:mammal audience(j) + su:mammal audience(j) + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm new file mode 100644 index 0000000000..bbbba4506e --- /dev/null +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm @@ -0,0 +1,96 @@ +package OpenILS::WWW::EGKPacLoader; +use base 'OpenILS::WWW::EGCatLoader'; +use strict; use warnings; +use XML::Simple; +use Apache2::Const -compile => qw(OK DECLINED FORBIDDEN HTTP_INTERNAL_SERVER_ERROR REDIRECT HTTP_BAD_REQUEST); +use OpenSRF::Utils::Logger qw/$logger/; +use OpenILS::Application::AppUtils; +use OpenILS::Utils::CStoreEditor qw/:funcs/; +my $U = 'OpenILS::Application::AppUtils'; +my $kpac_config; + +# ----------------------------------------------------------------------------- +# Override our parent's load() sub so we can do kpac-specific path routing. +# ----------------------------------------------------------------------------- +sub load { + my $self = shift; + + $self->init_ro_object_cache; + + my $stat = $self->load_common; + return $stat unless $stat == Apache2::Const::OK; + + $self->load_kpac_config; + + my $path = $self->apache->path_info; + + return $self->load_simple("index") if $path =~ m|kpac/index|; + return $self->load_simple("category") if $path =~ m|kpac/category|; + return $self->load_simple("checkout") if $path =~ m|kpac/checkout|; + return $self->load_simple("checkout_results") if $path =~ m|kpac/checkout_results|; + return $self->load_simple("detailed") if $path =~ m|kpac/detailed|; + return $self->load_rresults if $path =~ m|kpac/search_results|; # inherited from tpac + + # ---------------------------------------------------------------- + # Everything below here requires SSL + # ---------------------------------------------------------------- + return $self->redirect_ssl unless $self->cgi->https; + return $self->load_logout if $path =~ m|kpac/logout|; + + if($path =~ m|kpac/login|) { + return $self->load_login unless $self->editor->requestor; # already logged in? + + # This will be less confusing to users than to be shown a login form + # when they're already logged in. + return $self->generic_redirect( + sprintf( + "https://%s%s/kpac/index", + $self->apache->hostname, $self->ctx->{base_path} + ) + ); + } + + + # ---------------------------------------------------------------- + # Everything below here requires authentication + # ---------------------------------------------------------------- + return $self->redirect_auth unless $self->editor->requestor; + + # AUTH pages + + return Apache2::Const::OK; +} + + +sub load_kpac_config { + my $self = shift; + my $path = '/home/berick/code/Evergreen/Open-ILS/examples/kpac.xml'; # TODO: apache config + + unless ($kpac_config) { + $kpac_config = XMLin( + $path, + KeyAttr => ['id'], + ForceArray => ['layout', 'page', 'cell'], + NormaliseSpace => 2 + ); + } + + # TODO: make generic "whoami" sub for EGCatLoader. + my $ou = $self->ctx->{physical_loc} || $self->cgi->param('loc') || $self->ctx->{aou_tree}->()->id; + my $layout; + + # Search up the org tree to find the nearest config for the context org unit + while (my $org = $self->ctx->{get_aou}->($ou)) { + ($layout) = grep {$_->{owner} eq $org->id} @{$kpac_config->{layout}}; + last if $layout; + $ou = $org->parent_ou; + } + + $self->ctx->{kpac_layout} = $kpac_config->{pages}->{page}->{$layout->{page}}; + $self->ctx->{kpac_config} = $kpac_config; +} + + + +1; + diff --git a/Open-ILS/src/templates/kpac/category.tt2 b/Open-ILS/src/templates/kpac/category.tt2 new file mode 100644 index 0000000000..0a63e9d0dc --- /dev/null +++ b/Open-ILS/src/templates/kpac/category.tt2 @@ -0,0 +1,22 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/subpage.tt2"; + ctx.page_title = ctx.kpac_layout.name %] + +

Living Creatures

+
 
+
+ [% render_kpac_grid(ctx.kpac_config.pages.page.10); # TODO %] +
+ + + +[% END %] diff --git a/Open-ILS/src/templates/kpac/checkout.tt2 b/Open-ILS/src/templates/kpac/checkout.tt2 new file mode 100644 index 0000000000..884368d400 --- /dev/null +++ b/Open-ILS/src/templates/kpac/checkout.tt2 @@ -0,0 +1,132 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/subpage.tt2"; + ctx.page_title = l('Get it') %] + +
+
+
item image
+
+
Book Name
+
by Author Name
+
Call Number
+
Publisher, Year, Size
+
+
+
 book 
+
Book
+
+
 
+
+
+ +
+
+
+ + + + + + + + + + +
+

get it!

+

If you would like to request this item, please enter the following information and click
Submit below:

+
+
+
 
+
+

Library Card Number without spaces:

+
+ pin number help +
 
+
 
+

Pin Number:

+
+ pin number help +
 
+
 
+

Choose a Pickup Library:

+
+
+
+
+ submit +
+
+
+
+
+

save it!

+

If you would like to save this item to a list to be requested later, please choose a location and click
Submit below.

+
+
+
 
+
+

Choose a Pickup Library:

+
+
 
+ +
+
+
+ submit +
+
+
+
+ + + +[% END %] diff --git a/Open-ILS/src/templates/kpac/checkout_results.tt2 b/Open-ILS/src/templates/kpac/checkout_results.tt2 new file mode 100644 index 0000000000..56686f3069 --- /dev/null +++ b/Open-ILS/src/templates/kpac/checkout_results.tt2 @@ -0,0 +1,22 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/subpage.tt2"; + ctx.page_title = l('Get it') %] + +

You Got It!

+ +
+

Your Request for Book Name was successful.
You will be able to pick up this material at Fairwood.

+
+ + + +[% END %] + diff --git a/Open-ILS/src/templates/kpac/detailed.tt2 b/Open-ILS/src/templates/kpac/detailed.tt2 new file mode 100644 index 0000000000..fd803b83a5 --- /dev/null +++ b/Open-ILS/src/templates/kpac/detailed.tt2 @@ -0,0 +1,124 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/subpage.tt2"; + ctx.page_title = l('Item Details') %] + + +
+
item image
+ +
+
Book Name
+
by Author Name
+
+
+
 book 
+
Book
+
+ +
+
rating
+ +
 
+
+
Call Number
+
Publisher, Year, Size
+
+
+
 
+
+
+
+
get it
+
go back
+
+
 
+
+
You can find this item at these locations:
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Location StatusCall Number
Bellevue LibraryView Library InfoCheck ShelfJ613.71 CRE
Burien LibraryView Library InfoCheck ShelfJ613.71 CRE
Newport LibraryView Library InfoDue: 03-13-10J613.71 CRE
Redmond LibraryView Library InfoCheck ShelfJ613.71 CRE
+
+
About this item:
+
+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit

+
+
+ Reviews +
Rate this Item
+ About the Author +
 
+
+
+ + + + +
Average Ratingratingout of 132 reviews
+
 
+
+
+
 
+
+
+ + + + +
Your email address will not
be displayed to other users.
+
+
+ + + + +
Ratingrating1 = Poor, 5 = Awesome
+ +
+
+
 
+
+
submit review
+
+ + + +[% END %] diff --git a/Open-ILS/src/templates/kpac/index.tt2 b/Open-ILS/src/templates/kpac/index.tt2 new file mode 100644 index 0000000000..f53ed0d5f9 --- /dev/null +++ b/Open-ILS/src/templates/kpac/index.tt2 @@ -0,0 +1,53 @@ +[% + PROCESS "opac/parts/header.tt2"; + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/base.tt2"; + ctx.page_title = l("Home") +%] + +
+
 
+
 
+
 
+
 
+
+ + + + + + + +
 
+
+

Search your Library

+

for books, movies, music, magazines, and more!

+ + + + + + + + + + + +
search
+
+
+

Or click on an image to get started:

+ [% render_kpac_grid(ctx.kpac_layout); %] +
+ +
 
+ +
+
 
+
 
+
 
+
 
+
+ +[% END %] + diff --git a/Open-ILS/src/templates/kpac/parts/base.tt2 b/Open-ILS/src/templates/kpac/parts/base.tt2 new file mode 100644 index 0000000000..eb838d5a7d --- /dev/null +++ b/Open-ILS/src/templates/kpac/parts/base.tt2 @@ -0,0 +1,52 @@ + + + + + + [% IF ctx.authtime %] + + [% END %] + [% l("Kid's Catalog - [_1]", ctx.page_title) %] + + +
+ + + + +
[% content %]
+ + + + +
+ + + diff --git a/Open-ILS/src/templates/kpac/parts/grid.tt2 b/Open-ILS/src/templates/kpac/parts/grid.tt2 new file mode 100644 index 0000000000..fd3471a057 --- /dev/null +++ b/Open-ILS/src/templates/kpac/parts/grid.tt2 @@ -0,0 +1,51 @@ + +[% + # Use absolute and fully-qualified image URLs as-is. + # Otherwise, use the kpac base path. + MACRO kpac_img_path(img) BLOCK; + IF img.match('^/') OR img.match('^https?://'); + img; + ELSE; + ctx.media_prefix _ '/images/kpac/' _ img; + END; + END; +%] + +[% + MACRO render_kpac_grid(page) BLOCK; + ncols = page.columns; + name = page.name; + idx = 0 %] + + + [% + width = 100 / ncols; + FOR cell IN page.cell; + IF idx == ncols; + %][% + idx = 0; + END; + idx = idx + 1; + + IF cell.type == 'topic'; + page_id = cell.content; + topic_page = ctx.kpac_config.pages.page.$page_id %] + + + + [% ELSIF cell.type == 'search'; %] + + + + [% ELSIF cell.type == 'link'; %] + + + + [% END %] + [% END %] + +
[% topic_page.name %][% cell.name %][% cell.name %]
+[% END %] diff --git a/Open-ILS/src/templates/kpac/parts/subpage.tt2 b/Open-ILS/src/templates/kpac/parts/subpage.tt2 new file mode 100755 index 0000000000..0a40a99e8b --- /dev/null +++ b/Open-ILS/src/templates/kpac/parts/subpage.tt2 @@ -0,0 +1,75 @@ +[% WRAPPER "kpac/parts/base.tt2" %] + +
+
+ [%# TODO BREADCRUMBS %] + +
+
+ + + + + + + +
 
+
+ [% content %] +
 
+
+
+
+
New Search
+
+ +
+ + + + + + + + + + + +
+ +
 
+ +
 
+ +
+
 
+
+ +
+
 
+
+ search +
+
+
 
+
 
+ +[% END %] + + diff --git a/Open-ILS/src/templates/kpac/search_results.tt2 b/Open-ILS/src/templates/kpac/search_results.tt2 new file mode 100644 index 0000000000..e241606f4b --- /dev/null +++ b/Open-ILS/src/templates/kpac/search_results.tt2 @@ -0,0 +1,94 @@ +[% PROCESS "opac/parts/header.tt2"; + PROCESS "opac/parts/misc_util.tt2"; # MARC + PROCESS "kpac/parts/grid.tt2"; + WRAPPER "kpac/parts/subpage.tt2"; + + ctx.page_title = l('Search Results') + ctx.result_start = 1 + ctx.page_size * page; + ctx.result_stop = ctx.page_size * (page + 1); + IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END; + result_count = ctx.result_start; +%] + +

Search Results

+ + + +
+ +[% FOR rec IN ctx.records; + attrs = {marc_xml => rec.marc_xml}; + PROCESS get_marc_attrs args=attrs %] + +
+
+ [% ident = attrs.isbn_clean || attrs.upc; IF ident; %] + [% l('Image of item') %]
+ [% ELSE %] + [% l('Image of item') %] + [% END %] +
+
+ +
[% l('by [_1]', attrs.author) %]
+
[% attrs.holdings.0.label | html %]
+
[% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %]
+
+
more info
+
get it
+
 
+
+
+
+
+  [% attrs.format_label %]  + +
+
[% attrs.format_label %]
+
+
 
+
+ +[% END %] +
+ + + +[% END %] diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.eot b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.eot new file mode 100755 index 0000000000..9c3e4ceee7 Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.eot differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.svg b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.svg new file mode 100755 index 0000000000..95a2027034 --- /dev/null +++ b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.svg @@ -0,0 +1,5187 @@ + + + + +Created by FontForge 20090914 at Sat Jun 25 00:45:58 2011 + By www-data +Copyright (c) 2011 by Pablo Impallari. www.impallari.com Igino Marini. www.ikern.com. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.ttf b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.ttf new file mode 100755 index 0000000000..43cc896817 Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.ttf differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.woff b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.woff new file mode 100755 index 0000000000..c4860fcfaf Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-Regular.woff differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.eot b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.eot new file mode 100755 index 0000000000..8fef49b419 Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.eot differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.svg b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.svg new file mode 100755 index 0000000000..bf380bdd4c --- /dev/null +++ b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.svg @@ -0,0 +1,4820 @@ + + + + +Created by FontForge 20090914 at Fri Jul 1 20:31:46 2011 + By www-data +Copyright (c) 2011 by Pablo Impallari. www.impallari.com Igino Marini. www.ikern.com. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.ttf b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.ttf new file mode 100755 index 0000000000..39d4411483 Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.ttf differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.woff b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.woff new file mode 100755 index 0000000000..5f25b4c58e Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Cabin-SemiBold.woff differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.eot b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.eot new file mode 100755 index 0000000000..f0c647c0e6 Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.eot differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.svg b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.svg new file mode 100755 index 0000000000..3c866693f3 --- /dev/null +++ b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.svg @@ -0,0 +1,3499 @@ + + + + +Created by FontForge 20090914 at Fri Jul 15 02:19:59 2011 + By www-data +Copyright (c) 2010 by Julia Petretta. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.ttf b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.ttf new file mode 100755 index 0000000000..4dcc053575 Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.ttf differ diff --git a/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.woff b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.woff new file mode 100755 index 0000000000..d530b4fbd0 Binary files /dev/null and b/Open-ILS/web/css/skin/default/kpac/fonts/Kreon.woff differ diff --git a/Open-ILS/web/css/skin/default/kpac/style.css b/Open-ILS/web/css/skin/default/kpac/style.css new file mode 100755 index 0000000000..451e0ffd21 --- /dev/null +++ b/Open-ILS/web/css/skin/default/kpac/style.css @@ -0,0 +1,1032 @@ +@charset "utf-8"; + +@font-face { + font-family: 'Cabin'; + src: url('fonts/Cabin-Regular.eot'); + src: url('fonts/Cabin-Regular.eot?#iefix') format('embedded-opentype'), + url('fonts/Cabin-Regular.woff') format('woff'), + url('fonts/Cabin-Regular.ttf') format('truetype'), + url('fonts/Cabin-Regular.svg#webfont8iYScu0S') format('svg'); +} + +@font-face { + font-family: 'Cabin-Semibold'; + src: url('fonts/Cabin-SemiBold.eot'); + src: url('fonts/Cabin-SemiBold.eot?#iefix') format('embedded-opentype'), + url('fonts/Cabin-SemiBold.woff') format('woff'), + url('fonts/Cabin-SemiBold.ttf') format('truetype'), + url('fonts/Cabin-SemiBold.svg#webfont8iYScu0S') format('svg'); +} + +body { + font-family:'Cabin', Arial; + font-size:12px; + background: #f4f4f4; + margin:0; + padding:0; + border:0; + color:#424242; +} + +a img { border:0; } + +a { + text-decoration:none; + cursor:pointer; + color:#b53ea6; +} + +h1, h2, h3 { + font-weight:normal; + text-transform:uppercase; + margin:0; +} + +h1 { + font-size:52px; +} + +h2 { + font-size:48px; +} + +h3 { + color:#989898; + font-size:18px; + text-transform:none; +} + +select { + font-size:14px; + border:1px solid #d0d0d0; + color:#424242; +} + +input[type=radio] { + margin:0; + padding:0; +} + +input[type=text], input[type=password], textarea { + border:1px solid #d0d0d0; + font-family:'Cabin', Arial; + color:#424242; + margin:0; + resize:none; +} + +.main_center { + width:956px; + margin:auto; + padding-bottom:20px; + padding-top:17px; +} + +.main_header_wrapper { + width:956px; + height:71px; + position:relative; + top:5px; + overflow:hidden; +} + +.logo_wrapper { + margin-left:23px; + float:left; +} + +.logo_left, .logo_right { + display:block; + width:16px; + height:71px; + overflow:hidden; + background:url('/images/kpac/logo_left.png') no-repeat; + float:left; +} + +.logo_right { + background:url('/images/kpac/logo_right.png') no-repeat; +} + +.logo_middle { + display:block; + background:url('/images/kpac/logo_mid.png') repeat-x; + float:left; + height:53px; + padding:18px 14px 0px 14px; +} + +.header_utils { + font-family:Arial; +} + +.header_utils a { + color:#8e8e8e; + display:block; + float:left; + margin-top:19px; + padding:17px 8px 15px 8px; +} + +.header_utils a:hover { + color:#b53ea6; +} + +.text_size_btn { + margin-left:2px; + padding:15px 8px 11px 9px !important; +} + +.text_size_btn span { + position:relative; + top:-4px; +} + +.print_btn { + padding:12px 9px 9px 9px !important; +} + +.print_btn span { + position:relative; + top:-6px; +} + +.header_menu { + margin-top:19px; + margin-right:29px; + font-family:Arial; +} + +.header_menu a { + display:block; + float:right; + color:#8e8e8e; + padding:17px 8px 15px 8px; +} + +.header_menu a:hover { + color:#b53ea6; +} + +.main_wrapper { + width:956px; + overflow:hidden; +} + +.main_top_shadow, .main_bottom_shadow, .main_top_shadow_sub { + width:956px; + height:8px; + overflow:hidden; +} + +.main_top_shadow_sub { + height:69px; +} + +.main_tl_corner, .main_bl_corner { + width:8px; + height:8px; + overflow:hidden; + background:url('/images/kpac/main_tl_corner.png') no-repeat; + float:left; +} + +.main_bl_corner { + background:url('/images/kpac/main_bl_corner.png') no-repeat; +} + +.main_tr_corner, .main_br_corner { + width:8px; + height:8px; + overflow:hidden; + background:url('/images/kpac/main_tr_corner.png') no-repeat; + float:right; +} + +.main_br_corner { + background:url('/images/kpac/main_br_corner.png') no-repeat; +} + +.main_mid_top, .main_mid_bottom { + width:940px; + height:8px; + overflow:hidden; + float:left; + background:url('/images/kpac/main_top_bg.png') repeat-x; +} + +.main_mid_bottom_sub { + width:956px; + height:8px; + overflow:hidden; + background:url('/images/kpac/main_bottom_bg_sub.png') no-repeat; +} + +.main_mid_top_sub { + width:3000px; + height:69px; + overflow:hidden; + background:url('/images/kpac/main_top_bg_sub.png') no-repeat; +} + +.main_mid_bottom { + background:url('/images/kpac/main_bottom_bg.png') repeat-x; +} + +.main_left_shadow { + background:url('/images/kpac/main_left_shadow.png') repeat-y; +} + +.main_right_shadow { + background:url('/images/kpac/main_right_shadow.png') repeat-y; +} + +.main_inside_cell { + background: white; +} + +.main_content_wrapper { + width:684px; + overflow:hidden; +} + +/* +.main_content_wrapper a { + padding:0 2px; + color:#b53ea6; +} + +.main_content_wrapper a:hover { + background:#b53ea6; + color:white; +} +*/ + +.sub_search_category .search_category { + width:216px; +} + +.search_wrapper { + text-align:center; + width:950px; + background:url('/images/kpac/search_bg.png') no-repeat bottom; +} + +.search_wrapper h1 { + margin-top:23px; +} + +.search_box_wrapper { + margin-top:15px; + padding-bottom:37px; +} + +.search_box_wrapper label { + font-size:20px; + font-weight:bold; + color:#74d514; + margin:0; + padding:0; +} + +.search_box_wrapper .st_radio_btn { + padding-right:4px; +} + +.search_box_wrapper .st_label { + padding-right:24px; +} + +.search_box { + width:304px; + height:17px; + font-size:14px; + padding:10px; + font-weight:bold; + margin-right:6px !important; +} + +.st_author_box { + padding-right:15px !important; +} + +.category_wrapper { + margin-left:24px; + padding-bottom:10px; +} + +.c_header_image { + margin-top:10px; + margin-bottom:10px; +} + +.main_category_table td { + padding-right:13px; + padding-bottom:11px; +} + +.main_category_table td a { + display:block; + width:168px; + height:144px; + border:1px solid #d0d0d0; + font-size:16px; + color:white; + overflow:hidden; + white-space:nowrap; +} + +.main_category_table td a span { + display:block; + width:168px; + height:29px; + background:#b53ea6; + overflow:hidden; + text-align:center; + padding-top:8px; +} + +.footer_wrapper { + font-size:11px; + font-family:Arial; + margin-left:3px; + margin-top:7px; +} + +.footer_wrapper a { + display:block; + float:left; + color:#666; + padding:10px 15px 10px 0px; +} + +.footer_wrapper a:hover { + color:#b53ea6; +} + +.sub_sidebar { + background:#e3e3e3 url('/images/kpac/sub_side_bg.png') repeat-y; + border-top:1px solid #eee; +} + +.sub_sidebar_inner { + width:216px; + overflow:hidden; + margin:26px 25px 0px 25px; +} + +.sub_sidebar_header { + color:#424242; + font-size:18px; + text-transform:uppercase; + margin-bottom:7px; +} + +.sub_sidebar_search_box, +.item_detail_rating .review_box_body .input_boxes input[type=text], +.checkout_box .box_inside .text_box { + width:198px; + font-size:14px; + padding:11px 8px 11px 8px; +} + +.sub_sidebar_search_wrapper { + margin-bottom:4px; +} + +.sub_sidebar_search_st { + font-size:14px; + color:white; +} + +.sub_sidebar_search_st .st_radio_btn { + background:#9e9e9e; + padding:6px 4px 7px 7px; +} + +.sub_sidebar_search_st .st_radio_btn input[type=radio] { + overflow:hidden; + width:15px; +} + +.sub_sidebar_search_st .st_label { + background:#9e9e9e; + padding-right:10px; +} + +.st_radio_spacer div { + width:4px; +} + +.breadcrumb { + margin-top:11px; + margin-left:3px; +} + +.breadcrumb a, .breadcrumb .bread_last { + display:block; + float:left; + background:#74d514; + font-family:'Cabin-Semibold', 'Cabin', Arial; + color:white; + font-size:11px; + text-transform:uppercase; + padding:18px 10px 18px 15px; + height:14px; +} + +.breadcrumb .bread_last { + display:block; + background:#b9b9b9; + padding-right:15px; +} + +.breadcrumb .bread_green_mid, .breadcrumb .bread_green_last { + float:left; + width:27px; + height:50px; + overflow:hidden; + background:url('/images/kpac/bread_green_mid.png') no-repeat; +} + +.breadcrumb .bread_green_last { + background:url('/images/kpac/bread_green_last.png') no-repeat; +} + +.breadcrumb .bread_home { + padding:7px 4px 7px 8px; + height:36px; +} + +.item_detail_header { + padding-left:23px; + padding-top:28px; + margin-bottom:20px; +} + +.item_detail_image { + float:left; + padding-top:3px; + width:169px; + overflow:hidden; +} + +.item_detail_image a img { + border:1px solid #d0d0d0; +} + +.item_detail_info { + float:left; + width:321px; + padding-left:18px; +} + +.item_detail_name { + font-size:18px; + color:#b53ea6; + padding-bottom:2px; +} + +.item_detail_author { + padding-bottom:14px; + color:#878787; + font-size:14px; +} + +.item_icon_wrapper { + width:80px; + height:106px; + overflow:hidden; + float:left; +} + +.item_icon { + width:80px; + height:80px; + background:url('/images/kpac/icon_bg.png') no-repeat; + text-align:center; + overflow:hidden; + line-height:80px; +} + +.item_icon img { + vertical-align:middle; + position:relative; + top:-1px; +} + +.item_icon_type_text { + width:80px; + height:24px; + text-align:center; + overflow:hidden; + display:table-cell; + vertical-align:middle; + line-height:12px; +} + +.item_detail_rate_wrapper { + float:left; + padding-left:20px; +} + +.item_detail_rate_starts { + float:left; + border-right:1px solid #e4e5e5; + padding-right:10px; + margin-right:10px; + margin-bottom:7px; +} + +.item_detail_rate_link { + float:left; + font-size:14px; +} + +.item_detail_callnumber { + margin-bottom:4px; +} + +.item_detail_header_buttons { + float:right; + margin-top:3px; + margin-right:23px; + text-align:right; +} + +.item_detail_getit_btn { + margin-bottom:10px; +} + +.item_location_table td { + padding-top:7px; + padding-bottom:7px; +} + +.item_location_table .header td { + font-size:14px; + font-weight:bold; + text-transform:uppercase; + border-bottom:1px solid #e3e3e3; + padding-top:14px; + padding-bottom:12px; +} + +.item_location_table td.location { + width:142px; + padding-left:43px; +} + +.item_location_table td.loc_info { + width:148px; +} + +.item_location_table td.status { + width:138px; +} + +.item_location_table td.callnumber { + width:213px; +} + +.item_location_table .gray td { + background:#f2f2f2; +} + +.item_detail_desc { + font-size:14px; + line-height:22px; + padding:11px 23px; +} + +.item_detail_desc p { + margin:0; + margin-bottom:10px; +} + +.item_detail_desc a { + padding:0px 2px; +} + +.item_detail_desc a:hover { + color:white; + background:#b53ea6; +} + +.item_detail_extras_tabs { + padding-top:15px; + padding-left:23px; + width:3000px; + background:#e3e3e3; +} + +.item_detail_extras_tabs a, +.item_detail_extras_tabs div.selected { + display:block; + float:left; + padding:14px 35px; + background:#b53ea6; + color:white; + font-size:14px; + margin-right:10px; +} + +.item_detail_extras_tabs a.selected, +.item_detail_extras_tabs div.selected { + background:white; + color:#424242; +} + +.item_detail_rating_top { + font-size:14px; + border-bottom:1px solid #e3e3e3; + padding-left:23px; +} + +.item_avg_rate_table { + margin:11px 0; +} + +.item_avg_rate_table .avg_rate { + padding-right:10px; + border-right:1px solid #e3e3e3; +} + +.item_avg_rate_table .stars { + padding-left:10px; +} + +.item_avg_rate_table .total_rates { + padding-left:10px; +} + +.item_detail_rating { + width:638px; + padding:15px 23px 25px 23px; + overflow:hidden; + border-bottom:1px solid #e3e3e3; +} + +.item_detail_rating .review_box_top { + width:638px; + height:9px; + overflow:hidden; + background:url('/images/kpac/reviews_top.png') no-repeat; +} + +.item_detail_rating .review_box_body { + background:#e3e3e3; + padding:1px 25px 0px 25px; +} + +.item_detail_rating .review_box_body .input_boxes { + padding-bottom:15px; +} + +.item_detail_rating .review_box_body .input_boxes .review_email_cell { + padding-left:10px; +} + +.item_detail_rating .review_box_body .input_boxes .rating_msg_box { + font-size:11px; + color:#9a9a9a; + padding-left:12px; +} + +.item_detail_rating2 { + font-size:14px; + padding:7px 0px; + border-top:1px solid #c4c2c2; + border-bottom:1px solid #c4c2c2; + margin-bottom:15px; +} + +.item_avg_rate_table2 .rate { + padding-right:10px; +} + +.item_avg_rate_table2 .stars { + padding:0px 10px; + border-left:1px solid #c4c2c2; + border-right:1px solid #c4c2c2; +} + +.item_avg_rate_table2 .scale { + padding-left:10px; + color:#9a9a9a; +} + +.item_detail_rating .review_box_body .review_comment_box { + margin-bottom:20px; +} + +.item_detail_rating + .review_box_body + .review_comment_box + .review_comment { + width:578px; + height:87px; + padding-left:7px; + padding-top:9px; + font-size:14px; +} + +.item_detail_rating .review_submit_box { + padding-top:5px; +} + +.sub_navigation1, .sub_navigation3 { + padding:25px 23px 20px 23px; +} + +.sub_navigation2 { + padding:0px 23px 25px 23px; + border-bottom:1px solid #e3e3e3; +} + +.sub_navigation1 .nav_mid_bg, +.sub_navigation2 .nav_mid_bg, +.sub_navigation3 .nav_mid_bg { + background:#eaeaea; + text-align:center; + font-size:14px; + +} + + +.sub_navigation1 .nav_mid_bg .current_page, +.sub_navigation2 .nav_mid_bg .current_page, +.sub_navigation3 .nav_mid_bg .current_page { + font-size:24px; + color:#b53ea6; + padding:0px 12px; +} + +.sub_navigation1 .nav_mid_bg .total_pages, +.sub_navigation2 .nav_mid_bg .total_pages, +.sub_navigation3 .nav_mid_bg .total_pages { + font-size:24px; + padding-left:12px; +} + + +.sub_navigation1 .to_top_btn, +.sub_navigation3 .to_top_btn { + padding-left:19px; +} + +.sub_navigation2.checkout { + padding-top:25px; + border-bottom:none; +} + +.search_results { + padding:17px 23px 20px 23px; + border-bottom:1px solid #e3e3e3; +} + +.search_results .item_icon_wrapper { + padding-top:3px; +} + +.search_results .item_detail_info { + width:370px; +} + +.search_results .item_detail_info .item_detail_author { + padding-bottom:6px; +} + +.search_results .item_detail_info .item_detail_actions { + padding-top:28px; +} + +.search_results + .item_detail_info + .item_detail_actions + .button { + float:left; + padding-right:5px; +} + +.checkout_options { + border-bottom:1px solid #e3e3e3; + font-size:14px; +} + +.checkout_options .left_brain { + width:294px; + overflow:hidden; + padding:11px 25px 25px 23px; +} + +.checkout_options .left_brain_cell { + border-right:1px solid #e3e3e3; +} + +.checkout_options .right_brain { + width:294px; + overflow:hidden; + padding:11px 23px 25px 25px; +} + +.checkout_options p { + margin:0; +} + +.checkout_options .top_side { + text-align:center; + padding-bottom:15px; +} + +.checkout_options .submit_btn { + +} + +.checkout_box { + padding-bottom:5px; +} + +.checkout_box .box1_top { + width:294px; + height:9px; + font-size:0px; + overflow:hidden; + background:url('/images/kpac/box1_top.png') no-repeat; +} + +.checkout_box .box_inside { + background:#e3e3e3; + padding:7px 25px 20px 25px; +} + +.checkout_box .box_inside p { + margin-bottom:5px; +} + +.checkout_box .box_inside .input_box { + float:left; +} + +.checkout_box .box_inside .help_btn { + float:right; + display:block; + + /* IE7 star hack */ + *position:relative; + *top:1px; +} + +.checkout_box .box_inside .text_box { + padding-bottom:10px; +} + +.checkout_box .box_inside .pickup_lib select { + width:244px; +} + +.checkout_item_pad { + padding-top:30px; +} + +.checkout_res_body { + font-size:18px; + text-align:center; + line-height:30px; +} + +.checkout_res_back { + font-size:11px; + font-family:'Cabin-Semibold', 'Cabin', Arial; + text-transform:uppercase; + white-space:nowrap; + color:white; + background:#74d514; + padding:18px 28px 18px 0px; + display:block; + overflow:hidden; + height:14px; +} + +.sub_cat_wrapper { + padding:13px 0px 13px 75px; + border-bottom:1px solid #e3e3e3; +} + +.sub_header2 { + text-align:center; + margin-top:20px; + margin-bottom:9px; +} + +.sub_header { + font-size:14px; + background:#e3e3e3; + padding:8px 23px; +} + +.clear { + clear:both; + font-size:0px; + line-height:0px; + /* background:green; - for debugging */ + + /* IE7 has a problem with these + height:0px; + overflow:hidden; + */ +} + +div.hr { + margin: 12px 0; + background:#c4c2c2; + height:1px; + overflow:hidden; +} + +.popup_wrapper { + position:absolute; +} + +.popup_wrapper .popup_wrapper_inner { + position:relative; + display:none; + top:0px; + left:0px; +} + +.popup_wrapper .popup_mid { + background:white; +} + +.popup_wrapper .popup_content { + margin-right:-20px; + margin-bottom:-20px; + position:relative; + top:-10px; + left:-10px; + padding:2px; + overflow:hidden; + font-size:14px; +} + +.popup_wrapper .popup_arrow_bm { + position:relative; + top:-3px; +} + +.popup_wrapper .popup_tl { + width:13px; + height:13px; + background:url('/images/kpac/popup_tl.png') no-repeat; +} + +.popup_wrapper .popup_tm { + background:url('/images/kpac/popup_tm.png') repeat-x; +} + +.popup_wrapper .popup_tr { + width:13px; + height:13px; + background:url('/images/kpac/popup_tr.png') no-repeat; +} + +.popup_wrapper .popup_lm { + background:url('/images/kpac/popup_lm.png') repeat-y; +} + +.popup_wrapper .popup_rm { + background:url('/images/kpac/popup_rm.png') repeat-y; +} + +.popup_wrapper .popup_bl { + width:13px; + height:13px; + background:url('/images/kpac/popup_bl.png') no-repeat; +} + +.popup_wrapper .popup_bm { + background:url('/images/kpac/popup_bm.png') repeat-x; +} + +.popup_wrapper .popup_br { + width:13px; + height:13px; + background:url('/images/kpac/popup_br.png') no-repeat; +} + + + + + + + + + + + + + + + + diff --git a/Open-ILS/web/images/kpac/arrow_last.png b/Open-ILS/web/images/kpac/arrow_last.png new file mode 100755 index 0000000000..d7bcc11153 Binary files /dev/null and b/Open-ILS/web/images/kpac/arrow_last.png differ diff --git a/Open-ILS/web/images/kpac/arrow_next.png b/Open-ILS/web/images/kpac/arrow_next.png new file mode 100755 index 0000000000..6ccb5ae922 Binary files /dev/null and b/Open-ILS/web/images/kpac/arrow_next.png differ diff --git a/Open-ILS/web/images/kpac/back_to_book.png b/Open-ILS/web/images/kpac/back_to_book.png new file mode 100755 index 0000000000..6832068cdc Binary files /dev/null and b/Open-ILS/web/images/kpac/back_to_book.png differ diff --git a/Open-ILS/web/images/kpac/back_to_results_btn.png b/Open-ILS/web/images/kpac/back_to_results_btn.png new file mode 100755 index 0000000000..09252e7ef8 Binary files /dev/null and b/Open-ILS/web/images/kpac/back_to_results_btn.png differ diff --git a/Open-ILS/web/images/kpac/box1_top.png b/Open-ILS/web/images/kpac/box1_top.png new file mode 100755 index 0000000000..a618b2e4ce Binary files /dev/null and b/Open-ILS/web/images/kpac/box1_top.png differ diff --git a/Open-ILS/web/images/kpac/bread_green_last.png b/Open-ILS/web/images/kpac/bread_green_last.png new file mode 100755 index 0000000000..3f680f3f05 Binary files /dev/null and b/Open-ILS/web/images/kpac/bread_green_last.png differ diff --git a/Open-ILS/web/images/kpac/bread_green_mid.png b/Open-ILS/web/images/kpac/bread_green_mid.png new file mode 100755 index 0000000000..1839f15211 Binary files /dev/null and b/Open-ILS/web/images/kpac/bread_green_mid.png differ diff --git a/Open-ILS/web/images/kpac/btn_arrow.png b/Open-ILS/web/images/kpac/btn_arrow.png new file mode 100755 index 0000000000..d2df51ee93 Binary files /dev/null and b/Open-ILS/web/images/kpac/btn_arrow.png differ diff --git a/Open-ILS/web/images/kpac/cancel_back_btn.png b/Open-ILS/web/images/kpac/cancel_back_btn.png new file mode 100755 index 0000000000..6a3401c60e Binary files /dev/null and b/Open-ILS/web/images/kpac/cancel_back_btn.png differ diff --git a/Open-ILS/web/images/kpac/category.png b/Open-ILS/web/images/kpac/category.png new file mode 100755 index 0000000000..b65f96f1bd Binary files /dev/null and b/Open-ILS/web/images/kpac/category.png differ diff --git a/Open-ILS/web/images/kpac/get_it_btn.png b/Open-ILS/web/images/kpac/get_it_btn.png new file mode 100755 index 0000000000..dfedc15d11 Binary files /dev/null and b/Open-ILS/web/images/kpac/get_it_btn.png differ diff --git a/Open-ILS/web/images/kpac/get_it_btn_sm.png b/Open-ILS/web/images/kpac/get_it_btn_sm.png new file mode 100755 index 0000000000..c8ddde4326 Binary files /dev/null and b/Open-ILS/web/images/kpac/get_it_btn_sm.png differ diff --git a/Open-ILS/web/images/kpac/go_back_btn.png b/Open-ILS/web/images/kpac/go_back_btn.png new file mode 100755 index 0000000000..d7884e9394 Binary files /dev/null and b/Open-ILS/web/images/kpac/go_back_btn.png differ diff --git a/Open-ILS/web/images/kpac/home_icon.png b/Open-ILS/web/images/kpac/home_icon.png new file mode 100755 index 0000000000..b2784c097c Binary files /dev/null and b/Open-ILS/web/images/kpac/home_icon.png differ diff --git a/Open-ILS/web/images/kpac/icon_bg.png b/Open-ILS/web/images/kpac/icon_bg.png new file mode 100755 index 0000000000..4987914f31 Binary files /dev/null and b/Open-ILS/web/images/kpac/icon_bg.png differ diff --git a/Open-ILS/web/images/kpac/icon_book.png b/Open-ILS/web/images/kpac/icon_book.png new file mode 100755 index 0000000000..316168710f Binary files /dev/null and b/Open-ILS/web/images/kpac/icon_book.png differ diff --git a/Open-ILS/web/images/kpac/item_image.jpg b/Open-ILS/web/images/kpac/item_image.jpg new file mode 100755 index 0000000000..aa20560da9 Binary files /dev/null and b/Open-ILS/web/images/kpac/item_image.jpg differ diff --git a/Open-ILS/web/images/kpac/kcls_logo.jpg b/Open-ILS/web/images/kpac/kcls_logo.jpg new file mode 100755 index 0000000000..184b54a3d0 Binary files /dev/null and b/Open-ILS/web/images/kpac/kcls_logo.jpg differ diff --git a/Open-ILS/web/images/kpac/library_card.png b/Open-ILS/web/images/kpac/library_card.png new file mode 100755 index 0000000000..308a77d78f Binary files /dev/null and b/Open-ILS/web/images/kpac/library_card.png differ diff --git a/Open-ILS/web/images/kpac/logo_left.png b/Open-ILS/web/images/kpac/logo_left.png new file mode 100755 index 0000000000..bec5496355 Binary files /dev/null and b/Open-ILS/web/images/kpac/logo_left.png differ diff --git a/Open-ILS/web/images/kpac/logo_mid.png b/Open-ILS/web/images/kpac/logo_mid.png new file mode 100755 index 0000000000..5c832cd6aa Binary files /dev/null and b/Open-ILS/web/images/kpac/logo_mid.png differ diff --git a/Open-ILS/web/images/kpac/logo_right.png b/Open-ILS/web/images/kpac/logo_right.png new file mode 100755 index 0000000000..8abf97fd34 Binary files /dev/null and b/Open-ILS/web/images/kpac/logo_right.png differ diff --git a/Open-ILS/web/images/kpac/main_bl_corner.png b/Open-ILS/web/images/kpac/main_bl_corner.png new file mode 100755 index 0000000000..523b1f0793 Binary files /dev/null and b/Open-ILS/web/images/kpac/main_bl_corner.png differ diff --git a/Open-ILS/web/images/kpac/main_bottom_bg.png b/Open-ILS/web/images/kpac/main_bottom_bg.png new file mode 100755 index 0000000000..ff2133edda Binary files /dev/null and b/Open-ILS/web/images/kpac/main_bottom_bg.png differ diff --git a/Open-ILS/web/images/kpac/main_bottom_bg_sub.png b/Open-ILS/web/images/kpac/main_bottom_bg_sub.png new file mode 100755 index 0000000000..35b28184f1 Binary files /dev/null and b/Open-ILS/web/images/kpac/main_bottom_bg_sub.png differ diff --git a/Open-ILS/web/images/kpac/main_br_corner.png b/Open-ILS/web/images/kpac/main_br_corner.png new file mode 100755 index 0000000000..ffc0d3ce5c Binary files /dev/null and b/Open-ILS/web/images/kpac/main_br_corner.png differ diff --git a/Open-ILS/web/images/kpac/main_left_shadow.png b/Open-ILS/web/images/kpac/main_left_shadow.png new file mode 100755 index 0000000000..dd5db85677 Binary files /dev/null and b/Open-ILS/web/images/kpac/main_left_shadow.png differ diff --git a/Open-ILS/web/images/kpac/main_right_shadow.png b/Open-ILS/web/images/kpac/main_right_shadow.png new file mode 100755 index 0000000000..a55fd7ad76 Binary files /dev/null and b/Open-ILS/web/images/kpac/main_right_shadow.png differ diff --git a/Open-ILS/web/images/kpac/main_tl_corner.png b/Open-ILS/web/images/kpac/main_tl_corner.png new file mode 100755 index 0000000000..d30e843236 Binary files /dev/null and b/Open-ILS/web/images/kpac/main_tl_corner.png differ diff --git a/Open-ILS/web/images/kpac/main_top_bg.png b/Open-ILS/web/images/kpac/main_top_bg.png new file mode 100755 index 0000000000..47f343b5bd Binary files /dev/null and b/Open-ILS/web/images/kpac/main_top_bg.png differ diff --git a/Open-ILS/web/images/kpac/main_top_bg_sub.png b/Open-ILS/web/images/kpac/main_top_bg_sub.png new file mode 100755 index 0000000000..60da9bc858 Binary files /dev/null and b/Open-ILS/web/images/kpac/main_top_bg_sub.png differ diff --git a/Open-ILS/web/images/kpac/main_tr_corner.png b/Open-ILS/web/images/kpac/main_tr_corner.png new file mode 100755 index 0000000000..45dc3200e9 Binary files /dev/null and b/Open-ILS/web/images/kpac/main_tr_corner.png differ diff --git a/Open-ILS/web/images/kpac/more_info_btn.png b/Open-ILS/web/images/kpac/more_info_btn.png new file mode 100755 index 0000000000..5e8f8a0a40 Binary files /dev/null and b/Open-ILS/web/images/kpac/more_info_btn.png differ diff --git a/Open-ILS/web/images/kpac/popup_arrow_bm.png b/Open-ILS/web/images/kpac/popup_arrow_bm.png new file mode 100755 index 0000000000..a7781d82f8 Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_arrow_bm.png differ diff --git a/Open-ILS/web/images/kpac/popup_bl.png b/Open-ILS/web/images/kpac/popup_bl.png new file mode 100755 index 0000000000..2ef4e40024 Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_bl.png differ diff --git a/Open-ILS/web/images/kpac/popup_bm.png b/Open-ILS/web/images/kpac/popup_bm.png new file mode 100755 index 0000000000..c37d5fc0e3 Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_bm.png differ diff --git a/Open-ILS/web/images/kpac/popup_br.png b/Open-ILS/web/images/kpac/popup_br.png new file mode 100755 index 0000000000..dae1a6a3de Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_br.png differ diff --git a/Open-ILS/web/images/kpac/popup_lm.png b/Open-ILS/web/images/kpac/popup_lm.png new file mode 100755 index 0000000000..9698d5a92a Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_lm.png differ diff --git a/Open-ILS/web/images/kpac/popup_rm.png b/Open-ILS/web/images/kpac/popup_rm.png new file mode 100755 index 0000000000..7d11564e8d Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_rm.png differ diff --git a/Open-ILS/web/images/kpac/popup_tl.png b/Open-ILS/web/images/kpac/popup_tl.png new file mode 100755 index 0000000000..8bf9c3b615 Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_tl.png differ diff --git a/Open-ILS/web/images/kpac/popup_tm.png b/Open-ILS/web/images/kpac/popup_tm.png new file mode 100755 index 0000000000..6b76ca160f Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_tm.png differ diff --git a/Open-ILS/web/images/kpac/popup_tr.png b/Open-ILS/web/images/kpac/popup_tr.png new file mode 100755 index 0000000000..619c6c4200 Binary files /dev/null and b/Open-ILS/web/images/kpac/popup_tr.png differ diff --git a/Open-ILS/web/images/kpac/print_btn.png b/Open-ILS/web/images/kpac/print_btn.png new file mode 100755 index 0000000000..19f201490b Binary files /dev/null and b/Open-ILS/web/images/kpac/print_btn.png differ diff --git a/Open-ILS/web/images/kpac/question_mark.png b/Open-ILS/web/images/kpac/question_mark.png new file mode 100755 index 0000000000..c608f1a3d0 Binary files /dev/null and b/Open-ILS/web/images/kpac/question_mark.png differ diff --git a/Open-ILS/web/images/kpac/review_submit_btn.png b/Open-ILS/web/images/kpac/review_submit_btn.png new file mode 100755 index 0000000000..d952f03d3d Binary files /dev/null and b/Open-ILS/web/images/kpac/review_submit_btn.png differ diff --git a/Open-ILS/web/images/kpac/reviews_top.png b/Open-ILS/web/images/kpac/reviews_top.png new file mode 100755 index 0000000000..692b8fe5e0 Binary files /dev/null and b/Open-ILS/web/images/kpac/reviews_top.png differ diff --git a/Open-ILS/web/images/kpac/search_bg.png b/Open-ILS/web/images/kpac/search_bg.png new file mode 100755 index 0000000000..f3114b56ee Binary files /dev/null and b/Open-ILS/web/images/kpac/search_bg.png differ diff --git a/Open-ILS/web/images/kpac/search_btn.png b/Open-ILS/web/images/kpac/search_btn.png new file mode 100755 index 0000000000..3c5ffb1ed8 Binary files /dev/null and b/Open-ILS/web/images/kpac/search_btn.png differ diff --git a/Open-ILS/web/images/kpac/search_btn_sub.png b/Open-ILS/web/images/kpac/search_btn_sub.png new file mode 100755 index 0000000000..4897bef1c3 Binary files /dev/null and b/Open-ILS/web/images/kpac/search_btn_sub.png differ diff --git a/Open-ILS/web/images/kpac/star_oiff.png b/Open-ILS/web/images/kpac/star_oiff.png new file mode 100755 index 0000000000..3a02a7a4bc Binary files /dev/null and b/Open-ILS/web/images/kpac/star_oiff.png differ diff --git a/Open-ILS/web/images/kpac/star_on.png b/Open-ILS/web/images/kpac/star_on.png new file mode 100755 index 0000000000..4647529153 Binary files /dev/null and b/Open-ILS/web/images/kpac/star_on.png differ diff --git a/Open-ILS/web/images/kpac/stars!.png b/Open-ILS/web/images/kpac/stars!.png new file mode 100755 index 0000000000..9fd8310436 Binary files /dev/null and b/Open-ILS/web/images/kpac/stars!.png differ diff --git a/Open-ILS/web/images/kpac/stars!_gray.png b/Open-ILS/web/images/kpac/stars!_gray.png new file mode 100755 index 0000000000..bf38a47d24 Binary files /dev/null and b/Open-ILS/web/images/kpac/stars!_gray.png differ diff --git a/Open-ILS/web/images/kpac/sub_side_bg.png b/Open-ILS/web/images/kpac/sub_side_bg.png new file mode 100755 index 0000000000..1b2ab079e2 Binary files /dev/null and b/Open-ILS/web/images/kpac/sub_side_bg.png differ diff --git a/Open-ILS/web/images/kpac/text_size_btn.png b/Open-ILS/web/images/kpac/text_size_btn.png new file mode 100755 index 0000000000..548b03e276 Binary files /dev/null and b/Open-ILS/web/images/kpac/text_size_btn.png differ diff --git a/Open-ILS/web/images/kpac/to_top_btn.png b/Open-ILS/web/images/kpac/to_top_btn.png new file mode 100755 index 0000000000..18eb56f815 Binary files /dev/null and b/Open-ILS/web/images/kpac/to_top_btn.png differ diff --git a/Open-ILS/web/js/ui/default/kpac/functions.js b/Open-ILS/web/js/ui/default/kpac/functions.js new file mode 100755 index 0000000000..0df08e3a6b --- /dev/null +++ b/Open-ILS/web/js/ui/default/kpac/functions.js @@ -0,0 +1,82 @@ + +function __$(str) { return document.getElementById(str); } +function attachEvt(type, el, evt) { // object, function + if(window.addEventListener) { + if(type.toLowerCase()=='mousewheel') el.addEventListener('DOMMouseScroll', evt, false); + el.addEventListener(type, evt, false); // standard event attaching + } + else if(window.attachEvent) el.attachEvent('on'+type, evt); // IE 5+ + else el['on'+type] = evt; // if all else fails... +} + +function getElementsByClass(str, parent) { + var arr = []; + var p = parent || document; + var els = p.getElementsByTagName("*"); + var len = els.length; + + for(var i=0; i= 0) + arr.push(it); + } + + return arr; +} + + +function helpPopup(str, target, evt) { + var el = __$(str); if(!el || !target) return; + var maxWidth = 400; + + if(el.style.display!="none" && el.style.display!="") { + el.style.display="none"; + el.style.top = "0px"; + el.style.left= "0px"; + el.parentNode.style.zIndex="-1"; + return; + } + + var src = evt.target || evt.srcElement; + var sTop = document.documentElement.scrollTop; + var sLeft = document.documentElement.scrollLeft; + el.style.display="block"; + + var content = getElementsByClass("popup_content", el); + if(content[0].offsetWidth>maxWidth) content[0].style.width=maxWidth+"px"; + + var elRect = el.getBoundingClientRect(); + var tRect = target.getBoundingClientRect(); + var elWidth = el.offsetWidth; + var elHeight = el.offsetHeight; + var tWidth = target.offsetWidth; + var tHeight = target.offsetHeight; + + var top = tRect.top - elRect.top - elHeight + 10; + var left = tRect.left - elRect.left - (elWidth/2 - (tWidth/2)); + + el.style.top = top+"px"; + el.style.left= left+"px"; + el.parentNode.style.zIndex = "100000"; + el.origSrc = src; +} + +function bodyClick(evt) { +// hide any visible help popups + var popups = getElementsByClass("popup_wrapper_inner"); + var len = popups.length; + var src = evt.target || evt.srcElement; + + for(var i=0; i