diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py index ef3324634a03fc6539a87313608d6af9cf2600de..18e055d1ba67be0080142e6f4183c171f381432c 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/file-system-plugins/eln-tree/script.py @@ -309,7 +309,10 @@ def addSampleChildNodes(path, samplePermId, response, acceptor, context): addNodes("SAMPLE", entitiesByName, path, response, context) def addDataSetFileNodes(path, dataSetCode, contentNode, response, acceptor, context): - for childNode in contentNode.getChildNodes(): + childNodes = contentNode.getChildNodes() + if len(childNodes) == 1 and childNodes[0].getRelativePath() == 'original': + childNodes = childNodes[0].getChildNodes() + for childNode in childNodes: nodeName = childNode.getName() filePath = "%s/%s" % (path, nodeName) filePermId = "%s::%s" % (dataSetCode, childNode.getRelativePath())