]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/myopac/holds.tt2
Merge branch 'master' of git+ssh://yeti.esilibrary.com/home/evergreen/evergreen-equin...
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / myopac / holds.tt2
1 [%  PROCESS "default/opac/parts/header.tt2";
2     PROCESS "default/opac/parts/marc_misc.tt2";
3     WRAPPER "default/opac/parts/base.tt2" +
4         "default/opac/parts/myopac/base.tt2";
5     myopac_page = "holds"  %]
6 <div id='myopac_holds_div'>
7     <div id="acct_holds_tabs" style="padding-bottom: 12px;color:#666;" class="hide_me">
8         <div class="align selected" id="holds_label">
9             <img src="[% ctx.media_prefix %]/images/sub_holds_on.jpg" />
10         </div>
11         <div class="align hide_me" id="holds_hist_link">
12             <a href="#"><img
13                 src="[% ctx.media_prefix %]/images/sub_holds_hist_off.jpg" /></a>
14         </div>
15         <div class="align hide_me" id="holds_link">
16             <a href="#"><img
17                 src="[% ctx.media_prefix %]/images/sub_holds_off.jpg" /></a>
18         </div>
19         <div class="align selected hide_me" id="holds_hist_label">
20             <img src="[% ctx.media_prefix %]/images/sub_holds_hist_on.jpg" />
21         </div>  
22         <div class="clear-both"></div>
23     </div>
24     <div class="header_middle">
25         <span id="acct_holds_header" style="float:left;">
26             [%  IF CGI.param("available");
27                     l("Items Ready for Pickup");
28                 ELSE;
29                     l("Current Items on Hold");
30                 END
31             %]
32         </span>
33         <span style="float:right;">
34             <a class="hide_me" href="#">Export List</a>
35         </span>
36     </div>
37     <div class="clear-both"></div>
38     <div id='holds_main'>
39         <form method="POST">
40         <table cellpadding='0' cellspacing='0' class="opac-auto-097">
41             <tr>
42                 <td width="1">
43                     <select name="action" id="acct_holds_actions">
44                         <option id='myopac_holds_actions_none' value=''>
45                         -- [% l("Actions for selected holds") %] --
46                         </option>
47                         <option value='suspend'>
48                             [% l("Suspend") %]
49                         </option>
50                         <option value='activate'>
51                             [% l("Activate") %]
52                         </option>
53                         <!-- XXX maybe later <option value='thaw_date'>
54                             [% l("Set Active Date") %]
55                         </option> -->
56                         <option value='cancel'>
57                             [% l("Cancel") %]
58                         </option>
59                     </select>
60                 </td>
61                 <td width="1" style="padding-left:9px;">
62                     <input type="image"
63                         alt="[% l('Go') %]" title="[% l('Go') %]"
64                         src="[% ctx.media_prefix %]/images/go-btn.png" />
65                 </td>
66                 <td width="1" style="padding-left:5px;">
67                     <a href="#"><img
68                         alt="Holds Help"
69                         src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
70                 </td>
71                 <td align="right">
72                     [% l("Show") %] &nbsp; &nbsp;
73                     [% IF CGI.param("available") %]
74                     <a href="holds">[% l('all') %]</a> |
75                     <strong>[% l("only available") %]</strong>
76                     [% ELSE %]
77                     <strong>[% l("all") %]</strong> |
78                     <a href="holds?available=1">[% l("only available") %]</a>
79                     [% END %] &nbsp; &nbsp;
80                     [% l("holds") %]
81                     <select class="hide_me" id="holds_sort">
82                         <option value="">-- Sort By --</option>
83                         <option value="title">Title</option>
84                         <option value="pickup">PickUp Location</option>
85                         <option value="status">Status</option>
86                     </select>
87                 </td>
88             </tr>
89         </table>
90         <table id="acct_holds_main_header" cellpadding='0' cellspacing='0'
91             border='0' width="100%">
92             <tr>
93                 <td width="36" align="center">
94                     <input type="checkbox" id="check_all_holds" />
95                 </td>
96                 <td width="138">
97                     <span title="Click to sort"
98                         style="cursor:pointer;">
99                         Title
100                     </span>
101                 </td>
102                 <td width="123">
103                     <span title="Click to sort" style="cursor:pointer;">Author</span>
104                 </td>
105                 <td width="64">
106                     <span title="Click to sort"
107                         style="cursor:pointer;">Format</span>
108                 </td>
109                 <td width="136">
110                     <span title="Click to sort"
111                         style="cursor:pointer;">Pickup Location</span>
112                 </td>
113                 <td width="104">Activate</td>
114                 <td width="106">Cancel if not<br />filled by</td>
115                 <td width="95">Active</td>
116                 <td width="172">
117                     <span title="Click to sort"
118                         style="cursor:pointer;">Status</span>
119                 </td>
120             </tr>
121         </table>
122         <div class="hide_me">
123             <select id="hold_pickup_lib_temp" name="hold_pickup_lib_sel"
124                 class="hide_me" style="width:125px;height:21px;"></select>
125         </div>
126
127         <table cellpadding='0' cellspacing='0' border='0' width="100%">
128             <tbody id="holds_temp_parent">
129                 [% FOR hold IN ctx.holds;
130                     attrs = {marc_xml => hold.marc_xml};
131                     PROCESS get_marc_attrs args=attrs %]
132                 <tr id="acct_holds_temp" name="acct_holds_temp"
133                     class="acct_holds_temp">
134                     <td width="36" align="center" style="text-align:center;">
135                         <input type="checkbox" name="hold_id" value="[% hold.hold.hold.id %]" />
136                     </td>
137                     <td width="138">
138                         <div style="margin-top:10px;margin-bottom:10px;">
139                             <a href="[% ctx.opac_root %]/record/[% hold.hold.bre.id %]">[% attrs.title | html %]</a>
140                         </div>
141                     </td>
142                     <td width="123">
143                         <div style="margin-top:10px;margin-bottom:10px;">
144                             <a href="[% ctx.opac_root %]/results?query=au:[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
145                         </div>
146                     </td>
147                     <td width="64">
148                         <div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
149                             [% IF attrs.format_icon %]
150                             <img src="[% ctx.media_prefix %]/images/[% attrs.form_icon %]"
151                                 title="[% attrs.format %]" alt="[% attrs.format %]" />
152                             [% ELSE;
153                                 attrs.format;
154                                END %]
155                         </div>
156                     </td>
157                     <td width="136">
158                         [% ctx.find_aou(hold.hold.hold.pickup_lib).name %]
159                     </td>
160                     <td width="104">
161                         <!-- <input
162                             title="Enter a date (e.g. 10/21/2010)"
163                             class="hide_me" style="width:91px;"
164                             name="activate_box" type="text" /> -->
165                         [% IF hold.hold.hold.frozen == 't' AND
166                                 hold.hold.hold.thaw_date;
167                             date.format(ctx.parse_datetime(hold.hold.hold.thaw_date), DATE_FORMAT);
168                         END %]
169                     </td>
170                     <td width="106">
171                         <!-- <input title="[% l('Enter a date (e.g. 10/21/2010)') %]"
172                             class="hide_me" style="width:91px;"
173                             name="hold_expires_box" type="text" />-->
174                         [% IF hold.hold.hold.expire_time;
175                             date.format(ctx.parse_datetime(hold.hold.hold.expire_time), DATE_FORMAT);
176                         END %]
177                     </td>
178                     <td width="95">
179                         <!-- <select name="hold_active_sel"
180                             style="width:90px;" class="hide_me">
181                             <option value="f">Active</option>
182                             <option value="t">Suspended</option>
183                         </select> -->
184                         [% l(hold.hold.hold.frozen == 'f' ? 'Active' : 'Suspended') %]
185                     </td>
186                     <td width="110">
187                         <div name="acct_holds_status"
188                             style="margin-top:10px;margin-bottom:10px;">
189                             [%
190                                 IF hold.hold.status == 4;
191                                     l("Available");
192                                 ELSIF hold.hold.estimated_wait;
193                                     l("Estimated wait (days): ");
194                                     hold.hold.estimated_wait;
195                                 ELSIF hold.hold.status == 3;
196                                     l("In Transit");
197                                 ELSIF hold.hold.status < 3;
198                                     l("Waiting for copy");
199                                 END;
200                             %]
201                         </div>
202                     </td>
203                     <td width="62" align="right"
204                         style="text-align:right;padding-right:7px;">
205                         <a name="hold_edit_link" href="#">Edit</a>
206                         <a href="#" name="hold_save_link"
207                             class="hide_me">Save</a>
208                         <a href="#" name="hold_cancel_link"
209                             class="hide_me">Back</a>
210                     </td>
211                 </tr>
212                 [% END %]
213             </tbody>
214         </table>
215         </form>
216     </div>
217     <div id='holds_hist_table' class="hide_me">testing...</div>
218
219     <span id='myopac.holds.cancel.confirm' class='hide_me'>[% l("Are you sure you wish to cancel the selected holds?") %]</span>
220     <span id='myopac.holds.freeze.confirm' class='hide_me'>[% l("Are you sure you wish to suspend the selected holds?  If an item has already been selected to fulfill the hold, it will not be suspended") %]</span>
221     <span id='myopac.holds.thaw.confirm' class='hide_me'>[% l("Are you sure you wish to activate the selected holds?") %]</span>
222     <span id='myopac.holds.thaw_date.confirm' class='hide_me'>[% l("Are you sure you wish to change the activate date for the selected holds?") %]</span>
223     <span id='myopac.holds.freeze.select_thaw' class='hide_me'>[% l("Select an automatic activation date.  If no date is chosen, the holds will remain suspended until they are manually activated.") %]</span>
224
225     <table width='100%' id='myopac_holds_processing' class='hide_me'>
226         <tr><td>[% l("Processing holds... This may take a moment.") %]</td></tr>
227     </table>
228    
229     <span class='hide_me' id='myopac_holds_cancel_verify'>
230         [% l("If you wish to cancel the selected hold, click OK, otherwise click Cancel.") %]
231     </span>
232 </div>
233 <div id='myopac_holds_thaw_date_form' class='hide_me'>
234     <div id='myopac_holds_freeze_select_thaw'>
235         [% l("Select an automatic activation date.  If no date is chosen, the holds will remain suspended until they are manually activated.") %]
236     </div>
237     <p>
238         <input size='10' maxlength='10'
239             type='text' id='myopac_holds_thaw_date_input' />
240     </p>
241     <p>
242         <button>[% l("Submit") %]</button>
243     </p>
244 </div>
245 [% END %]