Merge remote branch 'working/user/shadowspar/ttopac-altcleanup' into template-toolkit...
authorBill Erickson <berick@esilibrary.com>
Wed, 3 Aug 2011 14:51:52 +0000 (10:51 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 3 Aug 2011 14:51:52 +0000 (10:51 -0400)
1  2 
Open-ILS/src/templates/default/opac/parts/printnav.tt2
Open-ILS/src/templates/default/opac/parts/record/summary.tt2
Open-ILS/src/templates/default/opac/parts/result/table.tt2
Open-ILS/src/templates/default/opac/parts/searchbar.tt2

index 580c0d6,0000000..d0f0a41
mode 100644,000000..100644
--- /dev/null
@@@ -1,25 -1,0 +1,25 @@@
-             <img src="[% ctx.media_prefix %]/images/utils-corner-left.png" class="float-left" />
 +<div class="big-block">
 +    <div class="float-right">
 +        <div class="pos-rel">
-             <img src="[% ctx.media_prefix %]/images/utils-corner-right.png" class="float-left" />
++            <img src="[% ctx.media_prefix %]/images/utils-corner-left.png" class="float-left" alt="" />
 +            <div class="left-corner"> 
 +                <a href="javascript:history.go(-1)"
 +                    id="util_back_btn"><img alt="[% l('Back') %]"
 +                    src="[% ctx.media_prefix %]/images/tool_back.png" /></a>
 +                <a href="[% ctx.opac_root %]/home"
 +                    id="util_home_btn"><img alt="[% l('Homepage') %]"
 +                    src="[% ctx.media_prefix %]/images/tool_home.png" /></a>
 +                <a href="javascript:window.print();"
 +                    id="util_print_btn"><img alt="[% l('Print Page') %]"
 +                    src="[% ctx.media_prefix %]/images/tool_print.png" /></a>
 +                <a href="http://open-ils.org/dokuwiki/doku.php?id=evergreen-user:opac_help"
 +                    id="util_help_btn"><img alt="[% l('Help') %]"
 +                    src="[% ctx.media_prefix %]/images/tool_help.png" /></a>
 +                <a href="javascript:history.go(+1)"
 +                    id="util_forw_btn"><img alt="[% l('Forward') %]"
 +                    src="[% ctx.media_prefix %]/images/tool_forward.png" /></a>
 +            </div>
++            <img src="[% ctx.media_prefix %]/images/utils-corner-right.png" class="float-left" alt="" />
 +        </div>
 +    </div>
 +</div>
index 52f5fde,0000000..d97f0fd
mode 100644,000000..100644
--- /dev/null
@@@ -1,294 -1,0 +1,288 @@@
-                             <div style="width:230px;text-align:left;margin-top:3px;">
 +[%  PROCESS "default/opac/parts/misc_util.tt2";
 +    USE ResolverResolver;
 +    ctx.page_title = attrs.title | html_entity
 +%]
 +<!-- ****************** rdetail_summary.xml ***************************** -->
 +<abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% ctx.bre_id %]'></abbr>
 +
 +[% IF ctx.refworks.enable == 'true' %]
 +    [% INCLUDE 'default/opac/parts/record/refworks.tt2' %]
 +[% END %]
 +
 +<!-- This holds the record summary information -->
 +
 +<table width="100%" border="0" cellpadding="0" cellspacing="0" id="rdetail_details_table">
 +    <tbody id="rdetail_details_tbody">
 +        <tr>
 +            <td width="90" valign="top" id="rdetail_image_cell">
 +                [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
 +                <a id='rdetail_img_link' href='[% ctx.media_prefix %]/opac/extras/ac/jacket/large/[% ident %]'><img
 +                    alt="[% l('Image of item') %]" id='rdetail_image'
 +                    src='[% ctx.media_prefix %]/opac/extras/ac/jacket/medium/[% ident %]' /></a>
 +                [% END %]
 +                <br />
 +            </td>
 +    
 +            <td valign="top">
 +                <table border="0" cellpadding="0" cellspacing="0" width="100%">
 +                    <tr>
 +                        <td valign="top">
 +                            <span id='rdetail_title'>[% attrs.title %]</span><br />
 +                            [% IF attrs.author %]
 +                            <span class='opac-auto-030'>[% l("Author") %]:</span>
 +                            <em><a title='[% l("Perform an author search") %]'
 +                                    id='rdetail_author'
 +                                    href="[% ctx.opac_root %]/results?qtype=author&amp;query=[%-
 +                                        attrs.author | replace('[,\.:;]', '') | uri %]&amp;loc=[% CGI.param('loc') | uri %]">[% attrs.author %]</a></em>
 +                            [% END %]
 +                        </td>
 +                        <td align="right" valign="top" nowrap="nowrap" style="white-space:nowrap;">
