Skip to content

Erika's Physical Code #30

@dvirlar2

Description

@dvirlar2

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions