sul-dlss / cocina-models

Cocina repository data model (implemented in Ruby)
https://sul-dlss.github.io/cocina-models/
3 stars 0 forks source link

PURL validation #397

Closed justinlittman closed 2 years ago

justinlittman commented 2 years ago

Validate that the bare identifier in the purl (description > purl) matches the bare identifier of the external identifier.

For example, https://purl.stanford.edu/dd999df4567 and druid:dd999df4567 match.

When mismatched, report "Purl mismatch: #{druid} purl does not match object druid."