From 016a4cda2f7d055c35d97e37210f8b4feec0cb3a Mon Sep 17 00:00:00 2001
From: Viktor Kovtun <viktor.kovtun@id.ethz.ch>
Date: Fri, 9 Aug 2019 11:53:59 +0200
Subject: [PATCH] SSDM-8405 Made the appearance of the Research Collection
 Export Builder view configurable.

---
 .../1/as/webapps/eln-lims/html/js/config/Profile.js       | 2 ++
 .../eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js | 8 +++++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
index 80448ae97f6..7996bd61cbc 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js
@@ -61,6 +61,8 @@ $.extend(DefaultProfile.prototype, {
 				showVocabularyViewer : true,
 				showUserManager : true,
 				showUserProfile : true,
+				showResearchCollectionExportBuilder : false,
+				showZenodoExportBuilder : false,
 		}
 		
 		this.orderLabInfo = {
diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js
index 41e50655fc3..03d1f8e2c95 100644
--- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js
+++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SideMenu/SideMenuWidgetView.js
@@ -269,12 +269,14 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) {
             var exportBuilderLink = _this.getLinkForNode("Export Builder", "EXPORT_BUILDER", "showExportTreePage", null);
             treeModelUtils.push({ displayName: "Export Builder", title : exportBuilderLink, entityType: "EXPORT_BUILDER", key : "EXPORT_BUILDER",
                     folder : false, lazy : false, view : "showExportTreePage", icon : "glyphicon glyphicon-export" });
+        }
 
+        if (profile.mainMenu.showResearchCollectionExportBuilder) {
             var researchCollectionExportBuilderLink = _this.getLinkForNode("Research Collection Export Builder", "RESEARCH_COLLECTION_EXPORT_BUILDER",
-                    "showResearchCollectionExportPage", null);
+                "showResearchCollectionExportPage", null);
             treeModelUtils.push({ displayName: "Research Collection Export Builder", title: researchCollectionExportBuilderLink,
-                    entityType: "RESEARCH_COLLECTION_EXPORT_BUILDER", key: "RESEARCH_COLLECTION_EXPORT_BUILDER", folder: false, lazy: false,
-                    view: "showResearchCollectionExportPage" });
+                entityType: "RESEARCH_COLLECTION_EXPORT_BUILDER", key: "RESEARCH_COLLECTION_EXPORT_BUILDER", folder: false, lazy: false,
+                view: "showResearchCollectionExportPage" });
         }
         
         if(profile.mainMenu.showStorageManager) {
-- 
GitLab