Updated MonographImExporter to implement updated interface.
parent
5d086c2770
commit
105bdb0e20
|
|
@ -2,6 +2,8 @@ package org.scientificcms.publications;
|
||||||
|
|
||||||
import org.libreccm.imexport.Processes;
|
import org.libreccm.imexport.Processes;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
import javax.annotation.PostConstruct;
|
import javax.annotation.PostConstruct;
|
||||||
import javax.enterprise.context.RequestScoped;
|
import javax.enterprise.context.RequestScoped;
|
||||||
|
|
||||||
|
|
@ -25,4 +27,19 @@ public class MonographImExporter
|
||||||
// Nothing
|
// Nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void updateExistingPublicationWithPublisher(
|
||||||
|
final Monograph existingPublication,
|
||||||
|
final Monograph withImportedPublication
|
||||||
|
) {
|
||||||
|
if (!Objects.equals(
|
||||||
|
existingPublication.getReviewed(),
|
||||||
|
withImportedPublication.getReviewed()
|
||||||
|
)) {
|
||||||
|
existingPublication.setReviewed(
|
||||||
|
withImportedPublication.getReviewed()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue