only display queued recs with possible matches by default (checkbox)
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Sep 2008 17:22:33 +0000 (17:22 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 17 Sep 2008 17:22:33 +0000 (17:22 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10621 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/vandelay/vandelay.html
Open-ILS/web/vandelay/vandelay.js

index f15e8e5..0ea9811 100644 (file)
@@ -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">
                 <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>
index 419fc1b..6f18cc4 100644 (file)
@@ -234,8 +234,12 @@ function retrieveQueuedRecords(type, queueId, onload) {
     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...