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:false" 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>
81 <span id="vl-file-label">File to Upload:</span><br>
82 <span id="vl-file-uploading" class='hidden'>Uploading...</span><br>
85 <input size='48' type="file" name="marc_upload">
90 <span id="vl-upload-progress-span" class='hidden'>
91 <div dojoType="dijit.ProgressBar" style="width:200px" indeterminate="true"></div>
96 <td colspan='2' align='center'>
97 <button dojoType="dijit.form.Button" onclick="batchUpload()">Upload</button>
103 <div id='vl-queue-div' class='tall hidden'>
104 <h1>Record Queue</h1><br/>
106 var vlQueueGridLayout;
107 function resetVlQueueGridLayout() {
108 vlQueueGridLayout = [{
109 defaultCell: {styles: 'text-align: center;'},
111 {name: 'Selected', get: vlQueueGridDrawSelectBox },
112 {name: 'Import Time', field:'import_time', get:vlGetDateTimeField}
117 <button dojoType='dijit.form.Button' onclick='vlSelectAllGridRecords();'>Select All</button>
118 <button dojoType='dijit.form.Button' onclick='vlSelectNoGridRecords();'>Select None</button>
119 <button dojoType='dijit.form.Button' onclick='vlImportSelectedRecords();'>Import Selected</button>
121 <div dojoType='dojox.Grid' jsId='vlQueueGrid'> </div>
125 <!-- Grid of record matches -->
126 <div id='vl-match-div' class='tall hidden'>
128 var vlMatchGridLayout;
129 function resetVlMatchGridLayout() {
130 vlMatchGridLayout = [{
131 defaultCell: {styles: 'text-align: center;'},
133 {name: 'ID', field:'id'},
136 value:'<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID);">View MARC</a>'
138 {name: 'Creator', get: vlGetCreator},
139 {name: 'Create Date', field:'create_date', get: vlGetDateTimeField},
140 {name: 'Last Edit Date', field:'edit_date', get: vlGetDateTimeField},
141 {name: 'Source', field:'source'},
142 {name: 'TCN Source', field:'tcn_source'},
143 {name: 'TCN Value', field:'tcn_value'}
148 <h1>Import Matches</h1></br>
150 <button dojoType='dijit.form.Button' onclick='displayGlobalDiv("vl-queue-div");'>Back To Import Queue...</button>
153 <div dojoType='dojox.Grid' jsId='vlMatchGrid'> </div>
158 <!-- MARC as HTML for matched records -->
159 <div id='vl-match-html-div' class='tall hidden'>
160 <h1>MARC Record</h1><br/>
162 <button dojoType='dijit.form.Button' onclick='displayGlobalDiv("vl-match-div");'>Back To Matches...</button>
165 <style>#vl-match-record-html td {padding:0px;}</style>
166 <div id='vl-match-record-html'/>