-                                             src="[% ctx.media_prefix %]/images/green_check.png" alt="[% l('place hold') %]" /><span 
++                            <div style="width:280px;text-align:left;margin-top:3px;">
 +                                <div style="float:right;">
 +                                    <div class="rdetail_aux_utils opac-auto-010">
 +                                        <a href="[% ctx.opac_root %]/place_hold[%-
 +                                            propagator; propagator.length > 1 ? "&amp;" : ""; %]hold_target=[% ctx.bre_id %]&amp;hold_type=T" id="rdetail_place_hold" class="no-dec"><img
-                                         <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
-                                             <input type="hidden" name="record" value="[% ctx.bre_id %]" />
-                                             <div class="pos-abs">
-                                                 <div class="opac-auto-149">
-                                                     <input type="submit" title="[% label %]" value="[% label %]" class="subtle-button" />
-                                                 </div>
-                                             </div>
-                                             <input type="image" alt="[% label %]"
-                                                 src="[% ctx.media_prefix %]/images/clipboard.png" />
-                                         </form>
++                                            src="[% ctx.media_prefix %]/images/green_check.png" alt="" /><span 
 +                                                style="position:relative;top:-3px;left:3px;">[% l('Place Hold') %]</span></a>
 +                                    </div>
 +                                    <div class="rdetail_aux_utils opac-auto-121">
 +                                        [%  
 +                                            operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
 +                                            label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); 
 +                                        %]
