opendoar datasource filter

This commit is contained in:
Michele Artini 2024-03-01 15:32:56 +01:00
parent be7f327e88
commit c2b6841eb0
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public class BaseCollectorPlugin implements CollectorPlugin {
private boolean filterXml(final String xml, final Set<String> excludedOpendoarIds, final AggregatorReport report) {
try {
final String id = DocumentHelper.parseText(xml).valueOf("//*[local-name='collection']/@opendoar_id").trim;
final String id = DocumentHelper.parseText(xml).valueOf("//*[local-name='collection']/@opendoar_id").trim();
return (StringUtils.isNotBlank(id) && !excludedOpendoarIds.contains("opendoar____::" + id.trim()));
} catch (final DocumentException e) {
log.error("Error parsing document", e);