forked from NCEAS/datateam-training
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Physical code for when there are multiple entity types
# add physicals - Erika's code
for (i in seq_along(doc$dataset$otherEntity)) {
otherEntity <- doc$dataset$otherEntity[[i]]
id <- otherEntity$id
if (!grepl("urn-uuid-", id)) {
warning("otherEntity ", i, " is not a pid")
} else {
id <- gsub("urn-uuid-", "urn:uuid:", id)
physical <- arcticdatautils::pid_to_eml_physical(d1c@mn, id)
doc$dataset$otherEntity[[i]]$physical <- physical
}
}
Metadata
Metadata
Assignees
Labels
No labels