-[% BLOCK html_head %]
-<style>
- table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
- table { border-collapse: collapse; }
- table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
- #action_div { width: 95%; }
- .renew-summary { float:left; padding-right: 10px;}
- #action-buttons { float:right; }
- .circ-table-odd { background-color:#ded; }
- .failure-text { font-weight: bold; color: red; }
- #circ-form { margin-top: 20px; }
-</style>
-[% END %]
-
-[% PROCESS "default/opac/common.tt2" %]
-[% WRAPPER "default/opac/base.tt2" %]
-[% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "circs" %]
-
-<form method='POST' id='circ-form'>
- <div id='action_div'>
- [% IF ctx.success_renewals > 0 %]
- <div class='renew-summary'><b>Successfully renewed [% ctx.success_renewals %] items.</b></div>
- [% END %]
- [% IF ctx.failed_renewals > 0 %]
- <div class='renew-summary'><b>Failed to renew [% ctx.failed_renewals %] items.</b></div>
- [% END %]
- <div id='action-buttons'>
- <button type='submit' value='renew' name='action'>Renew Selected</button>
- <button type='submit' value='renew_all' name='action'>Renew All</button>
+[% PROCESS "default/opac/parts/header.tt2";
+ PROCESS "default/opac/parts/marc_misc.tt2";
+ WRAPPER "default/opac/parts/base.tt2" +
+ "default/opac/parts/myopac/base.tt2";
+ myopac_page = "circs" %]
+<div id='myopac_checked_div' style="padding:0px;">
+ <div id="acct_checked_tabs" style="padding-bottom: 12px;color:#666;" class="hide_me">
+ <div class="align selected" id="checked_label">
+ <img src="[% ctx.media_prefix %]/images/sub_checked_out_on.jpg" />
+ </div>
+ <div class="align" id="checked_hist_link">
+ <a class="" href="#"><img
+ src="[% ctx.media_prefix %]/images/sub_checked_hist_off.jpg" /></a>
+ </div>
+ <div class="align hide_me" id="checked_link">
+ <a href="#">
+ <img src="[% ctx.media_prefix %]/images/sub_checked_out_off.jpg" />
+ </a>
</div>
+ <div class="align selected hide_me" id="checked_hist_label">
+ <img src="[% ctx.media_prefix %]/images/sub_checked_hist_on.jpg" />
+ </div>
+ <div class="clear-both"></div>
+ </div>
+
+ <div class="header_middle">
+ <span class="float-left">[% l('Current Items Checked Out') %]</span>
+ <span class="float-right">
+ <a class="hide_me" href="#">[% l('Export List') %]</a>
+ </span>
+ </div>
+ <div class="clear-both"></div>
+ [% IF ctx.circs.size < 1 %]
+ <div class="opac-auto-079">
+ <big><strong>[% l('You have no items checked out.') %]</strong></big>
</div>
- <table>
- <thead>
+ [% ELSE %]
+ [% IF ctx.success_renewals %]
+ <div class="renew-summary">
+ [% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %]
+ </div>
+ [% END %]
+ [% IF ctx.failed_renewals %]
+ <div class="renew-summary red">
+ [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
+ </div>
+ [% END %]
+ <div id='checked_main'>
+ <form method="POST" id="circ-form"
+ onsubmit="return confirm('[% l("Are you sure you wish to renew the selected item(s)?") %]');">
+ <table cellpadding='0' cellspacing='0' class="opac-auto-097b">
<tr>
- <th>Title</th>
- <th>Author</th>
- <th>Due Date</th>
- <th>Renewals Remaining</th>
- <th>Select</th>
+ <td>
+ <select name="action">
+ <option value="renew">[% l('Renew Selected Titles') %]</option>
+ </select>
+ </td>
+ <td style="padding-left:9px;">
+ <input type="image"
+ alt="[% l('Go') %]" title="[% l('Go') %]"
+ src="[% ctx.media_prefix %]/images/go-btn.png" /></a>
+ </td>
+ <td style="padding-left:5px;">
+ <a href="#"><img alt="Renewing Help"
+ src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
+ </td>
</tr>
- </thead>
- <tbody>
- [% FOR circ IN ctx.circs %]
- [% attrs = {marc_xml => circ.marc_xml}; %]
- [% PROCESS get_marc_attrs args=attrs; %]
-
- <tr [% IF loop.count % 2 == 1 %] class='circ-table-odd' [% END %]>
- <td><a href='../record/[% circ.circ.target_copy.call_number.record.id %]'>[% attrs.title %]</a></td>
- <td><a href='../results?query=au:[% attrs.author | url %]'>[% attrs.author %]</a></td>
- <td>[% date.format(ctx.parse_datetime(circ.circ.due_date),'%Y-%m-%d') %]</td>
- <td><em>[% circ.circ.renewal_remaining %]</em></td>
- <td><input name='circ' value='[% circ.circ.id %]' type='checkbox'
- [% IF circ.circ.renewal_remaining < 1 %] disabled='disabled' [% END %]/></td>
- </tr>
-
- [% IF circ.renewal_response and circ.renewal_response.textcode != 'SUCCESS' %]
- <tr [% IF loop.count % 2 == 1 %] class='circ-table-odd' [% END %]>
- <td colspan='0'>
- <div class='failure-text'>
- [% circ.renewal_response.textcode %]
- [% IF circ.renewal_response.payload.fail_part and circ.renewal_response.payload.fail_part != circ.renewal_response.textcode %]
- [% circ.renewal_response.payload.fail_part %]
+ </table>
+ <table id="acct_checked_main_header" cellpadding='0' cellspacing='0'
+ border='0'>
+ <tr>
+ <td width="1%" style="padding-left:10px;">
+ <input type="checkbox" id="check_all_checked"
+ onclick="var inputs=document.getElementsByTagName('input'); for (i = 0; i < inputs.length; i++) { if (inputs[i].name == 'circ' && !inputs[i].disabled) inputs[i].checked = this.checked;}"
+ />
+ </td>
+ <td width="40%" style="padding-left:5px;">
+ <span title="Click to sort" class='pointer'>
+ Title
+ </span> /
+ <span title="Click to sort" class='pointer'>
+ Author
+ </span>
+ </td>
+ <td width="8%" style="padding-right:5px;" align="center">
+ <span title="Click to sort" class='pointer'>Renews<br />Left
+ </span>
+ </td>
+ <td width="13%" style="padding-left:5px;">
+ <span title="Click to sort" class='pointer'>Due Date</span>
+ </td>
+ <td width="16%">
+ <span title="Click to sort" class='pointer'>barcode</span>
+ </td>
+ <td width="22%">
+ <span title="Click to sort" class='pointer'>call number</span>
+ </td>
+ </tr>
+ </table>
+
+ <div id="checked_temp_parent">
+ <div id="acct_checked_temp">
+ <table cellpadding='0' cellspacing='0' border='0'
+ style="margin-top:5px;">
+ [% FOR circ IN ctx.circs;
+ attrs = {marc_xml => circ.marc_xml};
+ PROCESS get_marc_attrs args=attrs; %]
+ <tr>
+ <td width="1%" style="padding-left:10px;" valign="top">
+ <input type="checkbox" name="circ"
+ [% IF circ.circ.renewal_remaining < 1; l('disabled="disabled"'); END %]
+ value="[% circ.circ.id %]" />
+ </td>
+ <td width="40%"
+ style="padding-left:5px;padding-bottom:10px;"
+ name="author">
+ <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title %]</a>
+ [% IF attrs.author %] /
+ <a href="[% ctx.opac_root %]/results?query=au:[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author %]</a>
[% END %]
- </div>
+ </td>
+ <td width="8%" name="renewals" align="center">
+ [% circ.circ.renewal_remaining %]
+ </td>
+ <td width="13%" style="padding-left:5px;"
+ name="due_date">
+ [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
+ </td>
+ <td width="16%" name="barcode">
+ [% circ.circ.target_copy.barcode %]
+ </td>
+ <td width="22%" name="call_number">
+ [% circ.circ.target_copy.call_number.label %]
+ </td>
+ </tr>
+ [% IF circ.renewal_response AND
+ circ.renewal_response.textcode != 'SUCCESS' %]
+ <tr>
+ <td colspan="6">[%# XXX colspan="0" does not work in IE %]
+ <span class="failure-text" title="[% circ.renewal_response.textcode %] / [% circ.renewal_response.payload.fail_part %]">
+ [% circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode %]
+ </span>
+ </td>
+ </tr>
+ [% END;
+ END %]
+ </table>
+ </div>
+ </div>
+ </form>
+ </div>
+ [% END %]
+ <div id='checked_hist' class="hide_me" style="padding-top:8px;">
+ <table id="acct_checked_hist_header" cellpadding='0' cellspacing='0'
+ border='0' width='100%'>
+ <tr>
+ <td width="45%" style="padding-left:15px;">
+ <span title="Click to sort" class='pointer'>Title</span> /
+ <span title="Click to sort" class='pointer'>Author</span>
+ </td>
+ <td width="22%"
+ style="white-space:nowrap;padding-left:5px;">
+ <span title="Click to sort" class='pointer'>Call Number</span>
+ </td>
+ <td width="11%">
+ <span title="Click to sort" class='pointer'>Checkout</span>
+ </td>
+ <td width="11%">
+ <span title="Click to sort" class='pointer'>Due Date</span>
+ </td>
+ <td width="11%">
+ <span title="Click to sort" class='pointer'>Returned</span>
+ </td>
+ </tr>
+ </table>
+ <table cellpadding='0' cellspacing='0' border='0'
+ style="margin-top:5px;" width="100%">
+ <tbody id="acct_checked_hist_parent">
+ <tr id="acct_checked_hist_temp">
+ <td width="45%"
+ style="padding-left:15px;padding-bottom:10px;">
+ <a href="#" name="title"></a> /
+ <span name="author"></span>
</td>
+ <td width="22%" style="padding-left:5px;"
+ name="call_number"></td>
+ <td width="11%" name="checkout"></td>
+ <td width="11%" name="due_date"></td>
+ <td width="11%" name="returned"
+ nowrap="nowrap" style="white-space:nowrap;"></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div id='non_cat_circs_div' class='hide_me'>
+ <br/>
+ <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
+ <table class='data_grid' width='100%'>
+ <thead>
+ <tr>
+ <td>[% l("Circulating Library") %]</td>
+ <td>[% l("Circulation Type") %]</td>
+ <td>[% l("Please return by ...") %]</td>
+ </tr>
+ </thead>
+ <tbody id='non_cat_circs_tbody'>
+ <tr id='non_cat_circs_row'>
+ <td name='circ_lib'/>
+ <td name='item_type'/>
+ <td name='circ_time'/>
</tr>
- [% END %]
-
- [% END %]
- </tbody>
- </table>
-</form>
-
+ </tbody>
+ </table>
+ <span class='hide_me' id='myopac_renew_fail'>[% l("The system is unable to renew the selected item at this time. This usually means the item is needed to fulfill a hold. Please see a librarian for further help.") %]</span>
+ <span class='hide_me' id='myopac_renew_fail2'>[% l("Library policy prevents the renewal of this item at this time. Please see a librarian for further details.") %]</span>
+</div>
[% END %]