Project

General

Profile

« Previous | Next » 

Revision 9306

Added by Jing Tao about 9 years ago

Use the application/bagit-097 to replace application/bagit.

View differences:

test/edu/ucsb/nceas/metacat/dataone/MNodeServiceTest.java
1272 1272
			SystemMetadata sysmeta = createSystemMetadata(guid, session.getSubject(), object);
1273 1273
			Identifier pid = MNodeService.getInstance(request).create(session, guid, object, sysmeta);
1274 1274
			ObjectFormatIdentifier format = new ObjectFormatIdentifier();
1275
			format.setValue("application/bagit");
1275
			format.setValue("application/bagit-097");
1276 1276
			InputStream bagStream = MNodeService.getInstance(request).getPackage(session, format, pid);
1277 1277
			File bagFile = File.createTempFile("bagit.", ".zip");
1278 1278
			IOUtils.copy(bagStream, new FileOutputStream(bagFile));
......
1351 1351
			
1352 1352
			// get the package we uploaded
1353 1353
			ObjectFormatIdentifier format = new ObjectFormatIdentifier();
1354
            format.setValue("application/bagit");
1354
            format.setValue("application/bagit-097");
1355 1355
			InputStream bagStream = MNodeService.getInstance(request).getPackage(session, format, pid);
1356 1356
			File bagFile = File.createTempFile("bagit.", ".zip");
1357 1357
			IOUtils.copy(bagStream, new FileOutputStream(bagFile));

Also available in: Unified diff