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 <title>Vandelay</title>
17 <style type="text/css">
18 @import "/js/dojo/dojo/resources/dojo.css";
19 @import "/js/dojo/dijit/themes/tundra/tundra.css";
20 @import "/js/dojo/dijit/tests/css/dijitTests.css";
21 @import "/js/dojo/dojox/grid/_grid/Grid.css";
31 .match_div a:visited {
35 .tall { height:100%; }
36 .hidden { display: none; }
38 <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:true" src="/js/dojo/dojo/dojo.js"></script>
39 <script type="text/javascript" src='vandelay.js'></script>
41 <body class="tundra" class='tall'>
42 <div id="vl-generic-progress" style='width:100%;text-align:center'>
43 <div dojoType="dijit.ProgressBar" style="width:200px" indeterminate="true"></div>
45 <div id="vl-generic-progress-with-total" class='hidden' style='width:100%;text-align:center;'>
46 <div dojoType="dijit.ProgressBar" jsId='vlControlledProgressBar' style="width:200px"></div>
49 <!-- MARC upload form -->
50 <div id='vl-marc-upload-div' class='hidden'>
51 <h1>Evergreen MARC File Upload</h1><br/>
52 <form id="vl-marc-upload-form" enctype="multipart/form-data">
53 <input type='hidden' name='ses' id='vl-ses-input'/>
59 <input type='text' dojoType='dijit.form.TextBox' id='vl-queue-name' size='32'></input>
65 <select id='vl-record-type' dojoType='dijit.form.FilteringSelect'>
66 <option value='bib'>Bibliographic Records</option>
67 <option value='auth'>Authority Records</option>
74 <select name='purpose' dojoType='dijit.form.FilteringSelect'>
75 <option value='import'>Import</option>
76 <option value='overlay'>Overlay</option>
82 <span id="vl-file-label">File to Upload:</span><br>
83 <span id="vl-file-uploading" class='hidden'>Uploading...</span><br>
86 <input size='48' type="file" name="marc_upload">
91 <span id="vl-upload-progress-span" class='hidden'>
92 <div dojoType="dijit.ProgressBar" style="width:200px" indeterminate="true"></div>
97 <td colspan='2' align='center'>
98 <button dojoType="dijit.form.Button" onclick="batchUpload()">Upload</button>
105 <!-- record queue grid -->
106 <div id='vl-queue-div' class='tall hidden'>
107 <h1>Record Queue</h1><br/>
109 var vlQueueGridLayout;
110 function resetVlQueueGridLayout() {
111 vlQueueGridLayout = [{
112 defaultCell: {styles: 'text-align: center;'},
114 {name: 'Selected', get: vlQueueGridDrawSelectBox },
115 {name: 'Import Time', field:'import_time', get:vlGetDateTimeField}
120 <button dojoType='dijit.form.Button' onclick='vlSelectAllGridRecords();'>Select All</button>
121 <button dojoType='dijit.form.Button' onclick='vlSelectNoGridRecords();'>Select None</button>
122 <button dojoType='dijit.form.Button' onclick='vlImportSelectedRecords();'>Import Selected</button>
124 <div dojoType='dojox.Grid' jsId='vlQueueGrid'> </div>
128 <!-- Grid of record matches -->
129 <div id='vl-match-div' class='tall hidden'>
131 var vlMatchGridLayout;
132 function resetVlMatchGridLayout() {
133 vlMatchGridLayout = [{
134 defaultCell: {styles: 'text-align: center;'},
137 name: 'Overlay Target',
138 get: vlGetOverlayTargetSelector,
139 value: '<input type="radio" name="overlay_target" onclick="vlHandleOverlayTargetSelected();" id="vl-overlay-target-ID"/>'
141 {name:'Match Point', field:'field_type'},
142 {name: 'ID', field:'id'},
145 value:'<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID);">View MARC</a>'
147 {name: 'Creator', get: vlGetCreator},
148 {name: 'Create Date', field:'create_date', get: vlGetDateTimeField},
149 {name: 'Last Edit Date', field:'edit_date', get: vlGetDateTimeField},
150 {name: 'Source', field:'source'},
151 {name: 'TCN Source', field:'tcn_source'},
152 {name: 'TCN Value', field:'tcn_value'}
157 <h1>Import Matches</h1></br>
159 <button dojoType='dijit.form.Button'
160 onclick='displayGlobalDiv("vl-queue-div");'>Back To Import Queue...</button>
161 <span style='padding-left:20px;'>
162 <input dojoType='dijit.form.CheckBox' jsId='vlOverlayTargetEnable' onclick='vlHandleOverlayTargetSelected'/>
163 Overlay selected record with imported record
167 <div dojoType='dojox.Grid' jsId='vlMatchGrid'> </div>
172 <!-- MARC as HTML for matched records -->
173 <div id='vl-match-html-div' class='tall hidden'>
174 <h1>MARC Record</h1><br/>
176 <button dojoType='dijit.form.Button'
177 onclick='displayGlobalDiv("vl-match-div");'>Back To Matches...</button>
180 <style>#vl-match-record-html td {padding:0px;}</style>
181 <div id='vl-match-record-html'/>