++                                        <a href="[% ctx.opac_root %]/mylist/[% operation %]?record=[% ctx.bre_id %]" class="no-dec">
++                                            <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
++                                            [% label %]
++                                        </a>
 +                                    </div>
 +                                </div>
 +                                <div style="float:right;margin-right:17px;">
 +                                    [% IF attrs.format_icon %]
 +                                    <img alt="[% attrs.format_label %]" title="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
 +                                    [% END %]
 +                                </div>
 +                            </div>
 +                        </td>
 +                    </tr>
 +                </table>
 +                <div class='opac-auto-018'>
 +                    <table border="0" cellpadding="0" width="100%">
 +                        <tr>
 +                            <td nowrap='nowrap' valign="top">
 +                                [% IF attrs.isbn %]<strong id="rdetail_isbn_lbl">[% l("ISBN") %]</strong>[% END %]
 +                            </td>
 +                            <td valign="top" id='rdetail_isbn'>[% attrs.isbn %]</td>
 +                            <td nowrap='nowrap' valign="top">
 +                                [% IF attrs.phys_desc %]<strong id="rdetail_phys_lbl">[% l("Physical Description") %]</strong>[% END %]
 +                            </td>
 +                            <td valign="top" id='rdetail_physical_desc'>[% attrs.phys_desc %]</td>
 +                        </tr>
 +                        [% IF openurl.enabled == 'true';
 +                            FOR issn IN args.issns;
 +                                sfx = ResolverResolver.resolve_issn(issn, openurl.baseurl);
 +                                FOR res IN sfx;
 +                        %]
 +                            <tr name="results_issn_tr">
 +                                <td valign="top">
 +                                    <strong><a href="[% res.target_url %]">
 +                                        [% res.public_name %]</a></strong>
 +                                </td>
 +                                <td>[% res.target_coverage %]</td>
 +                            </tr>
 +                                [% END %]
 +                            [% END %]
 +                        [% END %]
 +                        <tr>
 +                            <td nowrap='nowrap' valign="top">
 +                                <strong id="rdetail_ed_lbl">[% IF attrs.edition; l("Edition"); END %]</strong>
 +                            </td>
 +                            <td valign="top" id='rdetail_edition'>[% attrs.edition %]</td>
 +                        </tr>
 +                        <tr>
 +                            <td nowrap='nowrap' valign="top">
 +                                <strong id="rdetail_pub_lbl">[% IF attrs.publisher; l("Publisher"); END %]</strong>
 +                            </td>
 +                            <td valign="top" id='rdetail_publisher'>[% attrs.publisher %]</td>
 +                            <td nowrap='nowrap' valign="top">
 +                                <strong id="rdetail_pubdate_lbl">[% IF attrs.pubdate; l("Publication Date"); END %]</strong>
 +                            </td>
 +                            <td valign="top" id='rdetail_pubdate'>[% attrs.pubdate %]</td>
 +                        </tr>
 +                    </table>
 +
 +                    <!-- hold/copy summary -->
 +                    <div style="padding-top:15px;">
 +                        <div>
 +                            [% l("[quant,_1,Hold,Holds] with [quant,_2,total copy,total copies]", 
 +                                ctx.record_hold_count, ctx.copy_summary.0.count) %]
 +                        </div>
 +                        <div>[% l('[quant,_1,Copy,Copies] available', ctx.copy_summary.0.available) %]</div>
 +                    </div>
 +
 +                </div>
 +            </td>
 +        </tr>
 +    </tbody>
 +</table>
 +<br />
 +
 +[% FOR uri IN args.uris %]
 +<div class="rdetail_uri">
 +    <a href="[% uri.href %]">[% uri.link %]</a>[% ' - ' _ uri.note IF uri.note %]
 +</div>
 +[% END %]
 +
 +<br />
 +
 +<table cellpadding="0" cellspacing="0" border="0" width="100%" id="rdetails_status">
 +    <thead>
 +        <tr id="rdetails_status_head">
 +            <td>[% l("Location") %]</td>
 +            <td>[% l("Call Number") %]</td>
 +            <td>[% l("Barcode") %]</td>
 +            <td>[% l("Shelving Location") %]</td>
 +            [% IF ctx.is_staff %]
 +            <td>[% l("Age Hold Protection") %]</td>
 +            <td>[% l("Create Date") %]</td>
 +            <td>[% l("Holdable?") %]</td>
 +            [% END %]
 +            <td>[% l("Status") %]</td>
 +            <td>[% l("Due Date") %]</td>
 +        </tr>
 +    </thead>
 +    <tbody class="copy_details_table">
 +        [% last_cn = 0;
 +        FOR copy_info IN ctx.copies;
 +            NEXT IF copy_info.call_number_label == '##URI##' %]
 +        <tr>
 +            <td>[%
 +                # XXX KCLS-specific kludging
 +                org_name = ctx.get_aou(copy_info.circ_lib).name;
 +                dir = org_name | lower | replace('[^\w]', '') |
 +                    replace('.+320th', '320th'); %]
 +                <a href="http://www.kcls.org/[% dir %]/"
 +                    class="classic_link">[% org_name %]</a>
 +            </td>
 +            <td>[% copy_info.call_number_label %]</td>
 +            <td>[% copy_info.barcode %]</td>
 +            <td>[% copy_info.copy_location %]</td>
 +            [% IF ctx.is_staff %]
 +            <td>
 +                [% copy_info.age_protect ?
 +                    ctx.get_crahp(copy_info.age_protect).name : l('None') %]
 +            </td>
 +            <td>[% date.format(
 +                ctx.parse_datetime(copy_info.create_date),
 +                DATE_FORMAT
 +            ) %]</td>
 +            <td>[%  # Show copy/volume hold links to staff (without
 +                    # checking whether they have permissions to do those).
 +                    overall_holdable = (copy_info.holdable == 't' AND
 +                        copy_info.location_holdable == 't' AND
 +                        copy_info.status_holdable == 't');
 +                    IF overall_holdable;
 +                        l("Place on"); %]
 +                <a href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&amp;" : ""; %]hold_target=[% copy_info.id %]&amp;hold_type=C">[% l("copy") %]</a>
 +                [%      IF copy_info.call_number != last_cn;
 +                            last_cn = copy_info.call_number;
 +                            l(" / "); %]
 +                <a href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&amp;" : ""; %]hold_target=[% copy_info.call_number %]&amp;hold_type=V">[% l("volume") %]</a>
 +                [%      END;
 +                    ELSE;
 +                        l("No");
 +                    END %]</td>
 +            [% END %]
 +            <td>[% copy_info.copy_status %]</td>
 +            <td>[%
 +                IF copy_info.due_date;
 +                    date.format(
 +                        ctx.parse_datetime(copy_info.due_date),
 +                        DATE_FORMAT
 +                    );
 +                ELSE;
 +                    '-';
 +                END %]</td>
 +        </tr>
 +        [% END %]
 +        <tr>
 +        [% IF ctx.copy_offset > 0;
 +            new_offset = ctx.copy_offset - ctx.copy_limit;
 +            IF new_offset < 0; new_offset = 0; END %]
 +            <td>
 +                <a href="[% ctx.opac_root %]/record/[% ctx.bre_id %]?copy_offset=[% new_offset %]&amp;copy_limit=[% ctx.copy_limit %]">&laquo; [%
 +                    l('Previous [_1]', ctx.copy_offset - new_offset)
 +                %]</a>
 +            </td>
 +        [% END %]
 +        [% IF ctx.copies.size >= ctx.copy_limit %]
 +            <td>
 +                <a href="[% ctx.opac_root %]/record/[% ctx.bre_id %]?copy_offset=[% ctx.copy_offset + ctx.copy_limit %]&amp;copy_limit=[% ctx.copy_limit %]">[%
 +                    l('Next [_1]', ctx.copy_limit)
 +                %] &raquo;</a>
 +            </td>
 +        [% END %]
 +        </tr>
 +    </tbody>
 +</table>
 +
 +<div id="rdetail_locs_expand" class="hide_me">
 +    <a href="#"><img
 +        src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
 +    <a style="position:relative;top:-3px;" href="#">[% l('Show more locations') %]</a>
 +</div>
 +
 +<div id="rdetail_locs_collapse" class="hide_me">
 +    <a href="#"><img
 +        src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
 +    <a style="position:relative;top:-3px;" href="#">[% l('Collapse locations') %]</a>
 +</div>
 +
 +<div id="rdetail_extras_expand" class="hide_me">
 +    <a href="#"><img
 +        src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
 +    <a style="position:relative;top:-3px;" href="#">[% l('Expand all tabs') %]</a>
 +</div>
 +
 +<div id="rdetail_extras_collapse" class="hide_me">
 +    <a href="#"><img src="[% ctx.media_prefix %]/images/plus_sign.png" /></a>
 +    <a style="position:relative;top:-3px;" href="#">[% l('Collapse all tabs') %]</a>
 +</div>
 +
 +<div class="hide_me">
 +    <table id='' border="0" width="100%">
 +        <tbody id='rdetail_details_tbody'>
 +            <tr>
 +                <td id='' rowspan='2' valign="top" align="center" style="padding-right:10px;">
 +                </td>
 +                <td class='rdetail_desc' valign="top" colspan="3">
 +                    <table border="0" width="100%">
 +                        <tr>
 +                            <td valign="top">
 +                                <div style="padding-bottom:7px;">
 +                                    <strong>[% l("Title") %]:</strong>
 +                                </div>
 +                            </td>
 +                            <td width="1" valign="top" align="right" style="white-space:nowrap;">
 +                                <a href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&amp;" : ""; %]hold_target=[% ctx.bre_id %]&amp;hold_type=T"><img alt="[% l('Place Hold') %]"
 +                                    src="[% ctx.media_prefix %]/images/place_hold.gif" /></a>
 +                                <a href="#" id="rd_reviews_and_more" target="_blank"><img
 +                                    alt="[% l('Reviews and More') %]" src="[% ctx.media_prefix %]/images/reviews.gif" /></a>
 +                                <a href="#" id=""><img alt="[% l('Add to My List') %]"
 +                                    src="[% ctx.media_prefix %]/images/add_mylist.gif" /></a>
 +                            </td>
 +                        </tr>
 +                    </table>
 +                </td>        
 +            </tr>
 +            <tr>
 +                <td nowrap='nowrap' colspan="3" valign="bottom" style="padding-bottom:16px;">
 +                </td>
 +            </tr>
 +            <tr>
 +                <td><div style="height:20px;"></div></td>
 +            </tr>
 +        </tbody>
 +    </table>
 +</div> <!-- details_body -->
 +
 +<!-- ****************** end: rdetail_summary.xml ***************************** -->
