hide the hold-edit link in maint. branch for the time being, since it's new functionality
[evergreen-equinox.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     <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         [% IF ctx.holds.size < 1 %]
91         <div class="opac-auto-079">
92             <big><strong>[% l('No holds found.') %]</strong></big>
93         </div>
94         [% ELSE %]
95         <table id="acct_holds_main_header" cellpadding='0' cellspacing='0'
96             border='0' width="100%">
97             <tr>
98                 <td width="36" align="center">
99                     <input type="checkbox" id="check_all_holds" />
100                 </td>
101                 <td width="138">
102                     <span title="Click to sort"
103                         style="cursor:pointer;">
104                         Title
105                     </span>
106                 </td>
107                 <td width="123">
108                     <span title="Click to sort" style="cursor:pointer;">Author</span>
109                 </td>
110                 <td width="64">
111                     <span title="Click to sort"
112                         style="cursor:pointer;">Format</span>
113                 </td>
114                 <td width="136">
115                     <span title="Click to sort"
116                         style="cursor:pointer;">Pickup Location</span>
117                 </td>
118                 <td width="104">Activate</td>
119                 <td width="106">Cancel if not<br />filled by</td>
120                 <td width="95">Active</td>
121                 <td width="172">
122                     <span title="Click to sort"
123                         style="cursor:pointer;">Status</span>
124                 </td>
125             </tr>
126         </table>
127         <div class="hide_me">
128             <select id="hold_pickup_lib_temp" name="hold_pickup_lib_sel"
129                 class="hide_me" style="width:125px;height:21px;"></select>
130         </div>
131
132         <table cellpadding='0' cellspacing='0' border='0' width="100%">
133             <tbody id="holds_temp_parent">
134                 [% FOR hold IN ctx.holds;
135                     attrs = {marc_xml => hold.marc_xml};
136                     PROCESS get_marc_attrs args=attrs;
137                     ahr = hold.hold.hold %]
138                 <tr id="acct_holds_temp" name="acct_holds_temp"
139                     class="acct_holds_temp">
140                     <td width="36" align="center" style="text-align:center;">
141                         <input type="checkbox" name="hold_id" value="[% ahr.id %]" />
142                     </td>
143                     <td width="138">
144                         <div style="margin-top:10px;margin-bottom:10px;">
145                             <a href="[% ctx.opac_root %]/record/[% hold.hold.bre.id %]">[% attrs.title | html %]</a>
146                         </div>
147                     </td>
148                     <td width="123">
149                         <div style="margin-top:10px;margin-bottom:10px;">
150                             <a href="[% ctx.opac_root %]/results?qtype=author&query=[% attrs.author | replace('[,\.:;]', '') | url %]">[% attrs.author | html %]</a>
151                         </div>
152                     </td>
153                     <td width="64">
154                         <div style="width:26px;height:23px;margin-top:6px;margin-bottom:6px;">
155                             [% IF attrs.format_icon %]
156                             <img src="[% ctx.media_prefix %]/images/[% attrs.form_icon %]"
157                                 title="[% attrs.format %]" alt="[% attrs.format %]" />
158                             [% ELSE;
159                                 attrs.format;
160                                END %]
161                         </div>
162                     </td>
163                     <td width="136">
164                         [% ctx.find_aou(ahr.pickup_lib).name %]
165                     </td>
166                     <td width="104">
167                         <!-- <input
168                             title="Enter a date (e.g. 10/21/2010)"
169                             class="hide_me" style="width:91px;"
170                             name="activate_box" type="text" /> -->
171                         [% IF ahr.frozen == 't' AND
172                                 ahr.thaw_date;
173                             date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
174                         END %]
175                     </td>
176                     <td width="106">
177                         <!-- <input title="[% l('Enter a date (e.g. 10/21/2010)') %]"
178                             class="hide_me" style="width:91px;"
179                             name="hold_expires_box" type="text" />-->
180                         [% IF ahr.expire_time;
181                             date.format(ctx.parse_datetime(ahr.expire_time), DATE_FORMAT);
182                         END %]
183                     </td>
184                     <td width="95">
185                         <!-- <select name="hold_active_sel"
186                             style="width:90px;" class="hide_me">
187                             <option value="f">Active</option>
188                             <option value="t">Suspended</option>
189                         </select> -->
190                         [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
191                     </td>
192                     <td width="110">
193                         <div name="acct_holds_status"
194                             style="margin-top:10px;margin-bottom:10px;">
195                             [% PROCESS get_hold_status hold=hold; %]
196                         </div>
197                     </td>
198                     <!--
199                     <td class="opac-auto-161">
200                         <a href="[% ctx.opac_root %]/myopac/holds/edit?id=[% ahr.id %]">Edit</a>
201                     </td>
202                     -->
203                 </tr>
204                 [% END %]
205             </tbody>
206         </table>
207         [% END %]
208         </form>
209     </div>
210
211     <span id='myopac.holds.cancel.confirm' class='hide_me'>[% l("Are you sure you wish to cancel the selected holds?") %]</span>
212     <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>
213     <span id='myopac.holds.thaw.confirm' class='hide_me'>[% l("Are you sure you wish to activate the selected holds?") %]</span>
214     <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>
215     <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>
216
217     <table width='100%' id='myopac_holds_processing' class='hide_me'>
218         <tr><td>[% l("Processing holds... This may take a moment.") %]</td></tr>
219     </table>
220    
221     <span class='hide_me' id='myopac_holds_cancel_verify'>
222         [% l("If you wish to cancel the selected hold, click OK, otherwise click Cancel.") %]
223     </span>
224 </div>
225 <div id='myopac_holds_thaw_date_form' class='hide_me'>
226     <div id='myopac_holds_freeze_select_thaw'>
227         [% l("Select an automatic activation date.  If no date is chosen, the holds will remain suspended until they are manually activated.") %]
228     </div>
229     <p>
230         <input size='10' maxlength='10'
231             type='text' id='myopac_holds_thaw_date_input' />
232     </p>
233     <p>
234         <button>[% l("Submit") %]</button>
235     </p>
236 </div>
237 [% END %]