From 87b46091830f4a50db48b1e1306624c8a79e0cfd Mon Sep 17 00:00:00 2001 From: Aaron Ponti <aaron.ponti@bsse.ethz.ch> Date: Fri, 17 May 2019 12:16:09 +0200 Subject: [PATCH] Bug fix: use the correct dataset code to retrieve the thumbnail URL. --- .../eln-lims/html/js/plugins/MicroscopyTechnology.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/plugins/MicroscopyTechnology.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/plugins/MicroscopyTechnology.js index 2db69a4ee9a..134fcfd8030 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/plugins/MicroscopyTechnology.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/plugins/MicroscopyTechnology.js @@ -262,9 +262,6 @@ $.extend(MicroscopyTechnology.prototype, ELNLIMSPlugin.prototype, { DataSetFileFetchOptions) { // First retrieve the sample again but with the associated datasets - console.log("Processing microscopy sample " + sample.code); - - // Search for the sample of type and given perm id var criteria = new SampleSearchCriteria(); criteria.withType().withCode().thatEquals(sample.sampleTypeCode); criteria.withPermId().thatEquals(sample.permId); @@ -325,15 +322,12 @@ $.extend(MicroscopyTechnology.prototype, ELNLIMSPlugin.prototype, { // Still use the V1 API since the sessionId stored in the // webapp context is null in V3. mainController.openbisV1.getDownloadUrlForFileForDataSetInSession( - dataSet.code, f.getPath(), function (url) { + f.getDataSetPermId().permId, f.getPath(), function (url) { // Replace the image var eUrl = encodeURI(url); eUrl = eUrl.replace('+', '%2B'); imD.attr("src", eUrl); - - console.log("Adding thumbnail " + eUrl + " to " + img_id); - }); } -- GitLab