From: Dan Scott Date: Sun, 1 May 2011 20:57:01 +0000 (-0400) Subject: Create a templates_kcls to hold KCLS branding of TT OPAC X-Git-Tag: sprint4-merge-nov22~5128^2~72^2~74 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e368f3acde6c968d31e9b166f5c8193371a2f4f4;p=working%2FEvergreen.git Create a templates_kcls to hold KCLS branding of TT OPAC The debranding of the TT OPAC begins with the top navigation. * Replace the KCLS logo with the Evergreen logo (even though white background on black doesn't look great, it's something) * Replace the KCLS specific top links with example links. * Split the logo and the links sections out into separate templates so that we can maximize commonality of the topnav.tt2 template. For now, all files containing the string 'kcls' have been copied into the templates_kcls directory. As we move through the templates, we may refactor them in similar to how we just refactored topnav.tt2. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/web/templates/default/opac/parts/printnav.tt2 b/Open-ILS/web/templates/default/opac/parts/printnav.tt2 index 13a8f666f5..580c0d63ec 100644 --- a/Open-ILS/web/templates/default/opac/parts/printnav.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/printnav.tt2 @@ -12,7 +12,7 @@ [% l('Print Page') %] - [% l('Help') %]
- [% l('KCLS Logo') %] + [% INCLUDE "default/opac/parts/topnav_logo.tt2" %]
[% IF !ctx.user %] @@ -104,16 +103,4 @@
[% END %] - +[% INCLUDE "default/opac/parts/topnav_links.tt2" %] diff --git a/Open-ILS/web/templates/default/opac/parts/topnav_links.tt2 b/Open-ILS/web/templates/default/opac/parts/topnav_links.tt2 new file mode 100644 index 0000000000..2a8c9b0fdc --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/topnav_links.tt2 @@ -0,0 +1,11 @@ + diff --git a/Open-ILS/web/templates/default/opac/parts/topnav_logo.tt2 b/Open-ILS/web/templates/default/opac/parts/topnav_logo.tt2 new file mode 100644 index 0000000000..7e479f90b8 --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/topnav_logo.tt2 @@ -0,0 +1,2 @@ + [% l('Evergreen Logo') %] diff --git a/Open-ILS/web/templates_kcls/default/opac/myopac/main.tt2 b/Open-ILS/web/templates_kcls/default/opac/myopac/main.tt2 new file mode 100644 index 0000000000..03347fb73c --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/myopac/main.tt2 @@ -0,0 +1,334 @@ +[% PROCESS "default/opac/parts/header.tt2"; + PROCESS "default/opac/parts/misc_util.tt2"; + WRAPPER "default/opac/parts/myopac/main_base.tt2"; + myopac_page = "main"; + myopac_main_page = "main"; +%] + + [% IF ctx.fines.circulation.size > 0 %] +
+ + + + + + + + + + + + + + + + + [% FOR f IN ctx.fines.circulation; + attrs = {marc_xml => f.marc_xml}; + IF f.marc_xml; + PROCESS get_marc_attrs args=attrs; + ELSIF f.xact.reservation; + attrs.title = f.xact.reservation.target_resource_type.name; + END %] + + + + + + + + + + [% END %] + +
+ [% l("Fines") %] +
[% l("Title") %][% l("Author") %][% l("Checkout Date") %][% l("Due Date") %][% l("Date Returned") %][% l("Balance Owed") %]
+ [% recid = f.xact.circulation.target_copy.call_number.record.id || f.xact.reservation.target_resource_type.record.id; + IF recid; %] + [% attrs.title %] + [% ELSE %] + [% attrs.title %] + [% END %] + + [% attrs.author %] + + [% ts = f.xact.circulation.xact_start || f.xact.reservation.start_time || 0; + IF ts; + date.format(ctx.parse_datetime(ts), DATE_FORMAT); + END %] + + [% ts = f.xact.circulation.due_date || f.xact.reservation.end_time || 0; + IF ts; + date.format(ctx.parse_datetime(ts), DATE_FORMAT); + END %] + + [% ts = f.xact.circulation.checkin_time || f.xact.reservation.return_time || 0; + IF ts; + date.format(ctx.parse_datetime(ts), DATE_FORMAT); + ELSE %] + + [% l('(fines accruing)') %] + [% END %] + + + [% money(f.xact.balance_owed) %] + +
+
+ [% END %] + + [% IF ctx.fines.grocery.size > 0 %] + +
+
+
+
+ + + + + + + + + + + + + + + + + [% FOR f IN ctx.fines.grocery %] + + + + + + + + + + [% END %] + +
+ [% l("Other Fees") %] +
[% l("Transaction Start Time") %][% l("Last Payment Time") %][% l("Initial Amount Owed") %][% l("Total Amount Paid") %][% l("Balance Owed") %][% l("Billing Type") %]
[% date.format( + ctx.parse_datetime(f.xact.xact_start), + DATE_FORMAT + ) %] + [% IF f.xact.last_payment_ts; + date.format( + ctx.parse_datetime( + f.xact.last_payment_ts + ), DATE_FORMAT + ); + END %] + [% money(f.xact.total_owed) %][% money(f.xact.total_paid) %] + + [% money(f.xact.balance_owed) %] + + [% f.xact.last_billing_type %]
+
+ [% END %] + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Billing Information + Selected fines you are paying for: + + + + + + + + + +
+ Name + + Amount +
+
+
+ Total amount to pay: + $ +
+
+ Click Cancel to go back and (un)select + other fines. +
First Name
Last Name
Street Address
City
State or Province
ZIP or Postal Code
Credit Card Information
Credit Card #
+
+
+ +
+
+ Security Code +
+ +
Exipration Month + +
Expiration Year + +
Edit Billing Address + +
+ + +
+
+ Important! You must have a printed receipt to be + eligible for a refund on lost items (regulations allow + for no exceptions). +
+ + To ensure your necessary receipt information is + not lost, enter your email address above and a + receipt will be emailed to you. Otherwise, make + certain you have a printed receipt in hand before + closing the payment receipt screen. + +
+ Refunds are not available for parts and pieces, overdue + fines, or items that do not display a specific title in + My Account. For a full list of refundable and + non-refundable items, visit + http://www.kcls.org/usingthelibrary/borrowing/refundable.cfm

