[open-ils-commits] r10621 - trunk/Open-ILS/web/vandelay

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Sep 17 13:22:36 EDT 2008


Author: erickson
Date: 2008-09-17 13:22:33 -0400 (Wed, 17 Sep 2008)
New Revision: 10621

Modified:
   trunk/Open-ILS/web/vandelay/vandelay.html
   trunk/Open-ILS/web/vandelay/vandelay.js
Log:
only display queued recs with possible matches by default (checkbox)

Modified: trunk/Open-ILS/web/vandelay/vandelay.html
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.html	2008-09-17 17:00:55 UTC (rev 10620)
+++ trunk/Open-ILS/web/vandelay/vandelay.html	2008-09-17 17:22:33 UTC (rev 10621)
@@ -47,7 +47,8 @@
                 border: 1px solid red; 
             }
         </style>
-        <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:false" src="/js/dojo/dojo/dojo.js"></script>
+        <script type="text/javascript" djConfig="parseOnLoad: true,isDebug:true" src="/js/dojo/dojo/dojo.js"></script>
+        <script type="text/javascript" src='/js/dojo/openils/MarcXPathParser.js'></script>
         <script type="text/javascript" src='vandelay.js'></script>
     </head>
     <body class="tundra tall">
@@ -145,6 +146,8 @@
                 <button dojoType='dijit.form.Button' onclick='vlSelectAllGridRecords();'>Select All</button>
                 <button dojoType='dijit.form.Button' onclick='vlSelectNoGridRecords();'>Select None</button>
                 <button dojoType='dijit.form.Button' onclick='vlImportSelectedRecords();'>Import Selected</button>
+                Only show records with possible matches <input dojoType='dijit.form.CheckBox' jsId='vlQueueGridShowMatches' 
+                    checked='checked' onclick='retrieveQueuedRecords(currentType, currentQueueId, handleRetrieveRecords)'/>
                 <div class='tall'>
                     <div dojoType='dojox.Grid' jsId='vlQueueGrid' class='tall'> </div>
                 </div>

Modified: trunk/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.js	2008-09-17 17:00:55 UTC (rev 10620)
+++ trunk/Open-ILS/web/vandelay/vandelay.js	2008-09-17 17:22:33 UTC (rev 10621)
@@ -234,8 +234,12 @@
     selectableGridRecords = {};
     resetVlQueueGridLayout();
 
+    var method = 'open-ils.vandelay.'+type+'_queue.records.retrieve.atomic';
+    if(vlQueueGridShowMatches.checked)
+        method = method.replace('records', 'records.matches');
+
     fieldmapper.standardRequest(
-        ['open-ils.vandelay', 'open-ils.vandelay.'+type+'_queue.records.retrieve.atomic'],
+        ['open-ils.vandelay', method],
         {   async: true,
             params: [authtoken, queueId, {clear_marc:1}],
             /* intermittent bug in streaming, multipart requests prevents use of onreponse for now...



More information about the open-ils-commits mailing list