From e1e354fb07b79664ace2e5d59c1fbd2a8485b5db Mon Sep 17 00:00:00 2001 From: Jing Tao Date: Tue, 25 Jun 2024 14:32:19 -0700 Subject: [PATCH] Used the new method to get the system metadata. --- .../cn/indexer/parser/utility/SeriesIdResolver.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/dataone/cn/indexer/parser/utility/SeriesIdResolver.java b/src/main/java/org/dataone/cn/indexer/parser/utility/SeriesIdResolver.java index e921a055..ca5fdec7 100644 --- a/src/main/java/org/dataone/cn/indexer/parser/utility/SeriesIdResolver.java +++ b/src/main/java/org/dataone/cn/indexer/parser/utility/SeriesIdResolver.java @@ -100,19 +100,12 @@ public static boolean isSeriesId(Identifier identifier) InstantiationException, IllegalAccessException, IOException, MarshallingException { // if we have system metadata available via HZ map, then it's a PID - String relativeObjPath = null;//we don't know the path - SystemMetadata systemMetadata = - ObjectManager.getInstance().getSystemMetadata(identifier.getValue(), relativeObjPath); + org.dataone.service.types.v1.SystemMetadata systemMetadata = ObjectManager.getInstance() + .getSystemMetadata(identifier.getValue()); if (systemMetadata != null) { return false; } - //TODO: check that it's not just bogus value by looking up the pid? -// Identifier pid = getPid(identifier); -// if (pid.equals(identifier)) { -// return false; -// } - // okay, it's a SID return true;