index 580fefd,0000000..4c8898f
mode 100644,000000..100644
--- /dev/null
@@@ -1,287 -1,0 +1,282 @@@
-                                                                 alt="[% l('Place hold') %]"/><span style="position:relative;top:-3px;left:3px;">[% l('Place Hold') %]</span></a>
 +[%  PROCESS "default/opac/parts/misc_util.tt2";
 +
 +    USE ResolverResolver;
 +
 +    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;
 +%]
 +
 +<div style="height: 10px;"></div>
 +[% BLOCK results_count_header %]
 +<div class="results_header_nav1">
 +    <table cellpadding="0" cellspacing="0" border="0" width="100%">
 +        <tr>
 +            <td class="h1" width="116">[% l('Search Results') %]</td>
 +            <td valign="bottom" nowrap="nowrap" class="result_number">
 +                [% |l(ctx.result_start, ctx.result_stop, ctx.hit_count) %]
 +                Results <strong>[_1]</strong> - <strong>[_2]</strong> of <strong>[_3]</strong>
 +                [% END %]
 +                <span style='padding-left: 6px;'>
 +                    [% |l(page + 1, page_count) %](page <strong>[_1]</strong> of <strong>[_2]</strong>)[% END %]
 +                </span>
 +            </td>
 +            <td align="right" valign="bottom">
 +                <span class='start_end_links_span'>
 +                    [%  class = 'search_page_nav_link';
 +                        href = '#';
 +                        IF page > 0;
 +                            href = propagator _ '&amp;page=' _ (page - 1);
 +                        ELSE; class = class _ ' invisible'; END;
 +                    %]
 +                    <a class='[% class %]' href='[% href %]' 
 +                        title='[% l("Previous page") %]'><span class="nav_arrow_fix">&#9668;</span> [% l('Previous') %] </a>
 +                    <span class='hide_me'
 +                        style='padding-left: 11px; padding-right:11px;'>
 +                        <span></span>
 +                    </span>
 +                    [%  class = 'search_page_nav_link';
 +                        href = '#';
 +                        IF (page + 1) < page_count;
 +                            href = propagator _ '&amp;page=' _ (page + 1);
 +                        ELSE; class = class _ ' invisible'; END;
 +                    %]
 +                    <a class='[% class %]' href='[% href %]' 
 +                        title='[% l("Next page") %]'> [% l('Next') %] <span class="nav_arrow_fix">&#9658;</span></a>
 +                </span>
 +            </td>
 +        </tr>
 +    </table>
 +</div>
 +[% END %]
 +[% ctx.results_count_header = PROCESS results_count_header;
 +    ctx.results_count_header %]
 +<div id="result_table_div">
 +    <table cellpadding="0" cellspacing="0" border="0" width="100%">
 +        <tr>
 +            <td valign="top" width="1" style="padding-right:20px;">
 +                <div style="width:174px;" class="hide_me" id="tehSideBar">SIDEBAR TODO
 +                </div>
 +            </td>
 +            <td class='opac-auto-015' width="1"></td>
 +            <td valign="top">
 +                <table id="res_table" cellpadding="0" cellspacing="0"
 +                    border="0" width="100%" style="margin-top:10px;">
 +                    <tbody id="result_table">
 +                    [%  FOR rec IN ctx.records;
 +                            attrs = {marc_xml => rec.marc_xml};
 +                            PROCESS get_marc_attrs args=attrs %]
 +                        <tr>
 +                            <td class='result_table_row' align='left' width='100%'>
 +                                <table cellpadding="0" cellspacing="0" class='result_table_subtable'>
 +                                    <tbody class='result_table_subtbody'>
 +                                        <tr name='counts_row'>
 +                                            <td width="58" valign="top"
 +                                                style="font-weight:bold;padding-left:10px;"
 +                                                name="results_row_count">[%
 +                                                    result_count; result_count = result_count + 1
 +                                                %].</td>
 +                                            <td class='result_table_pic_header' align='center'
 +                                                width="78" nowrap="nowrap" valign="top">
 +                                                [% ident = attrs.isbn_clean || attrs.upc; IF ident; %]
 +                                                <a href="[% ctx.opac_root %]/record/[% rec.id _ propagator %]"><img alt="[% l('Image of item') %]"
 +                                                        name='item_jacket' class='result_table_pic' width="55"
 +                                                        src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/[% ident %]' /></a><br />
 +                                                [% END %]
 +                                            </td>
 +                                            <td class='result_table_title_cell'
 +                                                name='result_table_title_cell'
 +                                                valign="top">
 +                                                <div class="bold">
 +                                                    <a title="[% attrs.title %]" name='item_title'
 +                                                        href="[% ctx.opac_root %]/record/[% rec.id _ propagator %]"
 +                                                        class='search_link'>[% attrs.title %]</a>
 +                                                </div>
 +                                                <div style="font-size:11px;">
 +                                                    <div>
 +                                                        <em><a title="[% l("Perform an Author Search") %]"
 +                                                                name='item_author'
 +                                                                href="[% ctx.opac_root %]/results?qtype=author&amp;query=[% 
 +                                                                    attrs.author | replace('[,\.:;]', '') | uri %]&amp;loc=[% CGI.param('loc') | uri %]"
 +                                                                class='search_link'>[% attrs.author %]</a></em>
 +                                                        &nbsp;&nbsp;
 +                                                        [% attrs.pubdate %]
 +                                                    </div>
 +                                                    <table cellpadding="0" cellspacing="0" border="0"
 +                                                        class="results_info_table">
 +                                                    [% IF attrs.publisher %]
 +                                                        <tr name="results_pub_tr">
 +                                                            <td valign="top">
 +                                                                <strong>[% l('Publisher:') %]</strong>
 +                                                            </td>
 +                                                            <td>[% attrs.publisher; %]</td>
 +                                                        </tr>
 +                                                    [% END %]
 +                                                    [% IF attrs.isbn %]
 +                                                        <tr name="results_isbn_tr">
 +                                                            <td valign="top">
 +                                                                <strong>[% l('ISBN:') %]</strong>
 +                                                            </td>
 +                                                            <td>[% attrs.isbn %]</td>
 +                                                        </tr>
 +                                                    [% END %]
 +                                                        [% IF openurl.enabled == 'true';
 +                                                            FOR issn IN args.issns;
 +                                                                sfx = ResolverResolver.resolve_issn(issn, openurl.baseurl);
 +                                                                FOR res IN sfx;
 +                                                        %]
 +                                                        <tr name="results_issn_tr">
 +                                                            <td valign="top">
 +                                                                <strong><a href="[% res.target_url %]">
 +                                                                [% res.public_name %]</a></strong>
 +                                                            </td>
 +                                                            <td>[% res.target_coverage %]</td>
 +                                                        </tr>
 +                                                                [% END %]
 +                                                            [% END %]
 +                                                        [% END %]
 +
 +                                                    [% IF attrs.edition %]
 +                                                        <tr name="results_edition_tr">
 +                                                            <td valign="top">
 +                                                                <strong>[% l('Edition:') %]</strong>
 +                                                            </td>
 +                                                            <td>[% attrs.edition %]</td>
 +                                                        </tr>
 +                                                    [% END %]
 +                                                    [% IF attrs.phys_desc %]
 +                                                        <tr name="results_phys_desc_tr">
 +                                                            <td nowrap="nowrap" valign="top">
 +                                                                <strong>[% l('Phys. Desc.:') %]</strong>
 +                                                            </td>
 +                                                            <td>
 +                                                                [% args.phys_desc %]
 +                                                            </td>
 +                                                        </tr>
 +                                                    [% END %]
 +                                                        [% FOR uri IN args.uris %]
 +                                                        <tr name='bib_uri_list' class='result_table_title_cell'>
 +                                                            <td valign='top'>
 +                                                                <strong>[% l('Electronic resource') %]</strong>
 +                                                            </td>
 +                                                            <td><a href="[% uri.href %]">[% uri.link %]</a>[% ' - ' _ uri.note IF uri.note %]</td>
 +                                                        </tr>
 +                                                        [% END %]
 +                                                        [% IF args.holdings.size > 0 %]
 +                                                        <tr name='bib_cn_list' class='result_table_title_cell'>
 +                                                            <td colspan='2'>
 +                                                                <table class='result_holdings_table'>
 +                                                                    <thead><tr>
 +                                                                        <th>[% l('Library') %]</th>
 +                                                                        <th>[% l('Shelving location') %]</th>
 +                                                                        <th>[% l('Call number') %]</th>
 +                                                                        <th>[% l('Status') %]</th>
 +                                                                    </tr></thead>
 +                                                                    <tbody>
 +                                                            [% FOR copy IN args.holdings %]
 +                                                                    <tr>
 +                                                                        <td>[% copy.library %]</td>
 +                                                                        <td>[% copy.location %]</td>
 +                                                                        <td>[% copy.label %]</td>
 +                                                                        <td>[% copy.status %]</td>
 +                                                                    </tr>
 +                                                            [% END %]
 +                                                                    </tbody>
 +                                                                </table>
 +                                                            </td>
 +                                                        </tr>
 +                                                        [% END %]
 +                                                    </table>
 +                                                    <div>
 +                                                        [% l('[_1] of [quant,_2,copy,copies] available',
 +                                                            attrs.copy_counts.available, attrs.copy_counts.count) # XXX s/count/nshadow/ ?
 +                                                            #rec.copy_counts.available, rec.copy_counts.visible) 
 +                                                        %]
 +                                                    </div>
 +                                                </div>
 +                                                <div class="hide_me">
 +                                                    <span name='result_table_extra_span' class='hide_me'>
 +                                                        <span name='result_table_pub_box'
 +                                                            style='padding-left: 10px;'>
 +                                                            <span name='result_table_edition_span'
 +                                                                style='padding-left: 10px;'></span> |
 +                                                            <span name='result_table_pub_span'> </span> |
 +                                                            <span name='result_table_phys_span'> </span>
 +                                                        </span>
 +                                                    </span>
 +                                                </div>
 +                                            </td>
 +
 +                                            <td name='result_table_format_cell' class='result_table_format_cell' width="1">
 +
 +                                                [% IF attrs.format_icon %]
 +                                                <img title="[% attrs.format_label %]" alt="[% attrs.format_label %]" src="[% attrs.format_icon %]" />
 +                                                [% END %]
 +
 +                                                <!-- unAPI link -->
 +                                                <abbr class="unapi-id" title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% rec.id %]'></abbr>
 +
 +                                                <!-- Empty span used for creating Google Book Search-->
 +                                                <span name="googleBooksLink" class="hide_me">
 +                                                    <a style='padding-left: 8px;'
 +                                                        class='classic_link hide_me'
 +                                                        name="googleBooks-link">[% l("Browse in Google Books Search") %]</a>
 +                                                </span>
 +
 +                                            </td>
 +                                            <td nowrap='nowrap' width="1" align="right">
 +                                                <div style="width:250px;text-align:left;">
 +                                                    <div style="float:right;">
 +                                                        <div class="results_aux_utils opac-auto-010"><a
 +                                                                href="[% ctx.opac_root %]/place_hold[% propagator; propagator.length > 1 ? "&amp;" : ""; %]hold_target=[% rec.id %]&amp;hold_type=T" 
 +                                                                    name="place_hold_link" class="no-dec"><img
 +                                                                src="[% ctx.media_prefix %]/images/green_check.png"
