Revision f379b50b
Added by Andreas Müller about 10 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/CdmImportBase.java | ||
---|---|---|
1187 | 1187 |
* @return |
1188 | 1188 |
* @throws MalformedURLException |
1189 | 1189 |
*/ |
1190 |
protected Media getImageMedia(String uriString, boolean readMediaData, boolean isFigure) throws MalformedURLException {
|
|
1190 |
protected Media getImageMedia(String uriString, boolean readMediaData) throws MalformedURLException { |
|
1191 | 1191 |
if( uriString == null){ |
1192 | 1192 |
return null; |
1193 | 1193 |
} else { |
... | ... | |
1212 | 1212 |
representation.setSuffix(imageInfo.getSuffix()); |
1213 | 1213 |
} |
1214 | 1214 |
representation.addRepresentationPart(imageFile); |
1215 |
Media media = isFigure ? Media.NewInstance() : Media.NewInstance(); //TODO no difference any more since v3.3
|
|
1215 |
Media media = Media.NewInstance();
|
|
1216 | 1216 |
media.addRepresentation(representation); |
1217 | 1217 |
return media; |
1218 | 1218 |
} catch (URISyntaxException e1) { |
Also available in: Unified diff
remove isFigure from getImageMedia