From 07041e84572200111e28795ac10247ace36dc712 Mon Sep 17 00:00:00 2001
From: Bill Erickson <berick@esilibrary.com>
Date: Wed, 29 Feb 2012 16:06:55 -0500
Subject: [PATCH] Acq + Vandelay : exit early for 'load bibs and items' in
 picklist

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js
index fc7e2e6aec..f2585a166e 100644
--- a/Open-ILS/web/js/ui/default/acq/common/li_table.js
+++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js
@@ -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(
-- 
2.11.0