From a531b0a2a4942f640d251fca01fc437342a089f1 Mon Sep 17 00:00:00 2001 From: felmer <franz-josef.elmer@id.ethz.ch> Date: Sat, 24 Jun 2023 19:32:44 +0200 Subject: [PATCH] SSDM-13120: change default value for flag showSemanticAnnotations to false --- .../eln-lims/1/as/webapps/eln-lims/html/etc/InstanceProfile.js | 2 +- .../1/as/webapps/eln-lims/html/js/config/SettingsManager.js | 2 +- .../1/as/webapps/eln-lims/html/js/server/ServerFacade.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/InstanceProfile.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/InstanceProfile.js index c30511b0e86..ee468bccf0c 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/InstanceProfile.js +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/etc/InstanceProfile.js @@ -15,7 +15,7 @@ $.extend(InstanceProfile.prototype, StandardProfile.prototype, { // this.singleSignOnLinkLabel = "Login with SWITCHaai"; // END ANSIBLE MANAGED BLOCK (sso) this.hideSectionsByDefault = true; - this.showSemanticAnnotations = true; + this.showSemanticAnnotations = false; this.minBarcodeLength = 10; this.barcodePattern = /^[-a-z0-9]+$/i this.docuBaseUrl = "https://unlimited.ethz.ch/display/openBISDoc2010"; diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/SettingsManager.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/SettingsManager.js index d7a83e4430b..21fb5caff73 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/SettingsManager.js +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/SettingsManager.js @@ -237,7 +237,7 @@ function SettingsManager(serverFacade) { // Miscellaneous var miscellaneousFields = [{name: "hideSectionsByDefault", defaultValue: true}, - {name: "showSemanticAnnotations", defaultValue: true}, + {name: "showSemanticAnnotations", defaultValue: false}, {name: "showDatasetArchivingButton", defaultValue: false}]; var defaultValues = []; for(var miscellaneousField of miscellaneousFields) { diff --git a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js index b8b0a29f418..fa966b61ee5 100644 --- a/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js +++ b/ui-eln-lims/src/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/server/ServerFacade.js @@ -643,7 +643,7 @@ function ServerFacade(openbisServer) { var entityTypePermId = new EntityTypePermId(sampleType, EntityKind.SAMPLE); var sampleTypeFetchOptions = new SampleTypeFetchOptions(); sampleTypeFetchOptions.withPropertyAssignments().withPropertyType(); - if (profile.showSemanticAnnotations != false) { + if (profile.showSemanticAnnotations == true) { sampleTypeFetchOptions.withSemanticAnnotations(); sampleTypeFetchOptions.withPropertyAssignments().withSemanticAnnotations(); sampleTypeFetchOptions.withPropertyAssignments().withPropertyType().withSemanticAnnotations(); -- GitLab