]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/web/templates/default/opac/myopac/circs.tt2
Merge branch 'opac-tt-poc' of ssh://yeti.esilibrary.com/home/evergreen/evergreen...
[Evergreen.git] / Open-ILS / web / templates / default / opac / myopac / circs.tt2
1 [%  PROCESS "default/opac/parts/header.tt2";
2     PROCESS "default/opac/parts/misc_util.tt2";
3     WRAPPER "default/opac/parts/base.tt2" +
4         "default/opac/parts/myopac/base.tt2";
5     myopac_page = "circs"  %]
6 <div id='myopac_checked_div' style="padding:0px;">
7
8     <div id="acct_checked_tabs" style="padding-bottom: 12px;color:#666;">
9         <div class="align selected">
10             <img src="[% ctx.media_prefix %]/images/sub_checked_out_on.jpg" />
11         </div>
12         <div class="align">
13             <a href="circ_history"><img
14                 src="[% ctx.media_prefix %]/images/sub_checked_hist_off.jpg" /></a>
15         </div>
16         <div class="clear-both"></div>
17     </div>
18
19     <div class="header_middle">
20         <span class="float-left">[% l('Current Items Checked Out') %]</span>
21         <span class="float-right">
22             <a class="hide_me" href="#">[% l('Export List') %]</a>
23         </span>
24     </div>
25     <div class="clear-both"></div>
26     [% IF ctx.circs.size < 1 %]
27     <div class="opac-auto-079">
28         <big><strong>[% l('You have no items checked out.') %]</strong></big>
29     </div>
30     [% ELSE %]
31     [% IF ctx.success_renewals %]
32     <div class="renew-summary">
33         [% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %]
34     </div>
35     [% END %]
36     [% IF ctx.failed_renewals %]
37     <div class="renew-summary red">
38         [% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
39     </div>
40     [% END %]
41     <div id='checked_main'>
42         <form method="POST" id="circ-form"
43             onsubmit="return confirm('[% l("Are you sure you wish to renew the selected item(s)?") %]');">
44         <table cellpadding='0' cellspacing='0' class="opac-auto-097b">
45             <tr>
46                 <td>
47                     <select name="action">
48                         <option value="renew">[% l('Renew Selected Titles') %]</option>
49                     </select>
50                 </td>
51                 <td style="padding-left:9px;">
52                     <input type="image"
53                         alt="[% l('Go') %]" title="[% l('Go') %]"
54                         src="[% ctx.media_prefix %]/images/go-btn.png" /></a>
55                 </td>
56                 <td style="padding-left:5px;">
57                     <a href="#"><img alt="Renewing Help"
58                         src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
59                 </td>
60             </tr>
61         </table>
62         <table id="acct_checked_main_header" cellpadding='0' cellspacing='0'
63             border='0'>
64             <tr>
65                 <td width="1%" style="padding-left:10px;">
66                     <input type="checkbox" id="check_all_checked"
67                         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;}"
68                     />
69                 </td>
70                 <td width="40%" style="padding-left:5px;">
71                     <span title="Click to sort" class='pointer'>
72                         Title
73                     </span> /
74                     <span title="Click to sort" class='pointer'>
75                         Author
76                     </span>
77                 </td>
78                 <td width="8%" style="padding-right:5px;" align="center">
79                     <span title="Click to sort" class='pointer'>Renews<br />Left
80                     </span>
81                 </td>
82                 <td width="13%" style="padding-left:5px;">
83                     <span title="Click to sort" class='pointer'>Due Date</span>
84                 </td>
85                 <td width="16%">
86                     <span title="Click to sort" class='pointer'>barcode</span>
87                 </td>
88                 <td width="22%">
89                     <span title="Click to sort" class='pointer'>call number</span>
90                 </td>
91             </tr>
92         </table>
93    
94         <div id="checked_temp_parent">
95             <div id="acct_checked_temp">
96                 <table cellpadding='0' cellspacing='0' border='0'
97                     style="margin-top:5px;">
98                     [% FOR circ IN ctx.circs;
99                         attrs = {marc_xml => circ.marc_xml};
100                         PROCESS get_marc_attrs args=attrs; %]
101                     <tr>
102                         <td width="1%" style="padding-left:10px;" valign="top">
103                             <input type="checkbox" name="circ"
104                                 [% IF circ.circ.renewal_remaining < 1; l('disabled="disabled"'); END %]
105                                 value="[% circ.circ.id %]" />
106                         </td>
107                         <td width="40%"
108                             style="padding-left:5px;padding-bottom:10px;"
109                             name="author">
110                             <a href="[% ctx.opac_root %]/record/[% circ.circ.target_copy.call_number.record.id %]" name="[% l('Catalog record') %]">[% attrs.title %]</a>
111                             [% IF attrs.author %] /
112                             <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author %]</a>
113                             [% END %]
114                         </td>
115                         <td width="8%" name="renewals" align="center">
116                             [% circ.circ.renewal_remaining %]
117                         </td>
118                         <td width="13%" style="padding-left:5px;"
119                             name="due_date">
120                             [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT) %]
121                         </td>
122                         <td width="16%" name="barcode">
123                             [% circ.circ.target_copy.barcode %]
124                         </td>
125                         <td width="22%" name="call_number">
126                             [% circ.circ.target_copy.call_number.label %]
127                         </td>
128                     </tr>
129                     [%  IF circ.renewal_response AND
130                             circ.renewal_response.textcode != 'SUCCESS' %]
131                     <tr>
132                         <td colspan="6">[%# XXX colspan="0" does not work in IE %]
133                             <span class="failure-text" title="[% circ.renewal_response.textcode %] / [% circ.renewal_response.payload.fail_part %]">
134                                 [% circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode %]
135                             </span>
136                         </td>
137                     </tr>
138                     [%  END;
139                     END %]
140                 </table>
141             </div>
142         </div>
143         </form>
144     </div>
145     [% END %]
146     <div id='non_cat_circs_div' class='hide_me'>
147         <br/>
148         <div style='text-align: center'><b>[% l("Other Circulations") %]</b></div>
149         <table class='data_grid' width='100%'>
150             <thead>
151                 <tr>
152                     <td>[% l("Circulating Library") %]</td>
153                     <td>[% l("Circulation Type") %]</td>
154                     <td>[% l("Please return by ...") %]</td>
155                 </tr>
156             </thead>
157             <tbody id='non_cat_circs_tbody'>
158                 <tr id='non_cat_circs_row'>
159                     <td name='circ_lib'/>
160                     <td name='item_type'/>
161                     <td name='circ_time'/>
162                 </tr>
163             </tbody>
164         </table>
165     </div>
166 </div>
167 [% END %]