-                                                             [%  operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
-                                                                 label = (operation == "add") ? l("Add to") : l("Remove from"); %]
-                                                             <form action="[% ctx.opac_root %]/mylist/[% operation %]" method="POST">
-                                                                 <input type="hidden" name="record" value="[% rec.id %]" />
-                                                             <div style="position:absolute;">
-                                                                 <div style="position:relative;top:5px; left: 25px;">
-                                                                     <input type="submit" title="[% l(label _ ' my list') %]" value="[% l(label _ ' my list') %]" class="subtle-button" />
-                                                                 </div>
-                                                             </div>
-                                                                 <input type="image"
-                                                                 alt="[% l(label _ ' my list') %]"
-                                                                 src="[% ctx.media_prefix %]/images/clipboard.png" />
-                                                         </form>
++                                                                alt=""/><span style="position:relative;top:-3px;left:3px;">[% l('Place Hold') %]</span></a>
 +                                                        </div>
 +                                                        <div class="results_aux_utils opac-auto-011">
++                                                            [%  
++                                                                operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
++                                                                label = (operation == "add") ? l("Add to my list") : l("Remove from my list");
++                                                            %]      
++                                                            <a href="[% ctx.opac_root %]/mylist/[% operation %]?record=[% rec.id %]" class="no-dec">
++                                                                <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
++                                                                [% label %]
++                                                            </a>
 +                                                        </div>
 +                                                        <!-- <div style="padding-top:7px;" class="results_aux_utils">
 +                                                            <a title="Reviews and More" target="_blank" class="no-dec"
 +                                                                name="reviews_and_more" href="javascript:;"><img
 +                                                                alt="[% l('Reviews and more') %]"
 +                                                                src="[% ctx.media_prefix %]/images/starz.png" /> <span
 +                                                                    style="position:relative;top:-5px;">[% l('Reviews and More') %]</span></a>
 +                                                        </div> -->
 +                                                    </div>
 +                                                </div>
 +                                            </td>
 +                                        </tr>
 +                                        <tr>
 +                                            <td/>
 +                                            <td align='center'>
 +                                                <!-- Chilifresh link and reviews panel --> 
 +                                                <div class="chili_review" id="isbn_[% attrs.isbn_clean %]"> </div>
 +                                                <div id="chili_review_[% attrs.isbn_clean %]" style="display: none;" align="center" width="100%"></div>
 +                                            </td>
 +                                        </tr>
 +                                        <tr><td colspan="5"><div style="height:0px;border-top:1px solid #b7b7b7;border-bottom:1px solid #d4d4d4;margin:15px 0px;"></div></td></tr>
 +                                    </tbody>
 +                                </table>
 +                            </td>
 +                        </tr>
 +                    [% END %]
 +                    </tbody>
 +                </table>
 +            </td>
 +        </tr>
 +    </table>
 +</div>
 +<div>
 +    [% ctx.results_count_header %]
 +    <!-- ChiliFresh XXX script TODO -->
 +</div>
