2 # Copyright (C) 2008 Georgia Public Library Service
3 # Bill Erickson <erickson@esilibrary.com>
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
16 "-//W3C//DTD XHTML 1.0 Transitional//EN"
17 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" [
18 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
21 <html xmlns='http://www.w3.org/1999/xhtml'>
23 <title>Vandelay</title>
24 <link type='text/css' rel='stylesheet' href="/vandelay/vandelay.css"/>
25 <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js"></script>
26 <script type="text/javascript" src='/js/dojo/openils/MarcXPathParser.js'></script>
27 <script type="text/javascript" src='/vandelay/vandelay.js'></script>
29 <body class="tundra tall">
30 <div dojoType="dijit.layout.LayoutContainer" orientation="vertical" class="tall">
33 <!-- navigation toolbar -->
34 <div dojoType="dijit.layout.ContentPane" layoutAlign='top'>
35 <div dojoType="dijit.Toolbar" id='toolbar'>
36 <div dojoType="dijit.form.Button" iconClass="dijitEditorIcon dijitEditorIconCopy"
37 onclick="displayGlobalDiv('vl-marc-upload-div');" showLabel="true">Import Records</div>
38 <div dojoType="dijit.form.Button" iconClass="dijitEditorIcon dijitEditorIconCopy"
39 onclick="vlShowQueueSelect();" showLabel="true">Inspect Queue</div>
41 <div dojoType="dijit.form.Button" iconClass="dijitEditorIcon dijitEditorIconCopy"
42 onclick="vlShowBibAttrDefs();" showLabel="true">Bib Attr Definitions</div>
46 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id="vl-generic-progress" class='progress'>
47 <div dojoType="dijit.ProgressBar" style="width:300px" indeterminate="true"></div>
49 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id="vl-generic-progress-with-total" class='hidden progress'>
50 <div dojoType="dijit.ProgressBar" jsId='vlControlledProgressBar' style="width:300px"></div>
53 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-marc-upload-status-div' class='hidden'>
54 <h1>Upload Status</h1><br/>
55 <div id='vl-upload-status-uploading'><h3>Uploading...</h3></div>
56 <div id='vl-upload-status-processing' class='hidden'>
57 <h3>Processing... <span id='vl-upload-status-count'/></h3>
61 <!-- MARC upload form -->
62 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-marc-upload-div' class='hidden'>
63 <h1>Evergreen MARC File Upload</h1><br/>
64 <form id="vl-marc-upload-form" enctype="multipart/form-data">
65 <input type='hidden' name='ses' id='vl-ses-input'/>
66 <table class='form_table'>
70 <select id='vl-record-type' dojoType='dijit.form.FilteringSelect'
71 jsId='vlUploadRecordType' onchange='vlShowUploadForm();'>
72 <option value='bib' selected='selected'>Bibliographic Records</option>
73 <option value='auth'>Authority Records</option>
78 <td>Create a New Upload Queue</td>
80 <input type='text' dojoType='dijit.form.TextBox' id='vl-queue-name' size='32'></input>
82 <td>or Add to an Existing Queue</td>
84 <select jsId='vlUploadQueueSelector' dojoType='dijit.form.FilteringSelect'>
89 <td>Auto-Import Non-Colliding Records</td>
91 <input jsId='vlUploadQueueAutoImport' dojoType='dijit.form.CheckBox'/>
96 <span id="vl-file-label">File to Upload:</span>
98 <td id='vl-input-td' colspan='4'>
99 <input size='48' type="file" name="marc_upload"/>
103 <td align='center' colspan='4'>
104 <button dojoType="dijit.form.Button" onclick="batchUpload()">Upload</button>
111 <!-- record queue grid -->
112 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-queue-div' class='tall hidden'>
113 <h1>Record Queue</h1><br/>
115 var vlQueueGridLayout;
116 function resetVlQueueGridLayout() {
117 vlQueueGridLayout = [{
118 defaultCell: {styles: 'text-align: center;'},
120 {name: '<input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"/>',
121 get: vlQueueGridDrawSelectBox },
124 value:'<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, false, '+
125 'function(){displayGlobalDiv(\'vl-queue-div\');});">View MARC</a>'
128 get: vlGetViewMatches,
129 value:'<a href="javascript:void(0);" onclick="vlLoadMatchUI(RECID);">Matches</a>'
131 {name: 'Import Time', field:'import_time', get:vlGetDateTimeField, selectableColumn:true}
136 <div id='vl-queue-div-grid' class='tall' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
138 <!-- column picker dialog -->
139 <div dojoType="dijit.Dialog" jsId='vlQueueGridColumePickerDialog' title="Column Picker" execute="alert(2);">
140 <table class='form_table'>
142 <tr><th width='33%'>Column</th><th width='33%'>Display</th><th width='33%'>Auto Width</th></tr>
146 <td colspan='3' align='center'>
147 <button jsId='vlQueueGridColumnPickerButton'
148 onclick='vlQueueGridColumePickerDialog.hide();vlQueueGridColumePicker.update();'
149 dojoType='dijit.form.Button'>Done</button>
156 <!-- queue grid navigation row -->
157 <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
158 <table width='100%' style='margin-bottom:0px;'>
161 <button dojoType='dijit.form.Button' onclick='vlImportSelectedRecords();'>Import Selected</button>
162 <button dojoType='dijit.form.Button' onclick="
163 if(confirm('Are you sure want to delete this queue?')) {
164 vlDeleteQueue(currentType, currentQueueId,
165 function() { displayGlobalDiv('vl-marc-upload-div'); });
166 }">Delete Queue</button>
169 <style>.filter_td { padding-right: 5px; border-right: 2px solid #e8e1cf; } </style>
171 <td class='filter_td'>
172 Limit to Collision Matches
173 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches'/>
175 <td class='filter_td' style='padding-left:5px;'>
176 Limit to Non-Imported Records
177 <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowNonImport' checked='checked'/>
179 <td class='filter_td' style='padding-left:5px;'>
181 <select style='width:68px;' jsId='vlQueueDisplayLimit' dojoType='dijit.form.FilteringSelect' value='10'>
182 <option value='10'>10</option>
183 <option value='20'>20</option>
184 <option value='50'>50</option>
185 <option value='100'>100</option>
188 <td class='filter_td' style='padding-left:5px;'>
189 Page <input style='width:36px;' dojoType='dijit.form.TextBox' jsId='vlQueueDisplayPage' value='1'/>
191 <td style='padding-left:5px;'>
192 <button dojoType='dijit.form.Button'
193 onclick='retrieveQueuedRecords(currentType, currentQueueId, handleRetrieveRecords)'>Refresh</button>
197 <td align='right' valign='bottom'>
198 <span style='padding-right:4px;'>
199 <a href='javascript:void(0);' onclick='vlQueueGridPrevPage();'>« Previous Page</a>
201 <span style='padding-right:10px;'>
202 <a href='javascript:void(0);' onclick='vlQueueGridNextPage();'>Next Page »</a>
204 <span style='background:#e8e1cf;padding:3px 0px 0px 6px;-moz-border-radius:6px 0px 0px 0px;'>
205 <a href='javascript:void(0);' onclick='vlQueueGridColumePickerDialog.show();'>Select Columns</a>
213 <div class='' style='height:90%;' dojoType="dijit.layout.ContentPane" layoutAlign='client'>
214 <div dojoType='dojox.Grid' jsId='vlQueueGrid'> </div>
219 <!-- Grid of record matches -->
220 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-match-div' class='tall hidden'>
222 var vlMatchGridLayout;
223 function resetVlMatchGridLayout() {
224 vlMatchGridLayout = [{
225 defaultCell: {styles: 'text-align: center;'},
228 name: 'Overlay Target',
229 get: vlGetOverlayTargetSelector,
230 value: '<input type="radio" name="overlay_target" '+
231 'onclick="vlHandleOverlayTargetSelected();" id="vl-overlay-target-ID"/>'
233 {name:'Source Match Point', field:'src_matchpoint'},
234 {name:'Destination Match Point', field:'dest_matchpoint'},
235 {name: 'ID', field:'id'},
238 value:'<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, '+
239 'true, function(){displayGlobalDiv(\'vl-match-div\');});">View MARC</a>'
241 {name: 'Creator', get: vlGetCreator},
242 {name: 'Create Date', field:'create_date', get: vlGetDateTimeField},
243 {name: 'Last Edit Date', field:'edit_date', get: vlGetDateTimeField},
244 {name: 'Source', field:'source'},
245 {name: 'TCN Source', field:'tcn_source'},
246 {name: 'TCN Value', field:'tcn_value'}
251 <h1>Import Matches</h1><br/>
253 <button dojoType='dijit.form.Button'
254 onclick="displayGlobalDiv('vl-queue-div');">↖ Back To Import Queue</button>
255 <span style='padding-left:20px;'>
256 <input dojoType='dijit.form.CheckBox' jsId='vlOverlayTargetEnable' onclick='vlHandleOverlayTargetSelected'/>
257 Overlay selected record with imported record
261 <div dojoType='dojox.Grid' jsId='vlMatchGrid'> </div>
265 <!-- MARC as HTML -->
266 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-marc-html-div' class='tall hidden'>
267 <h1>MARC Record</h1><br/>
269 <button id='vl-marc-html-done-button' dojoType='dijit.form.Button'>↖ Return</button>
272 <style>#vl-marc-record-html td {padding:0px;}</style>
273 <div id='vl-marc-record-html'> </div>
277 <!-- Form for choosing which queue to view -->
278 <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-queue-select-div' class='tall hidden'>
279 <h1>Select a Queue to Inspect</h1><br/>
280 <table class='form_table'>
284 <select jsId='vlQueueSelectType' dojoType='dijit.form.FilteringSelect' onchange='vlShowQueueSelect();'>
285 <option value='bib' selected='selected'>Bibliographic Records</option>
286 <option value='auth'>Authority Records</option>
293 <select jsId='vlQueueSelectQueueList' dojoType='dijit.form.FilteringSelect'>
299 <button dojoType='dijit.form.Button' onclick='vlFetchQueueFromForm();'>Retrieve Queue</button>
305 <!-- bib attribute definitions -->
306 <div dojoType="dijit.layout.ContentPane" id="vl-bib-attr-defs-div"
307 class='hidden bib-attr-detail-content-pane' title="Bib Attr Definition" style='height:400px;' layoutAlign="client">
309 <div class='vl-bib-attr-defs-actions-div' style='margin:8px;'>
311 <div dojoType="dijit.form.DropDownButton" id="vl-create-bib-attr-button">
312 <span name="create">Create Attribute Definition</span>
313 <span name="update" class="hidden">Update Attribute Definition</span>
315 <div dojoType="dijit.TooltipDialog" execute="saveNewBibAttrRecord(arguments[0]);" id="bib-attr-dialog">
316 <script type='dojo/connect' event='onOpen'>onAttrEditorOpen();</script>
317 <script type='dojo/connect' event='onClose'>onAttrEditorClose();</script>
318 <table class='dijitTooltipTable'>
320 <td><label for="code">Code: </label></td>
321 <td><input id='oils-bib-attr-code' name="code" dojoType="dijit.form.TextBox"/></td>
324 <td><label for="description">Description: </label></td>
325 <td><input id='bib-attr-description' dojoType="dijit.form.TextBox" name="description"> </input></td>
328 <td><label for="amount">Tag(s): </label></td>
329 <td><input id="bib-attr-tag" dojoType="dijit.form.TextBox" name="tag"></input>
330 <div class="hidden" id="bib-attr-tag-tip">
331 <p>You can enter multiple tags, separated by spaces and/or commas.</p>
332 <p>Example: <code>120, 220, 300</code> or <code>120 220 330</code></p></div>
337 <td><label for="amount">Subfield(s): </label></td>
338 <td><input dojoType="dijit.form.TextBox" name="subfield" id="bib-attr-subfield"></input></td>
339 <div class="hidden" id="bib-attr-subfield-tip">
340 <p>You can enter multiple subfields, separated by spaces and/or commas.</p>
341 <p>Example: <code>a, b, j, x</code> or <code>a b j x</code></p></div>
345 <td><label for="ident">Identifer Field?: </label></td>
347 <select dojoType="dijit.form.FilteringSelect" name="ident" id="bib-attr-ident-selector">
348 <option value='f' selected='selected'>False</option>
349 <option value='t'>True</option>
354 <td><label for="amount">XPath (advanced): </label></td>
356 <td><input dojoType="dijit.form.TextBox" id="bib-attr-xpath" name="xpath"></input></td>
359 <td><label for="amount">Remove (advanced): </label></td>
361 <td><input dojoType="dijit.form.TextBox" id="bib-attr-remove" name="remove"></input></td>
363 <tr class="create_bar">
364 <td colspan='2' align='center'>
365 <button dojoType="dijit.form.Button" type="submit"
366 id="bib-attr-create-button">Create</button>
367 <button type="button" dojoType="dijit.form.Button"
368 onclick="dijit.byId('bib-attr-dialog').onCancel();">Cancel</button>
371 <tr class="update_bar">
372 <td colspan='2' align='center'>
373 <button dojoType="dijit.form.Button" type="submit"
374 id="bib-attr-update-button">Update</button>
375 <button type="button" dojoType="dijit.form.Button"
376 onclick="dijit.byId('bib-attr-dialog').onCancel();">Cancel</button>
377 <button dojoType="dijit.form.Button"
379 id="bib-attr-delete-button"
380 style="padding-left: 2em;">Delete record</button>
390 var bibAttrGridLayout = [{
392 {name: 'ID', field: 'id'},
393 {name: 'Code', field:'code', width:'auto'},
394 {name: 'Description', field: "description", width:'auto'},
395 {name: 'Tag', get:getTag},
396 {name: 'Subfield', get: getSubfield},
397 {name: 'Identifier', field:'ident'},
398 {name: 'XPath', field:'xpath', width:'auto'},
399 {name: 'Remove', field:'remove', width:'auto'}
405 <div dojoType='dojox.Grid' jsId='bibAttrGrid'> </div>
411 <div style='text-align:center;width:100%;' dojoType="dijit.layout.ContentPane" layoutAlign='bottom'>
412 Powered by Evergreen!