[open-ils-commits] r10797 - in trunk/Open-ILS/web: opac/locale/en-US vandelay vandelay/inc

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 8 18:22:52 EDT 2008


Author: erickson
Date: 2008-10-08 18:22:47 -0400 (Wed, 08 Oct 2008)
New Revision: 10797

Added:
   trunk/Open-ILS/web/vandelay/inc/export.xml
Modified:
   trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd
   trunk/Open-ILS/web/vandelay/inc/toolbar.xml
   trunk/Open-ILS/web/vandelay/vandelay.xml
Log:
added record export form into the vandelay interface

Modified: trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd
===================================================================
--- trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd	2008-10-08 20:29:06 UTC (rev 10796)
+++ trunk/Open-ILS/web/opac/locale/en-US/vandelay.dtd	2008-10-08 22:22:47 UTC (rev 10797)
@@ -82,3 +82,19 @@
 <!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)">

Added: trunk/Open-ILS/web/vandelay/inc/export.xml
===================================================================
--- trunk/Open-ILS/web/vandelay/inc/export.xml	                        (rev 0)
+++ trunk/Open-ILS/web/vandelay/inc/export.xml	2008-10-08 22:22:47 UTC (rev 10797)
@@ -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>

Modified: trunk/Open-ILS/web/vandelay/inc/toolbar.xml
===================================================================
--- trunk/Open-ILS/web/vandelay/inc/toolbar.xml	2008-10-08 20:29:06 UTC (rev 10796)
+++ trunk/Open-ILS/web/vandelay/inc/toolbar.xml	2008-10-08 22:22:47 UTC (rev 10797)
@@ -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>

Modified: trunk/Open-ILS/web/vandelay/vandelay.xml
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.xml	2008-10-08 20:29:06 UTC (rev 10796)
+++ trunk/Open-ILS/web/vandelay/vandelay.xml	2008-10-08 22:22:47 UTC (rev 10797)
@@ -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>



More information about the open-ils-commits mailing list