index 6f4f01f,0000000..116387f
mode 100644,000000..100644
--- /dev/null
@@@ -1,78 -1,0 +1,78 @@@
-                         <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif' style='height:16px;width:16px;' class='hidden'/>
 +[% PROCESS "default/opac/parts/org_selector.tt2" %]
 +<div id="search-box">    
 +    [% UNLESS took_care_of_form -%]
 +    <form action="[% ctx.opac_root %]/results" method="GET">
 +    [%- END %]
 +    <table cellpadding="0" cellspacing="10" border="0">
 +        <tr>
 +            <td colspan="3">
 +                <span class="search_catalog_lbl">[% l('Search the Catalog') %]</span>
 +                <a href="[% ctx.opac_root %]/advanced"
 +                    id="home_adv_search_link"><span
 +                    class="adv_search_font">[% l('Advanced Search') %]</span></a>
 +            </td>
 +        </tr>
 +        <tr>
 +            [% IF is_advanced || is_special %]
 +            <td colspan="2">
 +                <input type="hidden" name="_adv" value="1" />
 +            [% ELSE %]
 +            <td>
 +            [% INCLUDE "default/opac/parts/qtype_selector.tt2" %]
 +            </td>
 +            [% END %]
 +            [% IF ctx.processed_search_query OR (NOT is_advanced AND NOT is_special) %]
 +            <td>
 +                <div id="search_box_wrapper">
 +                    <!-- Note: when common browsers support HTML5 placeholder text, we can remove the JS -->
 +                    <input type="text" id="search_box" name="query" value="[% is_advanced ? ctx.processed_search_query : CGI.param('query') || l("Search Keyword") | html %]"
 +                        [% IF is_advanced %]style="width: 450px"[% END %]
 +                        onfocus="if (this.value=='[% l("Search Keyword") %]'){this.value='';this.style.color='#000';}"
 +                        onblur="if (this.value==''){this.value='[% l("Search Keyword") %]';this.style.color='#999';}"
 +                        x-webkit-speech />
 +                </div>
 +                <input name='page' type='hidden' value="0" />
 +            </td>
 +            <td valign="top">
 +                <div class="pos-abs">
 +                    <div class="opac-auto-143">
 +                        <input id='search-submit-go' type="image" alt="[% l('Search') %]" src="[% ctx.media_prefix %]/images/go-btn.png"
 +                            onmouseover="this.src='[% ctx.media_prefix %]/images/go-btn-hover.png';"
 +                            onmouseout="this.src='[% ctx.media_prefix %]/images/go-btn.png';" 
 +                            onclick='setTimeout(function(){$("search-submit-spinner").className=""; $("search-submit-go").className="hidden"}, 2000)'/>
