Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -411,16 +411,17 @@ private String reassignIdentifierAsGlobalId(String identifierString, DatasetDTO
if (identifierString.startsWith(GlobalId.HDL_RESOLVER_URL)) {
logger.fine("Processing Handle identifier formatted as a resolver URL: "+identifierString);
protocol = GlobalId.HDL_PROTOCOL;
index1 = GlobalId.HDL_RESOLVER_URL.length() - 1;
index1 = GlobalId.HDL_RESOLVER_URL.length() - 1;
index2 = identifierString.indexOf("/", index1 + 1);
} else if (identifierString.startsWith(GlobalId.DOI_RESOLVER_URL)) {
logger.fine("Processing DOI identifier formatted as a resolver URL: "+identifierString);
protocol = GlobalId.DOI_PROTOCOL;
index1 = GlobalId.DOI_RESOLVER_URL.length() - 1;
index2 = identifierString.indexOf("/", index1 + 1);
} else {
logger.warning("HTTP Url in supplied as the identifier is neither a Handle nor DOI resolver: "+identifierString);
return null;
}
// index2 was already found as the index of '/' - so it's still good.
} else {
logger.warning("Unknown identifier format: "+identifierString);
return null;
Expand Down