+ This site uses VeriSign SSL encryption to ensure your + privacy. +
+
+[% END %] diff --git a/Open-ILS/web/templates_kcls/default/opac/myopac/prefs_settings.tt2 b/Open-ILS/web/templates_kcls/default/opac/myopac/prefs_settings.tt2 new file mode 100644 index 0000000000..4267d3ae34 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/myopac/prefs_settings.tt2 @@ -0,0 +1,116 @@ +[% PROCESS "default/opac/parts/header.tt2"; + WRAPPER "default/opac/parts/myopac/prefs_base.tt2"; + myopac_page = "prefs_notify"; + prefs_page = 'settings' %] + +USER SETTINGS + + + + + + +[% END %] diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/footer.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/footer.tt2 new file mode 100644 index 0000000000..9ab3ace033 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/footer.tt2 @@ -0,0 +1,10 @@ + + diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/homesearch.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/homesearch.tt2 new file mode 100644 index 0000000000..2021f16580 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/homesearch.tt2 @@ -0,0 +1,64 @@ +
+
+
+
+ new catalog +
+
+
+ +
+
+
+ + + + + + + + + + + + + + + + +
+ + [% l("Browse for") %]: + +
+ books + + movies + + downloads + + websites +
+ music + + magazines + + databases + + answers +
+
+ +
+
+ +
+
+
diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/login/form.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/login/form.tt2 new file mode 100644 index 0000000000..c0624ae2a8 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/login/form.tt2 @@ -0,0 +1,171 @@ + + +[% IF ctx.login_failed_event %] +
+[% + IF ctx.login_failed_event.textcode == 'PATRON_CARD_INACTIVE'; + l("The barcode used to login is marked as inactive. Please contact your local library."); + ELSIF ctx.login_failed_event.textcode == 'PATRON_INACTIVE'; + l("This account has been deactivated. Please contact your local library."); + ELSE; + l("Login failed. The username or password provided was not valid. + Ensure Caps-Lock is off and try again or contact your local library."); + END; +%] +
+[% END %] + +
+
+
+ + + + + + +
+
+
+
diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/printnav.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/printnav.tt2 new file mode 100644 index 0000000000..13a8f666f5 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/printnav.tt2 @@ -0,0 +1,25 @@ +
+
+
+ +
+ [% l('Back') %] + [% l('Homepage') %] + [% l('Print Page') %] + [% l('Help') %] + [% l('Forward') %] +
+ +
+
+
diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/record/summary.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/record/summary.tt2 new file mode 100644 index 0000000000..9d087818d2 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/record/summary.tt2 @@ -0,0 +1,248 @@ + + + + + + + + + + + + +
+ [% ident = attrs.isbn_clean || attrs.upc; IF ident; %] + [% l('Image of item') %] + [% END %] +
+
+
[% l("Image provided by") %]
+ +
+
+ + + + + +
+ [% attrs.title %]
+ [% IF attrs.author %] + [% l("Author") %]: + [% attrs.author %] + [% END %] +
+
+
+ +
+ [% + operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add"; + label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); + %] +
+ +
+
+ +
+
+ +
+
+
+
+ [% IF attrs.format_icon %] + [% attrs.format_label %] + [% END %] +
+
+
+
+ + + + + + + + + + + + + + + + + +
+ [% IF attrs.isbn %][% l("ISBN") %][% END %] + [% attrs.isbn %] + [% IF attrs.phys_desc %][% l("Physical Description") %][% END %] + [% attrs.phys_desc %]
+ [% IF attrs.edition; l("Edition"); END %] + [% attrs.edition %]
+ [% IF attrs.publisher; l("Publisher"); END %] + [% attrs.publisher %] + [% IF attrs.pubdate; l("Publication Date"); END %] + [% attrs.pubdate %]
+
+
+

+ + + + + + + + + [% IF ctx.is_staff %] + + + + [% END %] + + + + + + [% FOR copy_info IN ctx.copies %] + + + + + + [% IF ctx.is_staff %] + + + + [% END %] + + + + [% END %] + + [% IF ctx.copy_offset > 0; + new_offset = ctx.copy_offset - ctx.copy_limit; + IF new_offset < 0; new_offset = 0; END %] + + [% END %] + [% IF ctx.copies.size >= ctx.copy_limit %] + + [% END %] + + +
[% l("Location") %][% l("Call Number") %][% l("Barcode") %][% l("Shelving Location") %][% l("Age Hold Protection") %][% l("Create Date") %][% l("Holdable") %][% l("Status") %][% l("Due Date") %]
[% + # XXX KCLS-specific kludging + org_name = ctx.get_aou(copy_info.circ_lib).name; + dir = org_name | lower | replace('[^\w]', '') | + replace('.+320th', '320th'); %] + [% org_name %] + [% copy_info.call_number_label %][% copy_info.barcode %][% copy_info.copy_location %] + [% copy_info.age_protect ? + ctx.get_crahp(copy_info.age_protect).name : l('None') %] + [% date.format( + ctx.parse_datetime(copy_info.create_date), + DATE_FORMAT + ) %][% (copy_info.holdable == 't' AND + copy_info.location_holdable == 't' AND + copy_info.status_holdable == 't') ? l('Yes') : l('No') %][% copy_info.copy_status %][% + IF copy_info.due_date; + date.format( + ctx.parse_datetime(copy_info.due_date), + DATE_FORMAT + ); + ELSE; + '-'; + END %]
+ [%# For some reason, browsers render © (as in, ©_limit=foo) as the copyright + symbol, even though it's inside inside the href attribute string. Use ; instead %] + « [% + l('Previous [_1]', ctx.copy_offset - new_offset) + %] + + [% + l('Next [_1]', ctx.copy_limit) + %] » +
+ + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + +
+
+ [% l("Title") %]: +
+
+ [% l('Place Hold') %] + [% l('Reviews and More') %] + [% l('Add to My List') %] +
+
+
+ + +
+ + diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/topnav_links.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/topnav_links.tt2 new file mode 100644 index 0000000000..6ea4b4de7b --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/topnav_links.tt2 @@ -0,0 +1,13 @@ + diff --git a/Open-ILS/web/templates_kcls/default/opac/parts/topnav_logo.tt2 b/Open-ILS/web/templates_kcls/default/opac/parts/topnav_logo.tt2 new file mode 100644 index 0000000000..f9d4320790 --- /dev/null +++ b/Open-ILS/web/templates_kcls/default/opac/parts/topnav_logo.tt2 @@ -0,0 +1,2 @@ + [% l('KCLS Logo') %]