Updated InProceedingsImExporter to implement new interface
parent
d90ad517c3
commit
d4c8601ea7
|
|
@ -22,9 +22,28 @@ public class InProceedingsImExporter
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@PostConstruct
|
protected void initPublicationImExporter() {
|
||||||
protected void init() {
|
|
||||||
addRequiredEntities(Set.of(Proceedings.class));
|
addRequiredEntities(Set.of(Proceedings.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void updateExistingPublication(
|
||||||
|
final InProceedings existingPublication,
|
||||||
|
final InProceedings withImportedPublication
|
||||||
|
) {
|
||||||
|
if (existingPublication.getStartPage() != withImportedPublication
|
||||||
|
.getStartPage()) {
|
||||||
|
existingPublication.setStartPage(
|
||||||
|
withImportedPublication.getStartPage()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (existingPublication.getEndPage() != withImportedPublication
|
||||||
|
.getEndPage()) {
|
||||||
|
existingPublication.setEndPage(
|
||||||
|
withImportedPublication.getEndPage()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue