Updated InProceedingsImExporter to implement new interface
parent
d90ad517c3
commit
d4c8601ea7
|
|
@ -22,9 +22,28 @@ public class InProceedingsImExporter
|
|||
}
|
||||
|
||||
@Override
|
||||
@PostConstruct
|
||||
protected void init() {
|
||||
protected void initPublicationImExporter() {
|
||||
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