1
|
package eu.dnetlib.pace.condition;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import eu.dnetlib.pace.model.Field;
|
6
|
import eu.dnetlib.pace.model.FieldDef;
|
7
|
|
8
|
/**
|
9
|
* The Class ExactMatch.
|
10
|
*
|
11
|
* @author claudio
|
12
|
*/
|
13
|
public class DoiExactMatch extends ExactMatch {
|
14
|
|
15
|
public final String PREFIX = "(http:\\/\\/dx\\.doi\\.org\\/)|(doi:)";
|
16
|
|
17
|
public DoiExactMatch(final List<FieldDef> fields) {
|
18
|
super(fields);
|
19
|
}
|
20
|
|
21
|
@Override
|
22
|
protected String getValue(final Field f) {
|
23
|
return super.getValue(f).replaceAll(PREFIX, "");
|
24
|
}
|
25
|
|
26
|
}
|