]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/opac/skin/default/xml/common/holds.xml
added style to indicate a hold thaw date is either invalid or <= today
[working/Evergreen.git] / Open-ILS / web / opac / skin / default / xml / common / holds.xml
1 <link rel="stylesheet" type="text/css"
2     href='<!--#echo var="OILS_JS_BASE"-->/jscalendar/calendar-brown.css' title="win2k-cold-1" />
3 <script language='javascript' type='text/javascript' src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/calendar.js'></script>
4 <script language='javascript' type='text/javascript' src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/lang/calendar-en.js'></script>
5 <script language='javascript' type='text/javascript' src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/calendar-setup.js'></script>
6 <script language='javascript' type='text/javascript' src='<!--#echo var="OILS_OPAC_JS_HOST"-->/common/js/DP_DateExtensions.js'></script>
7
8 <div>
9         <div id='xulholds_box' class='hide_me canvas' style='margin-top: 6px;'>
10                 <center>
11                         <table class='data_grid' style='margin-top: 20px;'>
12                                 <tbody>
13                                         <tr>
14                                                 <td>&opac.holds.xulRecipient;:</td>
15                                                 <td><input type='text' id='xul_recipient_barcode' /></td>
16                                                 <td><input type='submit' value='&common.submit;' id='xul_recipient_barcode_submit' /></td>
17                                                 <td><input type='submit' value='&common.cancel;' onclick='showCanvas();' /></td>
18                                                 <td><input type='submit' value='&common.hold.place;' id='xul_recipient_me' /></td>
19                                         </tr>
20                                 </tbody>
21                         </table>
22                 </center>
23         </div>
24
25         <div id='check_holds_box' class='hide_me canvas' 
26                 style='margin-top: 6px; width: 100%; text-align: center'>
27                 <br/><br/><br/>
28                 <b>&common.hold.check;</b>
29         </div>
30
31         <div id='holds_box' class='hide_me canvas' style='margin-top: 6px;'>
32         
33                 <br/>
34                 <table width='90%'>
35                         <tbody>
36                                 <tr>
37                                         <td class='holds_cell color_1' 
38                                                 align='center' colspan='2'>&common.hold.create;</td>
39                                 </tr>
40                                 <tr>
41                                         <td class='holds_cell'>&opac.holds.recipient;:</td>
42                                         <td class='holds_cell' id='holds_recipient'> </td>
43                                 </tr>
44                                 <tr>
45                                         <td class='holds_cell'>&common.title.label;</td>
46                                         <td class='holds_cell' id='holds_title'> </td>
47                                 </tr>
48                                 <tr>
49                                         <td class='holds_cell'>&common.author;</td>
50                                         <td class='holds_cell' id='holds_author'> </td>
51                                 </tr>
52                                 <tr>
53                                         <td class='holds_cell'>&common.format;</td>
54                                         <td class='holds_cell' id='holds_format'> </td>
55                                 </tr>
56                                 <tr id='hold_physical_desc_row'>
57                                         <td class='holds_cell'>&common.physical.label;</td>
58                                         <td class='holds_cell' id='holds_physical_desc'> </td>
59                                 </tr>
60
61                                 <tr class='hide_me' id='holds_cn_row'>
62                                         <td class='holds_cell'>&common.call.number.label;</td>
63                                         <td class='holds_cell'><b id='holds_cn'/> </td>
64                                 </tr>
65
66                                 <tr class='hide_me' id='holds_copy_row'>
67                                         <td class='holds_cell'>&common.copy.barcode.label;</td>
68                                         <td class='holds_cell'><b id='holds_copy'/> </td>
69                                 </tr>
70
71                                 <tr class='hide_me' id='holds_type_row'>
72                                         <td class='holds_cell'>&common.hold.type.label;</td>
73                                         <td class='holds_cell hide_me' id='holds_is_cn'><b>&common.hold.volume;</b></td>
74                                         <td class='holds_cell hide_me' id='holds_is_copy'><b>&common.hold.copy;</b></td>
75                                 </tr>
76
77                                 <tr>
78                                         <td class='holds_cell'>&opac.holds.contactPhone;:</td>
79                                         <td class='holds_cell'>
80                                                 <input id='holds_phone' size='13' maxlength='12'/>
81                                                 <span style='margin-left: 4px; font-size: 7pt;'>&common.phone.format;</span>
82                                         </td>
83                                 </tr>
84                                 <tr>
85                                         <td class='holds_cell'>&common.phone.enable;</td>
86                                         <td class='holds_cell'>
87                                                 <input type='checkbox' id='holds_enable_phone'  checked='checked'
88                                                         onchange='
89                                                                 if (this.checked) $("holds_phone").disabled=false; 
90                                                                 else $("holds_phone").disabled = true;'/>
91                                         </td>
92                                 </tr>
93
94                                 <tr>
95                                         <td class='holds_cell'>&opac.holds.contactEmail;:</td>
96                                         <td class='holds_cell' id='holds_email'> 
97                         <span class='hide_me' id='holds.no_email'>
98                            &common.email.none;<br/>
99                            &common.email.set;
100                         </span>
101                         <span class='hide_me' id='holds.no_email.xul'>
102                            &common.email.none; 
103                         </span>
104
105                     </td>
106                                 </tr>
107                                 <tr>
108                                         <td class='holds_cell'>&common.email.enable;</td>
109                                         <td class='holds_cell'>
110                                                 <input type='checkbox' id='holds_enable_email' checked='checked'/>
111                                         </td>
112                                 </tr>
113                                 <!--
114                                 <tr id='holds_depth_selector_row' class='hide_me'>
115                                         <td class='holds_cell'>Hold Range</td>
116                                         <td class='holds_cell'>
117                                                 <select id='holds_depth_selector'></select>
118                                         </td>
119                                 </tr>
120                                 -->
121                                 <tr>
122                                         <td class='holds_cell'>&opac.holds.pickupLocation;</td>
123                                         <td class='holds_cell'>
124                                                 <select id='holds_org_selector'> </select>
125                                         </td>
126                                 </tr>
127
128                 <tr>
129                     <td class='holds_cell'>
130                         &opac.holds.freeze;
131                         <a class='classic_link' href='javascript:alert("&opac.holds.freeze.help;");'>&common.help;</a>
132                         </td>
133                     <td class='holds_cell'>
134                         <input type='checkbox' id='holds_frozen_chkbox' 
135                             onchange='
136                                 if($("holds_frozen_chkbox").checked) 
137                                     unHideMe($("hold_frozen_thaw_row"));
138                                 else
139                                     hideMe($("hold_frozen_thaw_row"));
140                             ' /> 
141                     </td>
142                 </tr>
143
144                 <tr id='hold_frozen_thaw_row' class='hide_me'>
145                     <td class='holds_cell'>
146                         <script language='javascript' type='text/javascript'> if($('holds_frozen_chkbox').checked) unHideMe($("hold_frozen_thaw_row"));</script>
147                         &opac.holds.freeze.thaw_date;
148                     </td>
149                     <td class='holds_cell'>
150                         <input size='10' maxlength='10' id='holds_frozen_thaw_input' />
151                         <button style='padding: 0px;' id='holds_frozen_thaw_date_button'>
152                             <img src='<!--#echo var="OILS_JS_BASE"-->/jscalendar/img.gif'
153                                 style="cursor: pointer; border: 1px solid red; padding: 0px; margin: -3px;"
154                                 title="Date selector"
155                                 onmouseover="this.style.background='red';"
156                                 onmouseout="this.style.background=''" />
157                         </button>
158                         &nbsp;(&opac.holds.freeze.thaw_date.format;)
159
160                         <script language='javascript' type="text/javascript">
161                             Calendar.setup({
162                                 inputField  : "holds_frozen_thaw_input",
163                                 ifFormat    : "%Y-%m-%d",
164                                 button      : "holds_frozen_thaw_date_button",
165                                 align       : "Tl", 
166                                 singleClick : true
167                             });
168                         </script>
169
170                     </td>
171                 </tr>
172
173                                 <tr id='holds_alt_formats_row_extras' class='hide_me'>
174                                         <td colspan='2' align='center'>
175                                                 <div style='padding: 8px;'>
176                                                         <a class='classic_link' href='javascript:void(0);' style='padding: 5px;'
177                                                                 onclick='unHideMe($("holds_alt_formats_row"));'>&common.hold.advanced;</a>
178                                                 </div>
179                                         </td>
180                                 </tr>
181
182                                 <tr id='holds_alt_formats_row' class='hide_me'>
183
184                                         <td class='holds_cell'>
185                                                 <div style='margin-bottom: 5px;'>
186                                                         <span>&common.format.alternatives; </span>
187                                                         <span> <a class='classic_link' style='color:red;' href='javascript:void(0);' 
188                                                                 onclick='alert($("holds_explain_adv").innerHTML)'>&common.help;</a></span>
189                                                 </div>
190                                                 <div>&common.control.click;</div>
191                                         </td>
192
193                                         <td class='holds_cell'>
194                                                 <select id='hold_alt_form_selector' multiple='multiple' style='width: 14em;'>
195                                                         <option value='at'      class='hide_me'>&opac.search.books;</option>
196                                                         <option value='at-d' class='hide_me'>&opac.search.largePrint;</option>
197                                                         <option value='i'               class='hide_me'>&opac.search.audioBooks;</option>
198                                                         <option value='g'               class='hide_me'>&opac.search.videoRecordings;</option>
199                                                         <option value='j'               class='hide_me'>&opac.search.music;</option>
200                                                 </select>
201                                         </td>
202                                 </tr>
203
204                                 <tr>
205                                         <td class='holds_cell' align='center' colspan='2'>
206                                                 <button id='holds_submit'>&opac.holds.placeHold;</button>
207                                                 <button class='hide_me' id='holds_update'>&common.hold.update;</button>
208                                                 <span style='padding: 20px;'> </span>
209                                                 <button id='holds_cancel'>&common.cancel;</button>
210                                         </td>
211                                 </tr>
212                         </tbody>
213                 </table>
214         
215                 <div class='hide_me' id='holds_success'>&opac.holds.success;</div>
216                 <div class='hide_me' id='holds_failure'>&opac.holds.failure;</div>
217                 <span class='hide_me' id='holds_bad_phone'>
218                         &common.phone.format.help;
219                 </span>
220
221                 <span class='hide_me' id='hold_not_allowed'>
222                         &common.hold.failed;
223                 </span>
224
225         </div>
226
227         <span class='hide_me' id='format_words'>
228                 <span name='at'>&opac.search.books;</span>
229                 <span name='at-d'>&opac.search.largePrint;</span>
230                 <span name='i'>&opac.search.audioBooks;</span>
231                 <span name='g'>&opac.search.videoRecordings;</span>
232                 <span name='j'>&opac.search.music;</span>
233                 <span name='m'>&opac.search.electronic;</span>
234         </span>
235
236         <span class='hide_me' id='holds_explain_adv'>&holds.advanced_options;</span>
237
238         <span class='hide_me' id='holds_pick_good_org'>&common.hold.delivery;</span>
239
240         <span class='hide_me' id='hold_dup_exists'>&common.hold.exists;</span>
241
242         <span class='hide_me' id='hold_dup_exists_override'>&common.hold.exists.override;</span>
243
244         <span id='hold_failed_patron_barred' class='hide_me'>&common.hold.barred;</span>
245
246         <span id='invalid_hold' class='hide_me'>&common.hold.item.invalid;</span>
247
248         <span id='holds_invalid_recipient' class='hide_me'>&common.hold.patron.invalid;</span>
249
250 </div>
251
252