added record export form into the vandelay interface
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 8 Oct 2008 22:22:47 +0000 (22:22 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 8 Oct 2008 22:22:47 +0000 (22:22 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10797 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/vandelay.dtd
Open-ILS/web/vandelay/inc/export.xml [new file with mode: 0644]
Open-ILS/web/vandelay/inc/toolbar.xml
Open-ILS/web/vandelay/vandelay.xml

index dbbb061..05845c6 100644 (file)
 <!ENTITY vandelay.xpath "XPath">
 <!ENTITY vandelay.save "Save Changes">
 <!ENTITY vandelay.record_saved "Record Saved">
+<!ENTITY vandelay.export.records "Export Records">
+<!ENTITY vandelay.export.use_field_no "Use Field Number">
+<!ENTITY vandelay.export.from_csv "From CSV File">
+<!ENTITY vandelay.export.record_id "Record ID">
+<!ENTITY vandelay.export.or "Or">
+<!ENTITY vandelay.export.format "Record Format">
+<!ENTITY vandelay.export.format.marc21 "MARC21">
+<!ENTITY vandelay.export.format.unimarc "UNIMARC">
+<!ENTITY vandelay.export.format.xml "MARC XML">
+<!ENTITY vandelay.export.format.bre "Evergreen Record Entry">
+<!ENTITY vandelay.export.encoding "Record Encoding">
+<!ENTITY vandelay.export.utf8 "UTF-8">
+<!ENTITY vandelay.export.marc8 "MARC8">
+<!ENTITY vandelay.export.holdings "Include holdings in Bibliographic Records">
+<!ENTITY vandelay.export.retrieve "Retrieve Records">
+<!ENTITY vandelay.export.field_no_hint "(starting from 0)">
diff --git a/Open-ILS/web/vandelay/inc/export.xml b/Open-ILS/web/vandelay/inc/export.xml
new file mode 100644 (file)
index 0000000..27fadc9
--- /dev/null
@@ -0,0 +1,61 @@
+<x>
+<h1>&vandelay.export.records;</h1><br/>
+<form method="POST" enctype="multipart/form-data" action='/exporter'>
+    <table class='form_table'>
+        <tr>
+            <td>&vandelay.export.use_field_no;</td>
+            <td>
+                <input dojoType='dijit.form.TextBox' type="text" size="2" maxlength="2" name="idcolumn" value="0"/>
+                &vandelay.export.field_no_hint;
+            </td>
+        </tr>
+        <tr>
+            <td>&vandelay.export.from_csv;</td>
+            <td><input type="file" name="idfile"/></td>
+        </tr>
+        <tr><td colspan='2'><b>&vandelay.export.or;</b></td></tr>
+        <tr>
+            <td>&vandelay.export.record_id;</td>
+            <td><input dojoType='dijit.form.TextBox' type="text" size="12" maxlength="12" name="id"/></td>
+        </tr>
+        <tr>
+            <td>&vandelay.record.type;</td>
+            <td>
+                <select name="rectype" dojoType='dijit.form.FilteringSelect'>
+                    <option value="biblio">&vandelay.bib.records;</option>
+                    <option value="authority">&vandelay.auth.records;</option>
+                </select>
+            </td>
+        </tr>
+        <tr>
+            <td>&vandelay.export.format;</td>
+            <td>
+                <select name="format" dojoType='dijit.form.FilteringSelect'>
+                    <option value="USMARC">&vandelay.export.format.marc21;</option>
+                    <option value="UNIMARC">&vandelay.export.format.unimarc;</option>
+                    <option value="XML">&vandelay.export.format.xml;</option>
+                    <option value="BRE">&vandelay.export.format.bre;</option>
+                </select>
+            </td>
+        </tr>
+        <tr>
+            <td>&vandelay.export.encoding;</td>
+            <td>
+                <select name="encoding" dojoType='dijit.form.FilteringSelect'>
+                    <option value="UTF-8">&vandelay.export.utf8;</option>
+                    <option value="MARC8">&vandelay.export.marc8;</option>
+                </select>
+            </td>
+        </tr>
+        <tr>
+            <td>&vandelay.export.holdings;</td>
+            <td><input dojoType='dijit.form.CheckBox' type="checkbox" name="holdings" value="1"/></td>
+        </tr>
+        <tr>
+            <td colspan='2'>
+                <button dojoType='dijit.form.Button' type="submit" value="Retrieve Records">&vandelay.export.retrieve;</button>
+            </td>
+        </tr>
+    </table>
+</form>
+</x>
index 5ce5431..ad067d8 100644 (file)
@@ -1,5 +1,7 @@
 <div dojoType="dijit.Toolbar" id='toolbar'>
     <div dojoType="dijit.form.Button" iconClass="dijitEditorIcon dijitEditorIconCopy" 
+        onclick="displayGlobalDiv('vl-marc-export-div');" showLabel="true">&vandelay.export.records;</div>
+    <div dojoType="dijit.form.Button" iconClass="dijitEditorIcon dijitEditorIconCopy" 
         onclick="displayGlobalDiv('vl-marc-upload-div');" showLabel="true">&vandelay.import.records;</div>
     <div dojoType="dijit.form.Button" iconClass="dijitEditorIcon dijitEditorIconCopy" 
         onclick="vlShowQueueSelect();" showLabel="true">&vandelay.inspect.queue;</div>
index cd57dc0..7de894d 100644 (file)
@@ -34,6 +34,9 @@
             <div dojoType="dijit.layout.ContentPane" layoutAlign='client'>
                 <!--#include virtual="inc/progress.xml"-->
             </div>
+            <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-marc-export-div' class='hidden'>
+                <!--#include virtual="inc/export.xml"-->
+            </div>
             <div dojoType="dijit.layout.ContentPane" layoutAlign='client' id='vl-marc-upload-div' class='hidden'>
                 <!--#include virtual="inc/upload.xml"-->
             </div>