Skip to content

Commit

Permalink
fix logic to make sure metadata pid isn't included with data pids
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanetteclark committed Aug 2, 2024
1 parent 12d7cda commit 4085286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/edu/ucsb/nceas/mdqengine/MDQEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public ArrayList<String> 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());
}
}
Expand Down

0 comments on commit 4085286

Please sign in to comment.