Revision 54554
Added by Miriam Baglioni over 5 years ago
modules/dnet-openaire-exporter/trunk/src/main/java/eu/dnetlib/openaire/context/ContextMappingUtils.java | ||
---|---|---|
37 | 37 |
.setId(eContext.attributeValue("id")) |
38 | 38 |
.setLabel(eContext.attributeValue("label")) |
39 | 39 |
.setType(eContext.attributeValue("type")) |
40 |
.setDateofcreation(asDate(doc.valueOf("/RESOURCE_PROFILE/HEADER/DATE_OF_CREATION/@value"))) |
|
40 |
.setLastUpdateDate(asDate(doc.valueOf("/RESOURCE_PROFILE/HEADER/DATE_OF_CREATION/@value"))) |
|
41 |
//.setDateofcreation() in reality the field named CreationDate is modified each time the context profile is updated |
|
42 |
//the creation date will be added in the param elements of the community |
|
41 | 43 |
.setParams(parseParams(eContext)) |
42 | 44 |
.setCategories(parseCategories(eContext)); |
43 | 45 |
} catch (Throwable e) { |
Also available in: Unified diff
change the mapping for profile element CREATION_DATE from creationDate to lastUpdateDate variables. This because the profile field is changed wach time the profile is updated