diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js index d9bf2469a0f2e7fa3c2ef9c940dac515a0052bb5..589cda418e56d12632df7b22e665c188806fcab4 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/config.js @@ -1,16 +1,16 @@ var loadJSResorce = function(pathToResource, onLoad) { - var head = document.getElementsByTagName('head')[0]; - var script= document.createElement('script'); - script.type= 'text/javascript'; - var src = pathToResource; - script.src= src; - script.onreadystatechange= function () { - if (this.readyState == 'complete') onLoad(); - } - script.onload = onLoad; + var head = document.getElementsByTagName('head')[0]; + var script= document.createElement('script'); + script.type= 'text/javascript'; + var src = pathToResource; + script.src= src; + script.onreadystatechange= function () { + if (this.readyState === 'complete') onLoad(); + }; + script.onload = onLoad; - head.appendChild(script); -} + head.appendChild(script); +}; var onLoadInstanceProfileResorceFunc = function() { profile = new InstanceProfile(); @@ -23,7 +23,7 @@ var onLoadInstanceProfileResorceFunc = function() { $("#mainLogoTitle").css("font-weight", "bold"); } $("login-form-div").attr("visibility", "visible"); -} +}; //<PROFILE_PLACEHOLDER> loadJSResorce("./etc/InstanceProfile.js", onLoadInstanceProfileResorceFunc); @@ -31,4 +31,8 @@ loadJSResorce("./etc/InstanceProfile.js", onLoadInstanceProfileResorceFunc); var PLUGINS_CONFIGURATION = { extraPlugins : ["life-sciences", "flow", "microscopy"] -} \ No newline at end of file +}; + +var options = { + showResearchCollectionExportBuilder: false +}; \ No newline at end of file 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 1d08a2ea8c0e4289b9863787ef06520c6b1c605d..1532d897dc24769b6c75a1102ee589c4ca6761c5 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 @@ -62,7 +62,6 @@ $.extend(DefaultProfile.prototype, { showVocabularyViewer : true, showUserManager : true, showUserProfile : true, - showResearchCollectionExportBuilder : false, showZenodoExportBuilder : false, showBarcodes : false, } 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 af52a187c994b2a2b43f352dc7a0f2b733d06f6d..15f676c09a9646878c9056425136dd3105135b0c 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 @@ -279,7 +279,7 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) { treeModelUtils.push({ displayName: "Unarchiving Helper", title : unarchivingHelperLink, entityType: "UNARCHIVING_HELPER", key : "UNARCHIVING_HELPER", folder : false, lazy : false, view : "showUnarchivingHelperPage", icon : "glyphicon glyphicon-open" }); } - if (profile.mainMenu.showExports || profile.mainMenu.showResearchCollectionExportBuilder || profile.mainMenu.showZenodoExportBuilder) { + if (profile.mainMenu.showExports || options.showResearchCollectionExportBuilder || profile.mainMenu.showZenodoExportBuilder) { var treeModelExports = []; if (profile.mainMenu.showExports) { @@ -290,7 +290,7 @@ function SideMenuWidgetView(sideMenuWidgetController, sideMenuWidgetModel) { }); } - if (profile.mainMenu.showResearchCollectionExportBuilder) { + if (options.showResearchCollectionExportBuilder) { var researchCollectionExportBuilderLink = _this.getLinkForNode("Export to Research Collection", "EXPORT_TO_RESEARCH_COLLECTION", "showResearchCollectionExportPage", null, null); treeModelExports.push({