forked from D-Net/dnet-hadoop
Merge branch 'stable_ids' of code-repo.d4science.org:D-Net/dnet-hadoop into stable_ids
This commit is contained in:
commit
76b10090fc
|
@ -171,16 +171,8 @@ public class IdentifierFactory implements Serializable {
|
||||||
if (PidBlacklistProvider.getBlacklist(s.getQualifier().getClassid()).contains(pidValue)) {
|
if (PidBlacklistProvider.getBlacklist(s.getQualifier().getClassid()).contains(pidValue)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
switch (PidType.tryValueOf(s.getQualifier().getClassid())) {
|
|
||||||
case doi:
|
|
||||||
final String doi = StringUtils.trim(StringUtils.lowerCase(pidValue));
|
|
||||||
return doi.matches(DOI_REGEX);
|
|
||||||
case original:
|
|
||||||
return false;
|
|
||||||
default:
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private static <T extends OafEntity> String idFromPid(T entity, StructuredProperty s, boolean md5) {
|
private static <T extends OafEntity> String idFromPid(T entity, StructuredProperty s, boolean md5) {
|
||||||
return new StringBuilder()
|
return new StringBuilder()
|
||||||
|
|
Loading…
Reference in New Issue