Project

General

Profile

Revision 7297

set date SM modified when we are setting obsoletes/obsoletedBy/archived values. This way the CN can actualy pick up the changes in revision history.

View differences:

src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java
274 274
			}
275 275
			if (obsoletedBySysMeta != null) {
276 276
				obsoletedBySysMeta.setObsoletes(identifier);
277
				obsoletedBySysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime());
277 278
				HazelcastService.getInstance().getSystemMetadataMap().put(obsoletedBy, obsoletedBySysMeta);
278 279
			}
279 280
		}
......
288 289
			if (obsoletesSysMeta != null) {
289 290
				obsoletesSysMeta.setObsoletedBy(identifier);
290 291
				obsoletesSysMeta.setArchived(true);
292
				obsoletesSysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime());
291 293
				HazelcastService.getInstance().getSystemMetadataMap().put(obsoletes, obsoletesSysMeta);
292 294
			}
293 295
		}

Also available in: Unified diff