]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/acq/common/li_table.tt2
Holdings Maintenance link next to Update Barcodes in Acq
[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 class='hidden' name='holdings_maintenance_link' href='javascript:void(0);'>Holdings&nbsp;Maintenance</a></td>
96                     <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>
97                     </td>
98                     <td><a name='copieslink' href='javascript:void(0);'>Copies(<span name='count'>0</span>)</a></td>
99                     <td>
100                         <a name='noteslink' href='javascript:void(0);'>Notes(<span name='notes_count'>0</span>)</a><span name="notes_alert_flag"></span>
101                     </td>
102                     <td><span name='li_state'></span></td>
103                     <td><input type='text' size='8' name='price'/></td>
104                 </tr>
105             </tbody>
106         </table>
107     </div>
108
109     <!-- Bib record / Lineitem details table -->
110     <div id='acq-lit-info-div' class='hidden'>
111         <div class='acq-lit-li-menu-bar'>
112             <div dojoType='dijit.form.Button' id='acq-lit-info-back-button'>&#x2196; Return</div>
113         </div>
114         <table>
115             <tbody id='acq-lit-info-tbody'>
116                 <tr id='acq-lit-info-row'><td name='label'/><td name='value'/></tr>
117             </tbody>
118         </table>
119         <div style='margin-top:10px;' class='hidden' id='acq-lit-info-cat-link'>
120             View in the <a href='/opac/en-US/skin/default/xml/rdetail.xml?r='>Catalog</a>
121         </div>
122         <div style='margin-top:40px;'>
123             <h3 id='acq-lit-marc-order-record-label'>MARC Order Record</h3>
124             <h3 id='acq-lit-marc-real-record-label'>MARC ILS Record</h3>
125             <div>
126                 <div dojoType='dijit.form.Button' jsId='acqLitEditOrderMarc' class='hidden'>Edit MARC Order Record</div>
127             </div>
128             <div id='acq-lit-marc-div' style='margin-top:20px;'> </div>
129         </div>
130     </div>
131
132     <!-- Lineitem notes table -->
133     <div id='acq-lit-notes-div' class='hidden'>
134
135         <div class='acq-lit-li-menu-bar'>
136             <table style='width:100%'>
137                 <tr>
138                     <td style='text-align:left;'>
139                         <div dojoType='dijit.form.Button' id='acq-lit-notes-back-button'>&#x2196; Return</div>
140                     </td>
141                     <td style='text-align:right;'>
142                         <div dojoType="dijit.form.DropDownButton">
143                             <span>New Note</span>
144                             <div dojoType="dijit.TooltipDialog">
145                                 <div class="acq-lit-note-row">
146                                     <div jsId='acqLitCreateNoteText' dojoType='dijit.form.Textarea' style='height:5em; width:25em;' name='note'></div>
147                                 </div>
148                                 <button jsId='acqLitCreateLiNoteSubmit' dojoType='dijit.form.Button' type="submit">Create</button>
149                             </div>
150                         </div>
151                         <div dojoType="dijit.form.DropDownButton">
152                             <span>New Alert</span>
153                             <div dojoType="dijit.TooltipDialog">
154                                 <div class="acq-lit-note-row">
155                                     <label for="acq-lit-alert-alert-text">Choose alert code &nbsp;&nbsp;</label>
156                                     <input id="acq-lit-alert-alert-text" jsId="acqLitAlertAlertText" dojoType="dijit.form.FilteringSelect" labelAttr="code" searchAttr="code" required="true" />
157                                 </div>
158                                 <div class="acq-lit-note-row">
159                                     <label for="acq-lit-alert-value">Additional comments</label>
160                                     <div jsId="acqLitAlertNoteValue" id="acq-lit-alert-value" dojoType="dijit.form.Textarea" name="value"></div>
161                                 </div>
162                                 <button jsId="acqLitCreateAlertSubmit" dojoType="dijit.form.Button" type="submit">Create</button>
163                             </div>
164                         </div>
165                     </td>
166                 </tr>
167             </table>
168         </div>
169
170         <ol id='acq-lit-notes-tbody'>
171             <li id='acq-lit-notes-row'>
172                 <table style='width:100%;' class='oils-generic-table'>
173                     <tr>
174                         <td width='70%' align='left'><span name="alert_code"></span><span style='font-size:120%' name='value'></span></td>
175                         <td align='right' style='padding-right:30px;'>
176                             <span name='edit_time'></span>
177                             <span style='padding-left:4px;'><a name='delete' href='javascript:void(0);' style='color:red;'>Delete</a></span>
178                         </td>
179                     </tr>
180                 </div>
181             </li>
182         </ol>
183     </div>
184
185     <!-- Copies table -->
186     <div id='acq-lit-li-details' class='hidden'>
187         <h2>Copies</h2>
188
189         <div class='acq-lit-li-menu-bar'>
190             <table style='width:100%'>
191                 <tr>
192                     <td class="acq-lit-li-menu-left">
193                         <div dojoType='dijit.form.Button' id='acq-lit-copies-back-button'>&#x2196; Return</div>
194                         <span style='margin-left:10px;padding-left:10px;border-left:2px solid #aaa;'>
195                             Item Count: 
196                             <input dojoType='dijit.form.NumberTextBox' jsId='acqLitCopyCountInput'  
197                                 constraints="{min:0,max:1000,places:0}" style='width:40px' value='0'></input> 
198                             <div dojoType='dijit.form.Button' jsId='acqLitAddCopyCount'>Go</div>
199                         </span>
200                     </td>
201                     <td class="acq-lit-li-menu-right">
202                         <span>
203                             <div dojoType='dijit.form.Button' jsId='acqLitSaveCopies'>Save Changes</div>
204                         </span>
205                         <span id='acq-lit-update-copies-progress' class='hidden'>
206                             <span dojoType="dijit.ProgressBar" style="width:300px" jsId="litUpdateCopiesProgress"></span>
207                         </span>
208                     </td>
209                 </tr>
210             </table>
211         </div>
212
213         <table id='acq-lit-li-details-table'>
214             <tbody style='background-color:#ddd;'>
215                 <tr id='acq-lit-li-details-batch-row'>
216                     <td><div name='owning_lib'/></td>
217                     <td><div name='location'/></td>
218                     <td><div name='collection_code'/></td>
219                     <td><div name='fund'/></td>
220                     <td><div name='circ_modifier'/></td>
221                     <td><div name='cn_label'/></td>
222                     <td colspan='3' style='text-align:left;'>
223                         <div dojoType='dijit.form.Button' jsId='acqLitBatchUpdateCopies'>Batch Update</div>
224                     </td>
225                 </tr>
226             </tbody>
227
228             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
229
230             <tbody id='acq-lit-distrib-formula-tbody'>
231                 <tr id='acq-lit-distrib-form-row'>
232                     <td colspan='0'>
233                         <span>Distribution Formulas</span>
234                         <div name='selector'></div>
235                         <div name='set_button'></div>
236                         <div name="reset_button"></div>
237                     </td>
238                 </tr>
239             </tbody>
240
241             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
242             <tbody id="acq-lit-distrib-applied-tbody" class="hidden">
243                 <tr>
244                     <td colspan="5" id="acq-lit-distrib-applied-heading">
245                         Distribution formulas applied to this lineitem:
246                     </td>
247                 </tr>
248                 <tr id="acq-lit-distrib-applied-row" class="acq-lit-distrib-applied-row">
249                     <th></th>
250                     <td colspan="4"></td>
251                 </tr>
252             </tbody>
253
254             <tbody><tr><td class='acq-lit-table-spacer' colspan='0'/></tr></tbody>
255             <tbody style='font-weight:bold;'>
256                 <tr>
257                     <td style='margin-top:30px;'>Owning Branch</td>
258                     <td>Shelving Location</td>
259                     <td>Collection Code</td>
260                     <td>Fund</td>
261                     <td>Circ Modifier</td>
262                     <td>Callnumber</td>
263                     <td>Barcode</td>
264                     <td>Notes</td>
265                     <td colspan='0'>
266                 </tr>
267             </tbody>
268             <tbody id='acq-lit-li-details-tbody' class='oils-generic-table'>
269                 <tr id='acq-lit-li-details-row'>
270                     <td><div name='owning_lib'/></td>
271                     <td><div name='location'/></td>
272                     <td><div name='collection_code'/></td>
273                     <td><div name='fund'/></td>
274                     <td><div name='circ_modifier'/></td>
275                     <td><div name='cn_label'/></td>
276                     <td><div name='barcode'/></td>
277                     <td><div name='note'/></td>
278                     <td><a href='javascript:void(0);' name='receive'>Mark&nbsp;Received</a><a href='javascript:void(0);' name='unreceive'>Un-Receive</a></td>
279                     <td><div name='delete' dojoType='dijit.form.Button' style='color:red;'>X</div></td>
280                 </tr>
281             </tbody>
282         </table>
283     </div>
284
285
286     <!-- Copies table -->
287     <div id='acq-lit-real-copies-div' class='hidden'>
288         <h2>Copies</h2>
289
290         <div class='acq-lit-li-menu-bar'>
291             <table style='width:100%'>
292                 <tr>
293                     <td style='text-align:left;'>
294                         <div dojoType='dijit.form.Button' id='acq-lit-real-copies-back-button'>&#x2196; Return</div>
295                     </td>
296                     <td style='text-align:right;'>
297                         <span>
298                             <div dojoType='dijit.form.Button' jsId='acqLitSaveRealCopies'>Save Changes</div>
299                         </span>
300                     </td>
301                 </tr>
302             </table>
303         </div>
304
305         <table id='acq-lit-real-copies-table'>
306             <tbody style='font-weight:bold;'>
307                 <tr>
308                     <td style='margin-top:30px;'>Owning Branch</td>
309                     <td>Shelving Location</td>
310                     <td>Circ Modifier</td>
311                     <td>Callnumber</td>
312                     <td>Barcode</td>
313                     <td colspan='0'>
314                 </tr>
315             </tbody>
316             <tbody id='acq-lit-real-copies-tbody' class='oils-generic-table'>
317                 <tr id='acq-lit-real-copies-row'>
318                     <td><div name='owning_lib'/></td>
319                     <td><div name='location'/></td>
320                     <td><div name='circ_modifier'/></td>
321                     <td><div name='label'/></td>
322                     <td><div name='barcode'/></td>
323                 </tr>
324             </tbody>
325         </table>
326     </div>
327
328     <div class='hidden' id='acq-lit-progress-numbers'>
329         <table class='oils-generic-table'>
330             <tbody>
331                 <tr>
332                     <td>Lineitems Processed</td>
333                     <td><span id='acq-pl-lit-li-processed'>0</span></td>
334                 </tr>
335                 <tr>
336                     <td>Items Processed</td>
337                     <td><span id='acq-pl-lit-lid-processed'>0</span></td>
338                 </tr>
339                 <tr>
340                     <td>Debits Encumbered</td>
341                     <td><span id='acq-pl-lit-debits-processed'>0</span></td>
342                 </tr>
343                 <tr>
344                     <td>Bib Records Imported</td>
345                     <td><span id='acq-pl-lit-bibs-processed'>0</span></td>
346                 </tr>
347                 <tr>
348                     <td>Bib Records Indexed</td>
349                     <td><span id='acq-pl-lit-indexed-processed'>0</span></td>
350                 </tr>
351                 <tr>
352                     <td>Copies Processed</td>
353                     <td><span id='acq-pl-lit-copies-processed'>0</span></td>
354                 </tr>
355             </tbody>
356         </table>
357     </div>
358
359     <div class='hidden'>
360         <div dojoType='dijit.Dialog' jsId='acqLitPoCreateDialog'>
361             <table class='oils-generic-table'>
362                 <tr>
363                     <td>Ordering Agency</td>
364                     <td><div name='ordering_agency' id='acq-lit-po-agency'/></td>
365                 </tr>
366                 <tr>
367                     <td>Provider</td>
368                     <td><div name='provider' id='acq-lit-po-provider'/></td>
369                 </tr>
370                 <tr>
371                     <td>All Lineitems</td>
372                     <td><input checked='checked' name='create_from' value='all' dojoType='dijit.form.RadioButton'/></td>
373                 </tr>
374                 <tr>
375                     <td>Selected Lineitems</td>
376                     <td><input name='create_from' value='selected' dojoType='dijit.form.RadioButton'/></td>
377                 </tr>
378                 <tr>
379                     <td>Import Bibs and Create Copies</td>
380                     <td><input name='create_assets' dojoType='dijit.form.CheckBox'/></td>
381                 </tr>
382                 <tr>
383                     <td colspan='2'>
384                         <div dojoType='dijit.form.Button' type='submit' jsId='acqLitCreatePoSubmit'>Submit</div>
385                     </td>
386                 </tr>
387             </table>
388         </div>
389     </div>
390
391     <div dojoType="dijit.Dialog" jsId='acqLitSavePlDialog'>
392         <table class='dijitTooltipTable'>
393             <tr>
394                 <td colspan='2'>
395                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
396                     <label for="name">Save selected</label>
397                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
398                     <label for="name">Save all</label>
399                 </td>
400             </tr>
401             <tr><td colspan='2'><hr/></td></tr>
402             <tr>
403                 <td><label for="new_name">Save as Selection List: </label></td>
404                 <td><input dojoType="dijit.form.TextBox" name="new_name"/></td>
405             </tr>
406             <tr>
407                 <td><label for="existing_pl">Add to Selection List: </label></td>
408                 <td>
409                     <input jsId='acqLitAddExistingSelect' dojoType="dijit.form.FilteringSelect" 
410                         name="existing_pl" searchAttr='name' displayAttr='name'/>
411                 </td>
412             </tr>
413             <tr>
414                 <td colspan='2' align='center'>
415                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSavePlButton'>Save</button>
416                 </td>
417             </tr>
418         </table>
419     </div>
420
421     <div dojoType="dijit.Dialog" jsId='acqLitChangeLiStateDialog'>
422         <table class='dijitTooltipTable'>
423             <tr>
424                 <td>
425                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' checked='checked' value='selected'/>
426                     <label for="name">Mark selected</label>
427                     <input dojoType="dijit.form.RadioButton" name="which" type='radio' value='all'/>
428                     <label for="name">Mark all</label>
429                 </td>
430             </tr>
431             <tr>
432                 <td colspan='2' align='center'>
433                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitCancelLiStateButton'>Cancel</button>
434                     <button dojoType='dijit.form.Button' type="submit" jsId='acqLitSaveLiStateButton'>Go</button>
435                 </td>
436             </tr>
437         </table>
438     </div>
439
440
441     <div class='hidden'>
442         <div dojoType='openils.widget.ProgressDialog' jsId='progressDialog'/>
443     </div>
444
445 </div>
446