From a3dac32f1670694afb0cfe53b463047dd3a8b0b3 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 17 Mar 2021 15:06:05 +0100 Subject: [PATCH] pidFilter a bit more permissive --- .../dhp/schema/oaf/utils/IdentifierFactory.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/utils/IdentifierFactory.java b/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/utils/IdentifierFactory.java index 84b261aff..4682b7aed 100644 --- a/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/utils/IdentifierFactory.java +++ b/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/utils/IdentifierFactory.java @@ -171,15 +171,7 @@ public class IdentifierFactory implements Serializable { if (PidBlacklistProvider.getBlacklist(s.getQualifier().getClassid()).contains(pidValue)) { 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 String idFromPid(T entity, StructuredProperty s, boolean md5) {