Revision 6382
Added by Chris Jones over 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
321 | 321 |
// prep the new system metadata, add pid to the affected lists |
322 | 322 |
sysmeta.setObsoletes(pid); |
323 | 323 |
//sysmeta.addDerivedFrom(pid); |
324 |
|
|
325 |
// and insert the new system metadata |
|
326 |
insertSystemMetadata(sysmeta); |
|
327 | 324 |
|
328 | 325 |
isScienceMetadata = isScienceMetadata(sysmeta); |
329 | 326 |
|
... | ... | |
357 | 354 |
localId = insertDataObject(object, newPid, session); |
358 | 355 |
|
359 | 356 |
} |
357 |
|
|
358 |
// and insert the new system metadata |
|
359 |
insertSystemMetadata(sysmeta); |
|
360 |
|
|
360 | 361 |
// log the update event |
361 | 362 |
EventLog.getInstance().log(metacatUrl, subject.getValue(), localId, "update"); |
362 | 363 |
|
Also available in: Unified diff
Insert system metadata after the data object is inserted.