++                        <img id='search-submit-spinner' src='/opac/images/progressbar_green.gif' style='height:16px;width:16px;' class='hidden' alt=''/>
 +                    </div>
 +                </div>
 +            </td>
 +            [% END %]
 +        </tr>
 +        [% UNLESS is_advanced OR is_special %]
 +        <tr>
 +            <td>
 +                [% INCLUDE "default/opac/parts/coded_value_selector.tt2" attr=["mattype", "item_type"] none_ok=1 %]
 +            </td>
 +            <td>
 +                <span id='depth_selector_span'>
 +                    [% PROCESS build_org_selector name='loc' value=CGI.param('loc') %]
 +                </span>
 +                <span id='lib_selector_span'>
 +                    <a id='lib_selector_link' class='classic_link'
 +                        href='#'>[% l("Choose a library to search") %]</a>
 +                </span>
 +            </td>
 +        </tr>
 +        [% END %]
 +    </table>
 +    [% UNLESS took_care_of_form %]</form>[% END %]
 +    [% IF (is_advanced AND NOT is_special) AND CGI.param('qtype') %]
 +    <div class="opac-auto-102">
 +        [ <a href="[% ctx.opac_root %]/advanced?[% query_string %]">[%
 +            l('Click to Refine Your Original Search')
 +        %]</a> ]
 +    </div>
 +    [% END %]
 +    <div id="breadcrumb">
 +        <a href="[% ctx.opac_root %]/home">[% l('Catalog Home') %]</a> &gt;
 +    </div>
 +    <div class="clear-both"></div>
 +</div>