forked from D-Net/dnet-hadoop
31 lines
865 B
Java
31 lines
865 B
Java
|
package eu.dnetlib.dhp.broker.oa.util;
|
||
|
|
||
|
import java.util.Arrays;
|
||
|
import java.util.List;
|
||
|
|
||
|
import eu.dnetlib.broker.objects.OpenAireEventPayload;
|
||
|
import eu.dnetlib.dhp.schema.oaf.Result;
|
||
|
|
||
|
public class EnrichMissingPublicationDate extends UpdateInfo<String> {
|
||
|
|
||
|
public static List<EnrichMissingPublicationDate> findUpdates(final Result source, final Result target) {
|
||
|
// return Arrays.asList(new EnrichMissingAbstract("xxxxxxx", 0.9f));
|
||
|
return Arrays.asList();
|
||
|
}
|
||
|
|
||
|
private EnrichMissingPublicationDate(final String highlightValue, final float trust) {
|
||
|
super("ENRICH/MISSING/PUBLICATION_DATE", highlightValue, trust);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void compileHighlight(final OpenAireEventPayload payload) {
|
||
|
payload.getHighlight().setPublicationdate(getHighlightValue());
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String getHighlightValueAsString() {
|
||
|
return getHighlightValue();
|
||
|
}
|
||
|
|
||
|
}
|