+++ /dev/null
-[% PROCESS "opac/parts/header.tt2";
- PROCESS "kpac/parts/grid.tt2";
- WRAPPER "kpac/parts/subpage.tt2";
- page_id = trail_endpoint();
- page = ctx.kpac_config.pages.page.$page_id;
- ctx.page_title = page.name %]
-
-<h2 class="sub_header2">[% page.name | html %]</h2>
-<div class="hr"> </div>
-<div class="sub_cat_wrapper">
- [% render_kpac_grid(page_id) %]
-</div>
-
-<div class="sub_navigation1">
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- <td><a href="[% mkurl(ctx.home_page, {}, ['trail']) %]">
- <img src="[% ctx.media_prefix %]/images/kpac/go_back_btn.png" /></a></td>
- <td width="100%" class="nav_mid_bg"></td>
- <td class="to_top_btn"><a href="[% mkurl(ctx.unparsed_uri, {}, 1) %]">
- <img src="[% ctx.media_prefix %]/images/kpac/to_top_btn.png" /></a></td>
- </tr>
- </table>
-</div>
-
-[% END %]
+++ /dev/null
-[%
- PROCESS "opac/parts/header.tt2";
- PROCESS "opac/parts/misc_util.tt2"; # MARC
- WRAPPER "kpac/parts/subpage.tt2";
- attrs = {marc_xml => ctx.marc_xml};
- INCLUDE get_marc_attrs args=attrs;
- ctx.page_title = attrs.title | html
-%]
-
-<div id="search_results_parent">
- [% INCLUDE 'kpac/parts/record_row.tt2' rec_id=ctx.bre_id%]
-</div>
-
-<div class="checkout_options">
- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td valign="top" class="left_brain_cell">
- <div class="left_brain">
-
- [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='card_help' %]
- <img src="[% ctx.media_prefix %]/images/kpac/library_card.png" alt="[% l('library card') %]" /></div></td>
- [% END %]
- [% WRAPPER 'kpac/parts/help_popups.tt2' popup_id='password_help' %]
- <p>[% l('Enter your password') %]</p>
- [% END %]
-
- <div class="top_side">
- <h2>get it!</h2>
- <p>[% |l %]If you would like to place a hold on this item, please enter the
- following information and click<br />Submit below:[% END %]</p>
- </div>
-
- <form method='POST'><!-- login + place hold form -->
-
- <div class="checkout_box">
- <div class="box1_top"> </div>
- <div class="box_inside">
-
- [% IF !ctx.user %]
- [% seed = l(' Enter Numbers... ') %]
- <p>[% l('Library Card Number without spaces:') %]</p>
- <div class="input_box">
- <input name="username" type="text" class="text_box" style="color:#aaa;" value="[% seed %]"
- onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}"
- onblur="if(this.value==''){this.value='[% seed %]'; this.style.color='#aaa';}" />
- </div>
- <a class="help_btn" href="javascript:;"
- onclick="helpPopup('card_help', this, event);"><img
- src="[% ctx.media_prefix %]/images/kpac/question_mark.png" alt="pin number help" /></a>
-
- <div class="clear"> </div>
- <div class="hr"> </div>
-
- <p>[% l('Password') %]</p>
- <div class="input_box">
- <input name="password" type="password" class="text_box" style="color:#aaa;" value="[% seed %]"
- onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}"
- onblur="if(this.value==''){this.value='[% seed %]'; this.style.color='#aaa';}" />
- </div>
-
- <a class="help_btn" href="javascript:;"
- onclick="helpPopup('password_help', this, event);"><img
- src="[% ctx.media_prefix %]/images/kpac/question_mark.png" alt="[% l('password help') %]" /></a>
-
- <div class="clear"> </div>
- <div class="hr"> </div>
- [% END %]
-
- <p>[% l('Choose a Pickup Library:') %]</p>
- <div class="pickup_lib">
- [% def_lib = ctx.default_pickup_lib || ctx.physical_loc;
- PROCESS "opac/parts/org_selector.tt2";
- INCLUDE build_org_selector name='pickup_lib'
- value=def_lib id='pickup_lib' can_have_vols_only=1 %]
- </div>
- </div>
- </div>
- <div class="submit_btn">
- <input type='hidden' name='action' value='hold'/>
- <input type='image' src="[% ctx.media_prefix %]/images/kpac/review_submit_btn.png" alt="[% l('Submit') %]"/>
- </div>
- </form>
- </div>
- </td>
-
- <td valign="top">
- <div class="right_brain">
- <div class="top_side">
- <h2>[% l('save it!') %]</h2>
- <p>[% l('If you would like to save this item to a list to be requested later, click Submit below.') %]</p>
- [% IF ctx.user AND ctx.bookbags AND ctx.bookbags.size > 0 %]
- <br/>
- <p>
- [% l('You may also save this item to a list you have already created by selecting one of your lists below.') %]
- </p>
- [% END %]
- </div>
- <form method='POST'>
- <input type='hidden' name='action' value='save'/>
- [% IF ctx.user AND ctx.bookbags AND ctx.bookbags.size > 0 %]
- <div class="checkout_box">
- <div class="box1_top"> </div>
- <div class="box_inside">
- <p>[% l('Add to one of your lists?') %]</p>
- <select name='bookbag'>
- <option value='' selected='selected'>[% l('-- Temporary List --') %]</option>
- [% FOR bbag IN ctx.bookbags %]
- <option value="[% bbag.id %]">[% bbag.name | html %]</option>
- [% END %]
- </select>
- </div>
- </div>
- [% END %]
- <div class="submit_btn">
- <input type='image' src="[% ctx.media_prefix %]/images/kpac/review_submit_btn.png" alt="[% l('Submit') %]" />
- </div>
- </div>
- </div>
- </td>
- </tr>
- </table>
-</div>
-
-<div class="sub_navigation2 checkout">
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- [% # in the absence of a sane referer, return to the detail page
- url = ctx.kpac_root _ (ctx.referer.match('results') ? '/results' : '/record/' _ ctx.bre_id) %]
- <td><a href="[% mkurl(url) %]"><img src="[% ctx.media_prefix %]/images/kpac/cancel_back_btn.png" /></a></td>
- <td width="100%" class="nav_mid_bg"> </td>
- </tr>
- </table>
-</div>
-
-[% END %]
+++ /dev/null
-[% PROCESS "opac/parts/header.tt2";
- PROCESS "kpac/parts/grid.tt2";
- WRAPPER "kpac/parts/subpage.tt2";
- PROCESS "opac/parts/misc_util.tt2"; # MARC
- attrs = {marc_xml => ctx.marc_xml};
- PROCESS get_marc_attrs args=attrs;
- ctx.page_title = l('Get it');
- kill_params = ['list', 'hold', 'hold_failed', 'pickup_lib', 'action'];
- title_html = attrs.title | html;
-%]
-
-
-<div class="checkout_res_body">
- [% IF ctx.added_to_anon %]
- <h2 class="sub_header2">[% l('You Saved It!') %]</h2>
- <p>
- [% |l(title_html) %]
- You successfully saved [_1]. <br/>
- To manage your lists, go to <a href="[% mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) %]">My Lists</a>
- [% END %]
- <p>
- [% ELSIF ctx.added_to_list %]
- [% list_html = ctx.list.name | html %]
- <h2 class="sub_header2">[% l('You Saved It!') %]</h2>
- <p>
- [% |l(title_html, list_html) %]
- You successfully saved [_1] to [_2]. <br/>
- To manage your lists, go to <a href="[% mkurl(ctx.opac_root _ '/myopac/lists', {}, 1) %]">My Lists</a>
- [% END %]
- <p>
- [% ELSIF CGI.param('hold') %]
- [% lib_html = ctx.get_aou(ctx.hold.pickup_lib).name | html %]
- <h2 class="sub_header2">[% l('Hold Successful!') %]</h2>
- <p>
- [% |l(title_html, lib_html) %]
- Your request for <a href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) %]">[_1]</a> was successful.<br/>
- You will be notified when your item is ready for pickup. You will be able to pick your item up at [_2].
- [% END %]
- <p>
- [% ELSE %]
- <p>
- [% |l(title_html) %]
- Unable to request <a href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) %]">[_1]</a>.<br/>
- Please see a librarian.
- [% END %]
- [% END %]
-</div>
-
-<div class="sub_navigation2 checkout">
- <table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
- <td><a href="[% mkurl(ctx.kpac_root _ '/results', {}, kill_params) %]">
- <img src="[% ctx.media_prefix %]/images/kpac/back_to_results_btn.png" /></a></td>
- <td width="100%" class="nav_mid_bg"> </td>
- <td><img src="[% ctx.media_prefix %]/images/kpac/back_to_book.png" /></td>
- <td nowrap="nowrap">
- <a class="checkout_res_back" href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) %]">
- [% title = attrs.title || '';
- IF title.length > 18; title = title.substr(18, title.length, '...'); END;
- l('Back to [_1]', title);
- %]
- </a>
- </td>
- </tr></table>
-</div>
-
-[% END %]
-
+++ /dev/null
-[%
- PROCESS "opac/parts/header.tt2";
- PROCESS "kpac/parts/grid.tt2";
- WRAPPER "kpac/parts/base.tt2";
- ctx.page_title = l("Home")
-%]
-
-<div class="main_top_shadow">
- <div class="main_tl_corner"> </div>
- <div class="main_mid_top"> </div>
- <div class="main_tr_corner"> </div>
- <div class="clear"> </div>
-</div>
-
-<table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- <td width="3" class="main_left_shadow"><div class="clear"> </div></td>
- <td valign="top" class="main_inside_cell" valign="top">
- <div class="search_wrapper">
- <h1>Search your Library</h1>
- <h3>for books, movies, music, magazines, and more!</h3>
- <form action="[% ctx.kpac_root _ '/results' %]">
- [% qtype = CGI.param('qtype') %]
- <table cellpadding="0" cellspacing="0" border="0" align="center" class="search_box_wrapper">
- <tr>
- <td class="st_radio_btn"><input type="radio" name="qtype" value="keyword" id="st_word" class="st_word"
- [% IF !qtype OR qtype == 'keyword' %]checked="checked"[% END %]/></td>
- <td class="st_label"><label for="st_word">[% l('Word') %]</label></td>
-
- <td class="st_radio_btn"><input type="radio" name="qtype" value="title" id="st_title" class="st_title"
- [% IF qtype == 'title' %]checked="checked"[% END %]/></td>
- <td class="st_label"><label for="st_title">[% l('Title') %]</label></td>
-
- <td class="st_radio_btn"><input type="radio" name="qtype" value="author" id="st_author" class="st_author"
- [% IF qtype == 'author' %]checked="checked"[% END %]/></td>
- <td class="st_label st_author_box"><label for="st_author">[% l('Author') %]</label></td>
-
- <td><input type="text" class="search_box" name="query"
- value="[% CGI.param('nosprop') ? '' : CGI.param('query') | html %]"/></td>
- <td><input type="image" src="[% ctx.media_prefix %]/images/kpac/search_btn.png" alt="search" /></td>
- </tr>
- </table>
- </form>
- </div>
- <div class="category_wrapper">
- <h3 class="c_header_image">Or click on an image to get started:</h3>
- [% render_kpac_grid(ctx.kpac_layout.page) %]
- </div>
-
- </td>
- <td width="3" class="main_right_shadow"><div class="clear"> </div></td>
- </tr>
-</table>
-
-<div class="main_bottom_shadow">
- <div class="main_bl_corner"> </div>
- <div class="main_mid_bottom"> </div>
- <div class="main_br_corner"> </div>
- <div class="clear"> </div>
-</div>
-
-[% END %]
-
+++ /dev/null
-[%
- # added content only shows on record detail page
- IF ctx.page == 'record';
-
- # chilifresh
- IF ENV.OILS_CHILIFRESH_URL AND ENV.OILS_CHILIFRESH_ACCOUNT;
- chili_url = ENV.OILS_CHILIFRESH_URL;
- IF CGI.https AND ENV.OILS_CHILIFRESH_HTTPS_URL;
- chili_url = ENV.OILS_CHILIFRESH_HTTPS_URL;
- END %]
- <!-- Set up the chilifresh account information and load the JS -->
- <input type="hidden" id="chilifresh_account" name="chilifresh_account" value="[% ENV.OILS_CHILIFRESH_ACCOUNT %]"/>
- <input type="hidden" id="chilifresh_version" name="chilifresh_version" value="onsite_v1" />
- <input type="hidden" id="chilifresh_type" name="chilifresh_type" value="search" />
- <script type="text/javascript" src="[% chili_url %]"></script>
- <script>try { setTimeout(chili_init, 0); } catch(E) {}</script>
-
- [% END;
-
- # LibraryThing
- IF ENV.OILS_LIBRARYTHING_URL;
- lt_url = ENV.OILS_LIBRARYTHING_URL;
- IF CGI.https AND ENV.OILS_LIBRARYTHING_HTTPS_URL;
- lt_url = ENV.OILS_LIBRARYTHING_HTTPS_URL;
- END %]
-
- <script src="[% lt_url %]" type="text/javascript"></script>
- [% END %]
-[%- END %]
+++ /dev/null
-<a name='addedcontent'></a> <!-- for page focus -->
-<div class='item_detail_extras_tabs'>
-[%-
- # NOTE: enabling all of these types may result in the tabs occupying
- # too much horizontal space to fit within the fixed-width box.
-
- ac_types = {
- reviews => l('Reviews'),
- anotes => l('Author Notes'),
- toc => l('Table of Contents'),
- excerpt => l('Excerpt'),
- summary => l('Summary')
- };
-
- selected_type = CGI.param('ac');
-
- # For each type of added content, render the link if it's known to have
- # content, do not render the link if it's known to not have content. If
- # the content status is unknown, render the link, but hide the link via CSS
- # if dojo is enabled. If dojo is not enabled, render and display the link.
-
- all_hidden = 1;
- FOR type IN ac_types.keys;
- tab_class = '';
- SET tab_class = 'ac_tab_selected' IF type == selected_type;
- '<!-- status = ' _ type _ ' : ' _ ctx.added_content.$type.status _ '-->';
- IF ctx.added_content.$type.status != '2'; # no content
- all_hidden = 0;
- IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown
- tab_class = tab_class _ ' hidden';
- END %]
- <a class="[% tab_class %]" id="ac:[% type %]" href="[% mkurl('', {ac => type}) _ '#addedcontent' %]">[% ac_types.$type %]</a>
- [% END;
- END %]
-
- <div class="clear"> </div>
-</div>
-
-<div style='width:98%; padding:5px;'>
- <div id='ac_content'>
- [%
- IF selected_type;
- content = ctx.added_content.$selected_type.content;
- IF content;
- content;
- ELSE;
- l('No Content Available');
- END;
- END;
- %]
- </div>
-</div>
-
-
+++ /dev/null
-<!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" />
- <link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/default/kpac/style.css" />
- [% IF ctx.authtime %]
- <meta http-equiv="refresh" content="[% ctx.authtime %];[%
- ctx.logout_page _ '?redirect_to=' _ ctx.home_page %]">
- [% END %]
- <title>[% l("Kid's Catalog - [_1]", ctx.page_title) %]</title>
- </head>
- <body>
- <div class="main_center">
- [% INCLUDE 'kpac/parts/header.tt2' %]
- <div class="main_wrapper"> [% content %] </div>
- [% INCLUDE 'kpac/parts/footer.tt2' %]
- </div>
- <script type="text/javascript" src="[% ctx.media_prefix %]/js/ui/default/kpac/functions.js"></script>
- [%- INCLUDE 'kpac/parts/acimport.tt2' %]
- </body>
-</html>
+++ /dev/null
-<div class="breadcrumb">
- [% clear_params = ['action', 'hold', 'pickup_lib', 'ac', 'copy_limit', 'copy_offset', 'list'] %]
-
- <!-- home page -->
- <a href="[% mkurl(ctx.kpac_root _ '/home', {}, ['trail', 'page']) %]"
- class="bread_home"><img alt="[% l('Home') %]"
- src="[% ctx.media_prefix %]/images/kpac/home_icon.png" /></a>
-
- <!-- category trail -->
- [% trail = CGI.param('trail');
- trail = trail ? trail.split('/') : [];
- FOR page_id IN trail;
- page = ctx.kpac_config.pages.page.$page_id %]
- <div class="bread_green_mid"> </div>
- <a href="[% mkurl(ctx.kpac_root _ '/category',
- {trail = trail_splice(page_id)}, clear_params) %]">[% page.name | html %]</a>
- [% END %]
-
- [% IF ctx.page != 'index' AND ctx.page != 'category' %]
-
- <!-- search results -->
- <div class="bread_green_mid"> </div>
- <a href="[% mkurl(ctx.kpac_root _ '/results', {}, clear_params) %]">[% l('search results') | html %]</a>
-
- [% IF ctx.page != 'rresult' %]
-
- <!-- record title -->
- <div class="bread_green_mid"> </div>
- [% tlen = 18; # TODO config?
- title = attrs.title || '';
- IF title.length > tlen;
- title = l('[_1]...', title.substr(0, tlen - 3));
- END;
- # I know there's a way to do this all w/ substr,
- # but it's trying my patience. this works.
- %]
- <a href="[% mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, clear_params) %]">[% title | html %]</a>
-
- <!-- Get it -->
- <div class="bread_green_last"> </div>
- <span class="bread_last">[% l('Get it') %]</span>
- <div class="clear"> </div>
-
- [% END %]
- [% END %]
-</div>
-
+++ /dev/null
-[%-
-FOREACH copy_info IN ctx.copies;
- IF copy_info.call_number_label != '##URI##';
- has_copies = 'true';
- END;
- IF copy_info.part_label != '';
- has_parts = 'true';
- END;
- IF has_parts && has_copies;
- LAST;
- END;
-END;
-%]
-[%- IF has_copies; %]
-<table cellpadding="0" cellspacing="0" border="0" width="100%" class="item_location_table">
- <tbody>
- <tr class="header">
- <td class="location">[% l('Location') %]</td>
- <td class="callnumber">[% l('Call Number') %]</td>
- <td class="shelving_location">[% l('Shelving Location') %]</td>
- <td class="status">[% l('Status') %]</td>
- </tr>
- [%-
- FOR copy_info IN ctx.copies;
- callnum = copy_info.call_number_label;
- NEXT IF callnum == '##URI##';
-
- callnum_prefix = copy_info.call_number_prefix_label;
- IF callnum_prefix != "";
- callnum = callnum_prefix _ " " _ callnum;
- END;
-
- callnum_suffix = copy_info.call_number_suffix_label;
- IF callnum_suffix != "";
- callnum = callnum _ " " _ callnum_suffix;
- END;
- -%]
- <tr>
- <td class="location">[% ctx.get_aou(copy_info.circ_lib).name | html %]</td>
- [%- IF has_parts == 'true' %]
- <td class="callnumber">[% l('[_1] ([_2])', callnum, copy_info.part_label) | html %]</td>
- [% ELSE %]
- <td class="callnumber">[% callnum | html %]</td>
- [%- END %]
- <td class="shelving_location">[% copy_info.copy_location | html %]</td>
- <td class="status">[% copy_info.copy_status | html %]</td>
- </tr>
- [%- END %]
-
- <!-- PAGING -->
-
- <tr>
-
- <td>
- [%- IF ctx.copy_offset > 0;
- new_offset = ctx.copy_offset - ctx.copy_limit;
- IF new_offset < 0; new_offset = 0; END %]
- <a href="[% mkurl('', {copy_offset => new_offset, copy_limit => ctx.copy_limit}) %]">« [%
- l('Previous [_1]', ctx.copy_offset - new_offset) %]</a>
- [%- END %]
- </td>
-
- <td>
- [%- IF ctx.copies.size >= ctx.copy_limit %]
- <a href="[% mkurl('', {copy_offset => ctx.copy_offset + ctx.copy_limit, copy_limit => ctx.copy_limit}) %]">[%
- l('Next [_1]', ctx.copy_limit) %] »</a>
- [%- END %]
- </td>
-
- [%- more_copies_limit = 50 %] [%# TODO: config %]
- <td>
- [%- IF ctx.copy_limit != more_copies_limit AND ctx.copies.size >= ctx.copy_limit %]
- <a href="[% mkurl('', {copy_limit => more_copies_limit, copy_offset => 0}) %]">[% l('Show more copies') %]</a>
- [%- ELSIF ctx.copy_limit == more_copies_limit %]
- <a href="[% mkurl('', {copy_limit => 0, copy_offset => 0}) %]">[% l('Show fewer copies') %]</a>
- [%- END %]
- </td>
- </tr>
- </tbody>
-</table>
-[% END %]
-
+++ /dev/null
-<div class="footer_wrapper">
- <a href="javascript:;">[% l('Contact Us') %]</a>
- <a href="javascript:;">[% l('Site Help') %]</a>
- <a href="javascript:;">[% l('Site Map') %]</a>
- <a href="[% mkurl(ctx.opac_root _ '/home') %]">[% l('Back to Main Catalog') %]</a>
- <div class="clear"> </div>
-</div>
-
+++ /dev/null
-[%
-PROCESS 'kpac/parts/util.tt2';
-
-# Renders a single 'page' grid
-
-MACRO render_kpac_grid(page_id) BLOCK;
- page = ctx.kpac_config.pages.page.$page_id;
- ncols = page.columns || 3; # avoid divide-by-zero
- name = page.name;
- idx = 0 %]
-<table cellpadding="0" cellspacing="0" border="0" class="main_category_table">
- <tr> [%
- width = 100 / ncols;
- FOR cell IN page.cell;
- IF idx == ncols;
- %]</tr><tr>[%
- idx = 0;
- END;
- idx = idx + 1;
-
- IF cell.type == 'topic';
- tpage_id = cell.content;
- topic_page = ctx.kpac_config.pages.page.$tpage_id %]
-
- <td width="[% width %]%"><a href="[% mkurl(ctx.kpac_root _ '/category', {trail => trail_append(tpage_id)}) %]"><img
- src="[% kpac_img_path(topic_page.img) %]" alt="" /><span>[% topic_page.name %]</span></a></td>
-
- [% ELSIF cell.type == 'search'; %]
-
- <td width="[% width %]%"><a href="[%
- mkurl(ctx.kpac_root _ '/results', {query => cell.content, nosprop => 1}, ['page', 'qtype']) %]"><img
- src="[% kpac_img_path(cell.img) %]" alt="" /><span>[% cell.name %]</span></a></td>
-
- [% ELSIF cell.type == 'link'; %]
-
- <td width="[% width %]%"><a href="[% cell.content | html %]"><img
- src="[% kpac_img_path(cell.img) %]" alt="" /><span>[% cell.name %]</span></a></td>
-
- [% END %]
- [% END %]
- </tr>
-</table>
-[% END %]
+++ /dev/null
-<div class="main_header_wrapper">
- <div class="logo_wrapper">
- <a href="http://evergreen-ils.org">
- <span class="logo_left"> </span>
- <span class="logo_middle"><img src="[% ctx.media_prefix %]/images/eg_logo.jpg" width="170" lt="[% l('Logo') %]" /></span>
- <span class="logo_right"> </span>
- </a>
- </div>
- <div class="header_utils">
- <!--
- <a href="javascript:;" class="text_size_btn"><span>Text size</span> <img
- alt="text size" src="[% ctx.media_prefix %]/images/kpac/text_size_btn.png" /></a>
- -->
- <a href="javascript:window.print()" class="print_btn"><span>Print</span> <img
- alt="print" src="[% ctx.media_prefix %]/images/kpac/print_btn.png" /></a>
- </div>
- <div class="header_menu">
- <!-- menu rendered in reverse order -->
- [% IF ctx.user %]
- [% redir = CGI.url('-base' => 1) _ ctx.kpac_root _ '/home' %]
- <a href="[% mkurl(ctx.logout_page,
- {redirect_to => redir.replace('^https:', 'http:')}, 1) %]">[%
- l('Logout ([_1] [_2])', ctx.user.first_given_name, ctx.user.family_name) %]</a>
- [% ELSE %]
- <a href="[% mkurl(ctx.opac_root _ '/login').replace('^http:', 'https:') %]">[% l('Login') %]</a>
- [% END %]
- <a href="javascript:;">[% l('Get a Library Card') %]</a>
- <a href="javascript:;">[% l('Help') %]</a>
- </div>
- <div class="clear"> </div>
-</div>
-
+++ /dev/null
-<div class="popup_wrapper">
- <div class="popup_wrapper_inner" id="[% popup_id %]">
- <table cellpadding="0" cellspacing="0" border="0">
- <tr>
- <td class="popup_tl"><div class="clear"> </div></td>
- <td class="popup_tm"><div class="clear"> </div></td>
- <td class="popup_tr"><div class="clear"> </div></td>
- </tr>
- <tr>
- <td class="popup_lm"><div class="clear"> </div></td>
- <td class="popup_mid"><div class="popup_content">[% content %]</td>
- <td class="popup_rm"><div class="clear"> </div></td>
- </tr>
- <tr>
- <td class="popup_bl"><div class="clear"> </div></td>
- <td class="popup_bm"><div class="clear"> </div></td>
- <td class="popup_br"><div class="clear"> </div></td>
- </tr>
- <tr>
- <td colspan="3" align="center" valign="top">
- <img class="popup_arrow_bm" src="[% ctx.media_prefix %]/images/kpac/popup_arrow_bm.png" />
- </td>
- </tr>
- </table>
- </div>
-</div>
+++ /dev/null
-[% # paging, weeee
- 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);
- 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;
-%]
-
-<table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- <!-- Next -->
- <td>
- [% class = '';
- href = '#';
- IF page > 0;
- href = mkurl('', {page => page - 1});
- ELSE; class = class _ ' invisible'; END %]
- <a class="[% class %]" href="[% href %]"><img src="[% ctx.media_prefix %]/images/kpac/arrow_last.png" /></a>
- </td>
-
- <!-- page X of Y -->
- <td width="100%" class="nav_mid_bg">
- <table cellpadding="0" cellspacing="0" border="0" align="center">
- <tr>
- [% |l(page + 1, page_count) %]
- <td>Page </td><td class="current_page">[_1]</td><td> of </td><td class="total_pages">[_2]</td>
- [% END %]
- </tr>
- </table>
- </td>
-
- <!-- Prev -->
- <td class="to_top_btn">
- [% class = '';
- href = '#';
- IF (page + 1) < page_count;
- href = mkurl('', {page => page + 1});
- ELSE; class = class _ ' invisible'; END;
- %]
- <a class="[% class %]" href="[% href %]"><img src="[% ctx.media_prefix %]/images/kpac/arrow_next.png" /></a>
- </td>
-
- <!-- Top of page -->
- [% IF showtop %]
- <td class="to_top_btn"><a href="[% mkurl('').replace('#.*', '') %]">
- <img src="[% ctx.media_prefix %]/images/kpac/to_top_btn.png" />
- </a></td>
- [% END %]
- </tr>
-</table>
+++ /dev/null
-<div class="search_results">
- <div class="item_detail_image">
- [% img_src = ctx.media_prefix _ '/images/kpac/item_image.jpg'; # default image
- ident = attrs.isbn_clean || attrs.upc;
- IF ident;
- img_src = ctx.media_prefix _ '/opac/extras/ac/jacket/medium/' _ ident;
- END;
- %]
- <a href="[% mkurl(ctx.kpac_root _ '/record/' _ rec_id) %]"><img
- alt="[% l('Image of item') %]" width="167"
- src='[% mkurl(img_src, {}, 1) %]' /></a><br />
- </div>
- <div class="item_detail_info">
- <div class="item_detail_name"><a href="[% mkurl(ctx.kpac_root _ '/record/' _ rec_id) %]">[% attrs.title | html %]</a></div>
- <div class="item_detail_author">[% l('by [_1]', attrs.author) | html %]</div>
- <div class="item_detail_callnumber">[% attrs.holdings.0.label | html %]</div>
- <div class="item_detail_extra_info">
- [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] <!-- TODO fix commas, etc. -->
- [% IF attrs.phys_desc %]<br/>[% attrs.phys_desc | html; END %]
- </div>
- [% IF show_actions %]
- <div class="item_detail_actions">
- <div class="button"><a href="[% mkurl(ctx.kpac_root _ '/record/' _ rec_id) %]"><img
- src="[% ctx.media_prefix %]/images/kpac/more_info_btn.png" alt="more info" /></a></div>
- <div class="button"><a href="[% mkurl(ctx.kpac_root _ '/getit/' _ rec_id) %]"><img
- src="[% ctx.media_prefix %]/images/kpac/get_it_btn_sm.png" alt="get it" /></a></div>
- <div class="clear"> </div>
- </div>
- [% END %]
- </div>
- <div class="item_icon_wrapper">
- <div class="item_icon">
- <img width="35" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
- <!-- put a single around each side of the image - for vertical centering -->
- </div>
- <div class="item_icon_type_text">[% attrs.format_label %]</div>
- </div>
- <div class="clear"> </div>
-</div>
-
+++ /dev/null
-<div class="sub_sidebar_header">[% l('New Search') %]</div>
-<form action="[% ctx.kpac_root _ '/results' %]">
- <div class="sub_sidebar_search_wrapper">
- <input type="text" name='query'
- value="[% CGI.param('nosprop') ? '' : CGI.param('query') | html %]"
- [% seed = l(' Enter Text... ') | html %]
- class="sub_sidebar_search_box" style="color:#aaa;" value="[% seed %]"
- onfocus="if(this.value=='[% seed %]'){this.value='';this.style.color='#424242';}"
- onblur="if(this.value==''){this.value='[% seed %]'; this.style.color='#aaa';}" />
- </div>
- <table cellpadding="0" cellspacing="0" border="0" class="sub_sidebar_search_st">
- <tr>
- [%
- types = [
- {keyword => l('Word')},
- {title => l('Title')},
- {author => l('Author')}
- ];
- FOR qtype_blob IN types;
- qtype = qtype_blob.keys.0 %]
- <td class="st_radio_btn">
- <input type="radio" name="qtype" value="[% qtype %]" id="st_[% qtype %]"
- [% IF (CGI.param('qtype') == qtype) OR
- (!CGI.param('qtype') AND qtype == 'keyword') %]checked="checked"[% END %]/>
- </td>
- <td class="st_label"><label for="st_[% qtype %]">[% qtype_blob.$qtype | html %]</label></td>
- [% IF !loop.last %]
- <td class="st_radio_spacer"><div> </div></td>
- [% END %]
- [% END %]
- </tr>
- </table>
- <div class="hr"> </div>
- <div class="sub_search_category">
- <span>[% ctx.filter_groups.kpac.label %]<span>
- <span>
- [%
- INCLUDE 'opac/parts/filter_group_selector.tt2'
- filter_group='kpac_main'
- class='search_category'
- none_label=l('Full Collection')
- none_ok=1
- %]
- <span>
- </div>
- <div class="hr"> </div>
- <div>
- <input type="image" alt="search" src="[% ctx.media_prefix %]/images/kpac/search_btn_sub.png" />
- </div>
-</form>
-
+++ /dev/null
-[% PROCESS 'kpac/parts/util.tt2'; WRAPPER "kpac/parts/base.tt2" %]
-
-<!-- subpage is the main wrapper page for everything except 'home' -->
-
-<div class="main_top_shadow_sub">
- <div class="main_mid_top_sub">
- [% INCLUDE 'kpac/parts/breadcrumb.tt2' %]
- </div>
-</div>
-<table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- <td width="3" class="main_left_shadow"><div class="clear"> </div></td>
- <td valign="top" class="main_inside_cell" valign="top" height="300">
- <div class="main_content_wrapper">
- [% content %]
- <div class="clear"> </div>
- </div>
- </td>
- <td width="266" valign="top" class="sub_sidebar">
- <div class="sub_sidebar_inner">
- [% INCLUDE 'kpac/parts/searchbox.tt2' %]
- </div>
- </td>
- <td width="3" class="main_right_shadow"><div class="clear"> </div></td>
- </tr>
-</table>
-<div class="main_bottom_shadow"><div class="main_mid_bottom_sub"> </div></div>
-
-[% END %]
-
-
+++ /dev/null
-[%
-
- # -----------------------------------------------------------------
- # Category trail/path utilities
- # page trail looks like trail=id/id/id
-
- # adds an ID, esults in the full trail as a string
- MACRO trail_append(node_id) BLOCK;
- trail = CGI.param('trail');
- trail ? trail _ '/' _ node_id : node_id;
- END;
-
- # last trail component/id as a string
- MACRO trail_endpoint BLOCK;
- trail = CGI.param('trail');
- list = trail ? trail.split('/') : [];
- list().last;
- END;
-
- MACRO trail_splice(page_id) BLOCK;
- trail = CGI.param('trail');
- list = trail ? trail.split('/') : [];
- path = '';
- FOR id IN list;
- path = path ? path _ '/' _ id : id;
- IF id == page_id; LAST; END;
- END;
- path;
- END;
-
- # -----------------------------------------------------------------
- # Determines the full path to image URLs
- # Use absolute and fully-qualified image URLs as-is.
- # For all others, 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;
-%]
-
-
+++ /dev/null
-[%
- PROCESS "opac/parts/header.tt2";
- PROCESS "opac/parts/misc_util.tt2"; # MARC
- WRAPPER "kpac/parts/subpage.tt2";
- attrs = {marc_xml => ctx.marc_xml};
- PROCESS get_marc_attrs args=attrs;
- ctx.page_title = attrs.title | html
-%]
-
-<div class="item_detail_header">
-
- <div class="item_detail_image">
- [% ident = attrs.isbn_clean || attrs.upc;
- href = ctx.media_prefix _ '/images/kpac/item_image.jpg';
- IF ident; href = ctx.media_prefix _ '/opac/extras/ac/jacket/medium/' _ ident; END %]
- <a href="[% href | url %]"><img
- alt="[% l('Image of item') %]" width="167" src='[% href | url %]' /></a><br />
- </div>
-
- <div class="item_detail_info">
- <div class="item_detail_name">[% attrs.title | html %]</div>
- <div class="item_detail_author">[% l('by [_1]', attrs.author) | html %]</div>
- <div class="item_detail_icon_rate">
- <div class="item_icon_wrapper">
- <div class="item_icon">
- <img width="35" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
- <!-- put a single around each side of the image - for vertical centering -->
- </div>
- <div class="item_icon_type_text">[% attrs.format_label %]</div>
- </div>
-
- <div class="item_detail_rate_wrapper">
- <div class="item_detail_rate_starts">
- <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
- <span class="ltfl_reviews"/>
- </div>
- <!--
- <div style="margin-bottom:20px;">
- <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center" width="100%"></div>
- </div>
- -->
-
- <!--
- <div class="item_detail_rate_starts"><img alt="rating" src="[% ctx.media_prefix %]/images/kpac/stars.png" /></div>
- <div class="item_detail_rate_link"><a href="javascript:;">Rate this</a></div>
- <div class="clear"> </div>
- -->
-
- <div class="item_detail_cn_wrapper">
- <div class="item_detail_callnumber">[% attrs.holdings.0.label | html %]</div>
- <div class="item_detail_extra_info">
- [% l('[_1], [_2]', attrs.publisher, attrs.pubdate) | html %] <!-- TODO fix commas, etc. -->
- [% IF attrs.phys_desc %]<br/>[% attrs.phys_desc | html; END %]
- </div>
- </div>
- </div>
- <div class="clear"> </div>
- </div>
- </div>
-
- <div class="item_detail_header_buttons">
- <div class="item_detail_getit_btn"><a href="[% mkurl(ctx.kpac_root _ '/getit/' _ ctx.bre_id) %]"><img
- alt="[% l('Get it') | html %]" src="[% ctx.media_prefix %]/images/kpac/get_it_btn.png" /></a>
- </div>
- <div class="item_detail_goback_btn">
- <a href="[% mkurl(ctx.kpac_root _ '/results') %]"><img
- alt="[% l('Go Back') | html %]" src="[% ctx.media_prefix %]/images/kpac/go_back_btn.png" /></a>
- </div>
- </div>
- <div class="clear"> </div>
-</div>
-
-<div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center" width="100%"></div>
-
-<div class="sub_header">[% l('You can find this item at these locations:') %]</div>
- <div class="item_detail_location_wrapper">
- [% INCLUDE 'kpac/parts/copy_table.tt2' %]
- </div>
-
- [% IF attrs.summary %]
- <div class="sub_header">[% l('About this item:') %]</div>
- <div class="item_detail_desc">
- [% FOR sum IN attrs.summary %]
- [% IF !loop.first; '<br/>'; END %]
- <p>[% sum | html %] </p>
- [% END %]
- </div>
- [% END %]
-
- [% INCLUDE 'kpac/parts/addedcontent.tt2' %]
-</div>
-
-[% END %]
+++ /dev/null
-[% 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') %]
-
-<h2 class="sub_header2">Search Results</h2>
-
-[% IF ctx.records.size == 0 %]
-
- <br/>
- <div style='width:100%; text-align:center'>
- <h3>[% l('No records were found that matched your search.') %]</h3>
- </div>
-
-[% ELSE %]
-
- <div class="sub_navigation2">
- [% INCLUDE 'kpac/parts/paginate.tt2' %]
- </div>
-
- <div id="search_results_parent"> [%
- FOR rec IN ctx.records;
- attrs = {marc_xml => rec.marc_xml};
- PROCESS get_marc_attrs args=attrs;
- INCLUDE 'kpac/parts/record_row.tt2' show_actions=1 rec_id=rec.id;
- END;
- %] </div>
-
- <div class="sub_navigation3">
- [% INCLUDE 'kpac/parts/paginate.tt2' showtop=1 %]
- </div>
-
-[% END %]
-
-[% END %]