]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/myopac/holds.tt2
Merge branch 'opac-tt-poc' of ssh://yeti.esilibrary.com/home/evergreen/evergreen...
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / myopac / holds.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 = "holds"  %]
6 <div id='myopac_holds_div'>
7
8     <div id="acct_holds_tabs" style="padding-bottom: 12px;color:#666;">
9         <div class="align selected">
10             <img src="[% ctx.media_prefix %]/images/sub_holds_on.jpg"/>
11         </div>
12         <div class="align">
13             <a href='hold_history'><img src="[% ctx.media_prefix %]/images/sub_holds_hist_off.jpg"/></a>
14         </div>
15         <div class="clear-both"></div>
16     </div>
17
18     <div class="header_middle">
19         <span id="acct_holds_header" style="float:left;">
20             [%  IF CGI.param("available");
21                     l("Items Ready for Pickup");
22                 ELSE;
23                     l("Current Items on Hold");
24                 END
25             %]
26         </span>
27         <span style="float:right;">
28             <a class="hide_me" href="#">Export List</a>
29         </span>
30     </div>
31     <div class="clear-both"></div>
32     <div id='holds_main'>
33         <form method="POST">
34         <table cellpadding='0' cellspacing='0' class="opac-auto-097">
35             <tr>
36                 <td width="1">
37                     <select name="action" id="acct_holds_actions">
38                         <option id='myopac_holds_actions_none' value=''>
39                         -- [% l("Actions for selected holds") %] --
40                         </option>
41                         <option value='suspend'>
42                             [% l("Suspend") %]
43                         </option>
44                         <option value='activate'>
45                             [% l("Activate") %]
46                         </option>
47                         <!-- XXX maybe later <option value='thaw_date'>
48                             [% l("Set Active Date") %]
49                         </option> -->
50                         <option value='cancel'>
51                             [% l("Cancel") %]
52                         </option>
53                     </select>
54                 </td>
55                 <td width="1" style="padding-left:9px;">
56                     <input type="image"
57                         alt="[% l('Go') %]" title="[% l('Go') %]"
58                         src="[% ctx.media_prefix %]/images/go-btn.png" />
59                 </td>
60                 <td width="1" style="padding-left:5px;">
61                     <a href="#"><img
62                         alt="Holds Help"
63                         src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
64                 </td>
65                 <td align="right">
66                     [% l("Show") %] &nbsp; &nbsp;
67                     [% IF CGI.param("available") %]
68                     <a href="holds">[% l('all') %]</a> |
69                     <strong>[% l("only available") %]</strong>
70                     [% ELSE %]
71                     <strong>[% l("all") %]</strong> |
72                     <a href="holds?available=1">[% l("only available") %]</a>
73                     [% END %] &nbsp; &nbsp;
74                     [% l("holds") %]
75                     <select class="hide_me" id="holds_sort">
76                         <option value="">-- Sort By --</option>
77                         <option value="title">Title</option>
78                         <option value="pickup">PickUp Location</option>
79                         <option value="status">Status</option>
80                     </select>
81                 </td>
82             </tr>
83         </table>
84         [% IF ctx.holds.size < 1 %]
85         <div class="opac-auto-079">
86             <big><strong>[% l('No holds found.') %]</strong></big>
87         </div>
88         [% ELSE %]
89         <table id="acct_holds_main_header" cellpadding='0' cellspacing='0'
90             border='0' width="100%">
91             <tr>
92                 <td width="36" align="center">
93                     <input type="checkbox" id="check_all_holds" />
94                 </td>
95                 <td width="138">
96                     <span title="Click to sort"
97                         style="cursor:pointer;">
98                         Title
99                     </span>
100                 </td>
101                 <td width="123">
102                     <span title="Click to sort" style="cursor:pointer;">Author</span>
103                 </td>
104                 <td width="64">
105                     <span title="Click to sort"
106                         style="cursor:pointer;">Format</span>
107                 </td>
108                 <td width="136">
109                     <span title="Click to sort"
110                         style="cursor:pointer;">Pickup Location</span>
111                 </td>
112                 <td width="104">Activate</td>
113                 <td width="106">Cancel if not<br />filled by</td>
114                 <td width="95">Active</td>
115                 <td width="172">
116                     <span title="Click to sort"
117                         style="cursor:pointer;">Status</span>
118                 </td>
119             </tr>
120         </table>
121         <div class="hide_me">
122             <select id="hold_pickup_lib_temp" name="hold_pickup_lib_sel"
123                 class="hide_me" style="width:125px;height:21px;"></select>
124         </div>
125
126         <table cellpadding='0' cellspacing='0' border='0' width="100%">
127             <tbody id="holds_temp_parent">
128                 [% FOR hold IN ctx.holds;
129                     attrs = {marc_xml => hold.marc_xml};
130                     PROCESS get_marc_attrs args=attrs;
131                     ahr = hold.hold.hold %]
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="[% ahr.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?qtype=author&query=[% 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(ahr.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 ahr.frozen == 't' AND
166                                 ahr.thaw_date;
167                             date.format(ctx.parse_datetime(ahr.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 ahr.expire_time;
175                             date.format(ctx.parse_datetime(ahr.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(ahr.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                             [% PROCESS get_hold_status hold=hold; %]
190                         </div>
191                     </td>
192                     <td class="opac-auto-161">
193                         <!-- XXX TODO <a name="hold_edit_link" href="#">Edit</a>
194                         <a href="#" name="hold_save_link"
195                             class="hide_me">Save</a>
196                         <a href="#" name="hold_cancel_link"
197                             class="hide_me">Back</a> -->
198                     </td>
199                 </tr>
200                 [% END %]
201             </tbody>
202         </table>
203         [% END %]
204         </form>
205     </div>
206
207     <span id='myopac.holds.cancel.confirm' class='hide_me'>[% l("Are you sure you wish to cancel the selected holds?") %]</span>
208     <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>
209     <span id='myopac.holds.thaw.confirm' class='hide_me'>[% l("Are you sure you wish to activate the selected holds?") %]</span>
210     <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>
211     <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>
212
213     <table width='100%' id='myopac_holds_processing' class='hide_me'>
214         <tr><td>[% l("Processing holds... This may take a moment.") %]</td></tr>
215     </table>
216    
217     <span class='hide_me' id='myopac_holds_cancel_verify'>
218         [% l("If you wish to cancel the selected hold, click OK, otherwise click Cancel.") %]
219     </span>
220 </div>
221 <div id='myopac_holds_thaw_date_form' class='hide_me'>
222     <div id='myopac_holds_freeze_select_thaw'>
223         [% l("Select an automatic activation date.  If no date is chosen, the holds will remain suspended until they are manually activated.") %]
224     </div>
225     <p>
226         <input size='10' maxlength='10'
227             type='text' id='myopac_holds_thaw_date_input' />
228     </p>
229     <p>
230         <button>[% l("Submit") %]</button>
231     </p>
232 </div>
233 [% END %]