From 40852862e664d7a2ca7296fa1f38131e280fffc8 Mon Sep 17 00:00:00 2001 From: Jeanette Clark Date: Fri, 2 Aug 2024 12:58:20 -0700 Subject: [PATCH] fix logic to make sure metadata pid isn't included with data pids --- src/main/java/edu/ucsb/nceas/mdqengine/MDQEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/ucsb/nceas/mdqengine/MDQEngine.java b/src/main/java/edu/ucsb/nceas/mdqengine/MDQEngine.java index 9583f2e5..060abbf4 100644 --- a/src/main/java/edu/ucsb/nceas/mdqengine/MDQEngine.java +++ b/src/main/java/edu/ucsb/nceas/mdqengine/MDQEngine.java @@ -281,7 +281,7 @@ public ArrayList findDataPids(NodeReference nodeId, String identifier) t for (int i = 0; i < nodeList.getLength(); i++) { Element element = (Element) nodeList.item(i); if ("id".equals(element.getAttribute("name"))) { - if (element.getTextContent() != identifier) { + if (!element.getTextContent().equals(identifier)) { dataObjects.add(element.getTextContent()); } }