XOAI add bitstream description to xoai metadata format

This commit is contained in:
cjuergen
2014-09-11 16:14:43 +02:00
committed by Ivan Masár
parent d267f8bf9c
commit ec3f993dc2

View File

@@ -200,6 +200,7 @@ public class ItemUtils
String cka = bit.getChecksumAlgorithm();
String oname = bit.getSource();
String name = bit.getName();
String description = bit.getDescription();
if (name != null)
bitstream.getField().add(
@@ -207,6 +208,9 @@ public class ItemUtils
if (oname != null)
bitstream.getField().add(
createValue("originalName", name));
if (description != null)
bitstream.getField().add(
createValue("description", description));
bitstream.getField().add(
createValue("format", bit.getFormat()
.getMIMEType()));