Revision 6539
Added by ben leinfelder over 13 years ago
src/edu/ucsb/nceas/metacat/util/MetacatPopulator.java | ||
---|---|---|
202 | 202 |
ObjectFormat format = null; |
203 | 203 |
try { |
204 | 204 |
format = ObjectFormatCache.getInstance().getFormat(dataDocMimeType); |
205 |
dataDocSysMeta.setFmtid(format.getFmtid()); |
|
205 | 206 |
} catch (NotFound e) { |
206 | 207 |
System.out.println(e.getMessage()); |
207 | 208 |
} |
208 |
dataDocSysMeta.setFmtid(format.getFmtid()); |
|
209 | 209 |
dataDocIs = stringToStream(dataDocText); |
210 | 210 |
Checksum checksum = ChecksumUtil.checksum(dataDocIs, "MD5"); |
211 | 211 |
dataDocSysMeta.setChecksum(checksum); |
Also available in: Unified diff
use default fmtid if we can't find the user-supplied data mime type in our list