Revision 9376
Added by Jing Tao about 9 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
457 | 457 |
try { |
458 | 458 |
//objectAsXML = IOUtils.toString(object, "UTF-8"); |
459 | 459 |
|
460 |
InputStream editedObject = editScienceMetadata(session, object, pid, newPid); |
|
461 |
|
|
462 |
localId = insertOrUpdateDocument(editedObject, "UTF-8", pid, session, "update");
|
|
463 |
|
|
460 |
//InputStream editedObject = editScienceMetadata(session, object, pid, newPid);
|
|
461 |
//localId = insertOrUpdateDocument(editedObject, "UTF-8", pid, session, "update"); |
|
462 |
localId = insertOrUpdateDocument(object, "UTF-8", pid, session, "update");
|
|
463 |
|
|
464 | 464 |
// register the newPid and the generated localId |
465 | 465 |
if (newPid != null) { |
466 | 466 |
IdentifierManager.getInstance().createMapping(newPid.getValue(), localId); |
Also available in: Unified diff
Remove the method editScienceMetadata from the update method. This method will add a packageId attribute into the eml document. Lauren will add the method to the publish method.