]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/common/li_table.tt2
Acq: add a tooltip to show lineitem alert text description along with code
[working/Evergreen.git] / Open-ILS / web / templates / default / acq / common / li_table.tt2
1 <script src='[% ctx.media_prefix %]/js/ui/default/acq/common/li_table.js'> </script>
2 <div id='acq-lit-table-container'>
3     <div id='acq-lit-table-div' class='hidden'>
4
5         <!-- Lineitem (bib record) list -->
6         <table id='acq-lit-table' class='oils-generic-table'>
7             <thead>
8                 <tr>
9                     <th colspan='0'>
10                         <table style='width:100%;'>
11                             <tr>
12                                 <td>
13                                     <span>
14                                         <select dojoType='dijit.form.FilteringSelect' value='_' jsId='acqLitLiActionsSelector'>
15                                             <option mask='*'  value='_'>--Actions--</option>
16                                             <option mask='sr' value='save_picklist'>Save Items To Selection List</option>
17                                             <option mask='pl' value='selector_ready'>Mark Ready for Selector</option>
18                                             <option mask='pl' value='order_ready'>Mark Ready for Order</option>
19                                             <option mask='*'  value='delete_selected'>Delete Selected Items</option>
20                                             <option mask='*'  value='add_brief_record'>Add Brief Record</option>
21                                             <option mask='*'  value='export_attr_list'>Export Single Attribute List</option>
22                                             <option mask='po' value='' disabled='disabled'>----PO----</option>
23                                             <option mask='sr|pl' value='create_order'>Create Purchase Order</option>
24                                             <option mask='po' value='create_assets'>Load Bibs and Items</option>
25                                             <option mask='po' value='receive_po'>Mark Purchase Order as Received</option>
26                                             <option mask='po' value='rollback_receive_po'>Un-Receive Purchase Order</option>
27                                             <option mask='po' value='print_po'>Print Purchase Order</option>
28                                         </select>
29                                         <span id="acq-lit-export-attr-holder" class="hidden">
30                                             <input dojoType="dijit.form.FilteringSelect" id="acq-lit-export-attr" jsId="acqLitExportAttrSelector" labelAttr="description" searchAttr="description" />
31                                             <span dojoType="dijit.form.Button" jsId="acqLitExportAttrButton">Export List</span>
32                                         </span>
33                                     </span>
34                                     <span id='acq-lit-generic-progress' class='hidden'>
35                                         <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litGenericProgress"></span>
36                                     </span>
37                                 </td>
38                                 <td>
39                                     <div style='width:100%;text-align:right;'>
40                                         <span style='padding-right:15px;'>
41                                             <a href='javascript:void(0);' id='acq-lit-prev' style='visibility:hidden'>&#171; Previous</a>
42                                             <a href='javascript:void(0);' id='acq-lit-next' style='visibility:hidden'>Next &#187;</a>
43                                         </span>
44                                     </div>
45                                 </td>
46                             </tr>
47                         </table>
48                     </th>
49                 </tr>
50             </thead>
51             <tbody><tr><td colspan='0' style='height:20px;'/></tr></tbody>
52             <tbody style='font-weight:bold;border:1px solid #aaa;'>
53                 <tr>
54                     <td><span><a id='acq-lit-select-toggle' href='javascript:void(0);'>&#x2713</a></span></td>
55                     <td>Line Items</td>
56                     <td></td>
57                     <td></td>
58                     <td>Items</td>
59                     <td>Notes</td>
60                     <td>Status</td>
61                     <td>Price</td>
62                 </tr>
63             </tbody>
64             <tbody id='acq-lit-tbody'>
65                 <tr id='acq-lit-row' class='acq-lit-row'>
66                     <td name='selector'><input type='checkbox' name='selectbox'/></td>
67                     <td style='width:75%;'>
68                         <table style='width:100%;'>
69                             <tbody>
70                                 <tr>
71                                     <td rowspan='2' style='width:43px;'><img style='width:40px;height:65px;' name='jacket'></img></td>
72                                     <td style='width:70%;font-weight:bold;'>
73                                         <a attr='title' href='javascript:void(0);'></a>
74                                         <span name='pl' class='hidden'>(<a name='pl_link' href='javascript:void(0);'></a>)</span>
75                                         <span name='po' class='hidden'>(<a name='po_link' href='javascript:void(0);'>PO</a>)</span>
76                                     </td>
77                                     <td rowspan='2' style='text-align:right'>
78                                     </td>
79                                 </tr>
80                                 <tr class='acq-lit-alt-row'>
81                                     <td colspan='0'>
82                                         <span attr='author'></span>
83                                         <span attr='isbn'></span>
84                                         <span attr='issn'></span>
85                                         <span attr='edition'></span>
86                                         <span attr='pubdate'></span>
87                                         <span attr='publisher'></span>
88                                         <span name='source_label'></span>
89                                     </td>
90                                 </tr>
91                             </tbody>
92                         </table>
93                     </td>
94                     <td><a class='hidden' name='real_copies_link' href='javascript:void(0);'>Update&nbsp;Barcodes</a></td>
95                     <td><a name='receive_link' href='javascript:void(0);'>Mark&nbsp;Received</a><a name='unreceive_link' href='javascript:void(0);'>Un-Receive</a></td>
96                     </td>
97                     <td><a name='copieslink' href='javascript:void(0);'>Copies(<span name='count'>0</span>)</a></td>
98                     <td>
99                         <a name='noteslink' href='javascript:void(0);'>Notes(<span name='notes_count'>0</span>)</a><span name="notes_alert_flag"></span>
100                     </td>
101                     <td><span name='li_state'></span></td>
102                     <td><input type='text' size='8' name='price'/></td>
103                 </tr>
104             </tbody>
105         </table>
106     </div>
107
108     <!-- Bib record / Lineitem details table -->
109     <div id='acq-lit-info-div' class='hidden'>
110         <div class='acq-lit-li-menu-bar'>
111             <div dojoType='dijit.form.Button' id='acq-lit-info-back-button'>&#x2196; Return</div>
112         </div>
113         <table>
114             <tbody id='acq-lit-info-tbody'>
115                 <tr id='acq-lit-info-row'><td name='label'/><td name='value'/></tr>
116             </tbody>
117         </table>
118         <div style='margin-top:10px;' class='hidden' id='acq-lit-info-cat-link'>
119             View in the <a href='/opac/en-US/skin/default/xml/rdetail.xml?r='>Catalog</a>
120         </div>
121         <div style='margin-top:40px;'>
122             <h3 id='acq-lit-marc-order-record-label'>MARC Order Record</h3>
123             <h3 id='acq-lit-marc-real-record-label'>MARC ILS Record</h3>
124             <div>
125                 <div dojoType='dijit.form.Button' jsId='acqLitEditOrderMarc' class='hidden'>Edit MARC Order Record</div>
126             </div>
127             <div id='acq-lit-marc-div' style='margin-top:20px;'> </div>
128         </div>
129     </div>
130
131     <!-- Lineitem notes table -->
132     <div id='acq-lit-notes-div' class='hidden'>
133
134         <div class='acq-lit-li-menu-bar'>
135             <table style='width:100%'>
136                 <tr>
137                     <td style='text-align:left;'>
138                         <div dojoType='dijit.form.Button' id='acq-lit-notes-back-button'>&#x2196; Return</div>
139                     </td>
140                     <td style='text-align:right;'>
141                         <div dojoType="dijit.form.DropDownButton">
142                             <span>New Note</span>
143                             <div dojoType="dijit.TooltipDialog">
144                                 <div class="acq-lit-note-row">
145                                     <div jsId='acqLitCreateNoteText' dojoType='dijit.form.Textarea' style='height:5em; width:25em;' name='note'></div>
146                                 </div>
147                                 <button jsId='acqLitCreateLiNoteSubmit' dojoType='dijit.form.Button' type="submit">Create</button>
148                             </div>
149                         </div>
150                         <div dojoType="dijit.form.DropDownButton">
151                             <span>New Alert</span>
152                             <div dojoType="dijit.TooltipDialog">
153                                 <div class="acq-lit-note-row">
154                                     <label for="acq-lit-alert-alert-text">Choose alert code &nbsp;&nbsp;</label>
155                                     <input id="acq-lit-alert-alert-text" jsId="acqLitAlertAlertText" dojoType="dijit.form.FilteringSelect" labelAttr="code" searchAttr="code" required="true" />
156                                 </div>
157                                 <div class="acq-lit-note-row">
158                                     <label for="acq-lit-alert-value">Additional comments</label>
159                                     <div jsId="acqLitAlertNoteValue" id="acq-lit-alert-value" dojoType="dijit.form.Textarea" name="value"></div>
160                                 </div>
161                                 <button jsId="acqLitCreateAlertSubmit" dojoType="dijit.form.Button" type="submit">Create</button>
162                             </div>
163                         </div>
164                     </td>
165                 </tr>
166             </table>
167         </div>
168
169         <ol id='acq-lit-notes-tbody'>
170             <li id='acq-lit-notes-row'>
171                 <table style='width:100%;' class='oils-generic-table'>
172                     <tr>
173                         <td width='70%' align='left'><span name="alert_code"></span><span style='font-size:120%' name='value'></span></td>
174                         <td align='right' style='padding-right:30px;'>
175                             <span name='edit_time'></span>
176                             <span style='padding-left:4px;'><a name='delete' href='javascript:void(0);' style='color:red;'>Delete</a></span>
177                         </td>
178                     </tr>
179                 </div>
180             </li>
181         </ol>
182     </div>
183
184     <!-- Copies table -->
185     <div id='acq-lit-li-details' class='hidden'>
186         <h2>Copies</h2>
187
188         <div class='acq-lit-li-menu-bar'>
189             <table style='width:100%'>
190                 <tr>
191                     <td class="acq-lit-li-menu-left">
192                         <div dojoType='dijit.form.Button' id='acq-lit-copies-back-button'>&#x2196; Return</div>
193                         <span style='margin-left:10px;padding-left:10px;border-left:2px solid #aaa;'>
194                             Item Count: 
195                             <input dojoType='dijit.form.NumberTextBox' jsId='acqLitCopyCountInput'  
196                                 constraints="{min:0,max:1000,places:0}" style='width:40px' value='0'></input> 
197                             <div dojoType='dijit.form.Button' jsId='acqLitAddCopyCount'>Go</div>
198                         </span>
199                     </td>
200                     <td class="acq-lit-li-menu-right">
201                         <span>
202                             <div dojoType='dijit.form.Button' jsId='acqLitSaveCopies'>Save Changes</div>
203                         </span>
204                         <span id='acq-lit-update-copies-progress' class='hidden'>
205                             <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litUpdateCopiesProgress"></span>
206                         </span>
207                     </td>
208                 </tr>
209             </table>
210         </div>
211
212         <table id='acq-lit-li-details-table'>
213             <tbody style='background-color:#ddd;'>
214                 <tr id='acq-lit-li-details-batch-row'>
215                     <td><div name='owning_lib'/></td>
216                     <td><div name='location'/></td>
217                     <td><div name='collection_code'/></td>
218                     <td><div name='fund'/></td>
219                     <td><div name='circ_modifier'/></td>
220                     <td><div name='cn_label'/></td>
221                     <td colspan='3' style='text-align:left;'>
222                         <div dojoType='dijit.form.Button' jsId='acqLitBatchUpdateCopies'>Batch Update</div>
223                     </td>
224                 </tr>
225             </tbody>
226
227             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
228
229             <tbody id='acq-lit-distrib-formula-tbody'>
230                 <tr id='acq-lit-distrib-form-row'>
231                     <td colspan='0'>
232                         <span>Distribution Formulas</span>
233                         <div name='selector'></div>
234                         <div name='set_button'></div>
235                         <div name="reset_button"></div>
236                     </td>
237                 </tr>
238             </tbody>
239
240             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
241             <tbody id="acq-lit-distrib-applied-tbody" class="hidden">
242                 <tr>
243                     <td colspan="5" id="acq-lit-distrib-applied-heading">
244                         Distribution formulas applied to this lineitem:
245                     </td>
246                 </tr>
247                 <tr id="acq-lit-distrib-applied-row" class="acq-lit-distrib-applied-row">
248                     <th></th>
249                     <td colspan="4"></td>
250                 </tr>
251             </tbody>
252
253             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
254             <tbody style='font-weight:bold;'>
255                 <tr>
256                     <td style='margin-top:30px;'>Owning Branch</td>
257                     <td>Shelving Location</td>
258                     <td>Collection Code</td>
259                     <td>Fund</td>
260                     <td>Circ Modifier</td>
261                     <td>Callnumber</td>
262                     <td>Barcode</td>
263                     <td>Notes</td>
264                     <td colspan='0'>
265                 </tr>
266             </tbody>
267             <tbody id='acq-lit-li-details-tbody' class='oils-generic-table'>
268                 <tr id='acq-lit-li-details-row'>
269                     <td><div name='owning_lib'/></td>
270                     <td><div name='location'/></td>
271                     <td><div name='collection_code'/></td>
272                     <td><div name='fund'/></td>
273                     <td><div name='circ_modifier'/></td>
274                     <td><div name='cn_label'/></td>
275                     <td><div name='barcode'/></td>
276                     <td><div name='note'/></td>
277                     <td><a href='javascript:void(0);' name='receive'>Mark&nbsp;Received</a><a href='javascript:void(0);' name='unreceive'>Un-Receive</a></td>
278                     <td><div name='delete' dojoType='dijit.form.Button' style='color:red;'>X</div></td>
279                 </tr>
280             </tbody>
281         </table>
282     </div>
283
284
285     <!-- Copies table -->
286     <div id='acq-lit-real-copies-div' class='hidden'>
287         <h2>Copies</h2>
288
289         <div class='acq-lit-li-menu-bar'>
290             <table style='width:100%'>
291                 <tr>
292                     <td style='text-align:left;'>
293                         <div dojoType='dijit.form.Button' id='acq-lit-real-copies-back-button'>&#x2196; Return</div>
294                     </td>
295                     <td style='text-align:right;'>
296                         <span>
297                             <div dojoType='dijit.form.Button' jsId='acqLitSaveRealCopies'>Save Changes</div>
298                         </span>
299                     </td>
300                 </tr>
301             </table>
302         </div>
303
304         <table id='acq-lit-real-copies-table'>
305             <tbody style='font-weight:bold;'>
306                 <tr>
307                     <td style='margin-top:30px;'>Owning Branch</td>
308                     <td>Shelving Location</td>
309                     <td>Circ Modifier</td>
310                     <td>Callnumber</td>
311                     <td>Barcode</td>
312                     <td colspan='0'>
313                 </tr>
314             </tbody>
315             <tbody id='acq-lit-real-copies-tbody' class='oils-generic-table'>
316                 <tr id='acq-lit-real-copies-row'>
317                     <td><div name='owning_lib'/></td>
318                     <td><div name='location'/></td>
319                     <td><div name='circ_modifier'/></td>
320                     <td><div name='label'/></td>
321                     <td><div name='barcode'/></td>
322                 </tr>
323             </tbody>
324         </table>
325     </div>
326
327     <div class='hidden' id='acq-lit-progress-numbers'>
328         <table class='oils-generic-table'>
329             <tbody>
330                 <tr>
331                     <td>Lineitems Processed</td>
332                     <td><span id='acq-pl-lit-li-processed'>0</span></td>
333                 </tr>
334                 <tr>
335                     <td>Items Processed</td>
336                     <td><span id='acq-pl-lit-lid-processed'>0</span></td>
337                 </tr>
338                 <tr>
339                     <td>Debits Encumbered</td>
340                     <td><span id='acq-pl-lit-debits-processed'>0</span></td>
341                 </tr>
342                 <tr>
343                     <td>Bib Records Imported</td>
344                     <td><span id='acq-pl-lit-bibs-processed'>0</span></td>
345                 </tr>
346                 <tr>
347                     <td>Bib Records Indexed</td>
348                     <td><span id='acq-pl-lit-indexed-processed'>0</span></td>
349                 </tr>
350                 <tr>
351                     <td>Copies Processed</td>
352                     <td><span id='acq-pl-lit-copies-processed'>0</span></td>
353                 </tr>
354             </tbody>
355         </table>
356     </div>
357
358     <div class='hidden'>
359         <div dojoType='dijit.Dialog' jsId='acqLitPoCreateDialog'>
360             <table class='oils-generic-table'>
361                 <tr>
362                     <td>Ordering Agency</td>
363                     <td><div name='ordering_agency' id='acq-lit-po-agency'/></td>
364                 </tr>
365                 <tr>
366                     <td>Provider</td>
367                     <td><div name='provider' id='acq-lit-po-provider'/></td>
368                 </tr>
369                 <tr>
370                     <td>All Lineitems</td>
371                     <td><input checked='checked' name='create_from' value='all' dojoType='dijit.form.RadioButton'/></td>
372                 </tr>
373                 <tr>
374                     <td>Selected Lineitems</td>
375                     <td><input name='create_from' value='selected' dojoType='dijit.form.RadioButton'/></td>
376                 </tr>
377                 <tr>
378                     <td>Import Bibs and Create Copies</td>
379                     <td><input name='create_assets' dojoType='dijit.form.CheckBox'/></td>
380                 </tr>
381                 <tr>
382                     <td colspan='2'>
383                         <div dojoType='dijit.form.Button' type='submit' jsId='acqLitCreatePoSubmit'>Submit</div>
384                     </td>
385                 </tr>
386             </table>
387         </div>
388     </div>
389
390     <div dojoType="dijit.Dialog" jsId='acqLitSavePlDialog'>
391         <table class='dijitTooltipTable'>
392             <tr>
393                 <td colspan='2'>
394                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
395                     <label for="name">Save selected</label>
396                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
397                     <label for="name">Save all</label>
398                 </td>
399             </tr>
400             <tr><td colspan='2'><hr/></td></tr>
401             <tr>
402                 <td><label for="new_name">Save as Selection List: </label></td>
403                 <td><input dojoType="dijit.form.TextBox" name="new_name"/></td>
404             </tr>
405             <tr>
406                 <td><label for="existing_pl">Add to Selection List: </label></td>
407                 <td>
408                     <input jsId='acqLitAddExistingSelect' dojoType="dijit.form.FilteringSelect" 
409                         name="existing_pl" searchAttr='name' displayAttr='name'/>
410                 </td>
411             </tr>
412             <tr>
413                 <td colspan='2' align='center'>
414                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSavePlButton'>Save</button>
415                 </td>
416             </tr>
417         </table>
418     </div>
419
420     <div dojoType="dijit.Dialog" jsId='acqLitChangeLiStateDialog'>
421         <table class='dijitTooltipTable'>
422             <tr>
423                 <td>
424                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
425                     <label for="name">Mark selected</label>
426                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
427                     <label for="name">Mark all</label>
428                 </td>
429             </tr>
430             <tr>
431                 <td colspan='2' align='center'>
432                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitCancelLiStateButton'>Cancel</button>
433                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSaveLiStateButton'>Go</button>
434                 </td>
435             </tr>
436         </table>
437     </div>
438
439
440     <div class='hidden'>
441         <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/>
442     </div>
443
444 </div>
445