Acq + Vandelay : exit early for 'load bibs and items' in picklist
authorBill Erickson <berick@esilibrary.com>
Wed, 29 Feb 2012 21:06:55 +0000 (16:06 -0500)
committerBen Shum <bshum@biblio.org>
Tue, 13 Mar 2012 19:28:45 +0000 (15:28 -0400)
The ACQ UI does not support loading bibs and items directly from the
picklist interface.  If the user selects "load bibs and items" from the
picklist page they will be presented with the vandelay options, but the
actual upload/merge/etc will not do anything.  This change prevents the
vandelay options from showing in this case.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/web/js/ui/default/acq/common/li_table.js

index fc7e2e6..f2585a1 100644 (file)
@@ -2123,6 +2123,7 @@ function AcqLiTable() {
     };
 
     this.showAssetCreator = function(onAssetsCreated) {
+        if(!this.isPO) return;
         this.show('asset-creator');
         if(!this.vlAgent.loaded)
             this.vlAgent.init();
@@ -2132,7 +2133,6 @@ function AcqLiTable() {
     }
 
     this.createAssets = function(onAssetsCreated) {
-        if(!this.isPO) return;
         this.show('acq-lit-progress-numbers');
         var self = this;
         fieldmapper.standardRequest(