Skip to content
Snippets Groups Projects
Commit 2d3ce573 authored by gpawel's avatar gpawel
Browse files

[LMS-2387] - YeastLab fixes

SVN: 22163
parent 213de3b6
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,7 @@ abstract public class AbstractDatasetDownloadServlet extends HttpServlet
static
{
MIMETYPES.addMimeTypes("application/pdf pdf");
MIMETYPES.addMimeTypes("image/svg+xml svg");
}
public AbstractDatasetDownloadServlet()
......
......@@ -38,7 +38,6 @@ import ch.systemsx.cisd.openbis.generic.shared.dto.identifier.SampleIdentifierFa
import ch.systemsx.cisd.openbis.generic.shared.managed_property.EntityLinkElementTranslator;
import ch.systemsx.cisd.openbis.generic.shared.managed_property.api.IEntityInformationProvider;
import ch.systemsx.cisd.openbis.generic.shared.managed_property.api.IEntityLinkElement;
import ch.systemsx.cisd.openbis.generic.shared.util.HibernateUtils;
/**
* @author Piotr Buczek
......@@ -194,12 +193,10 @@ public class EntityInformationProvider implements IEntityInformationProvider
public String getSamplePropertyValue(String permId, String propertyCode)
{
SamplePE sample = getSampleByPermId(permId);
HibernateUtils.initialize(sample.getProperties());
for (SamplePropertyPE property : sample.getProperties())
{
if (propertyCode.equalsIgnoreCase(property.getEntityTypePropertyType().getEntityType()
.getCode()))
if (propertyCode.equalsIgnoreCase(property.getEntityTypePropertyType()
.getPropertyType().getCode()))
{
return property.getValue();
}
......
......@@ -67,7 +67,7 @@ public class PlasmidStorageProcessor extends AbstractDelegatingStorageProcessor
private static final String GB_FILE_EXTENSION = ".gb";
private static final String PNG_FILE_EXTENSION = ".png";
private static final String SVG_FILE_EXTENSION = ".svg";
private final PlasMapperUploader uploader;
......@@ -116,7 +116,7 @@ public class PlasmidStorageProcessor extends AbstractDelegatingStorageProcessor
File seqFile = files[0];
String baseFileName = FilenameUtils.getBaseName(seqFile.getName());
String pngFileName = baseFileName + PNG_FILE_EXTENSION;
String pngFileName = baseFileName + SVG_FILE_EXTENSION;
String gbFileName = baseFileName + GB_FILE_EXTENSION;
File generatedDir = new File(answer, GENERATED_DIR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment