The identifier a portal knows a dataset by, read off its own URL
Source:R/catalog_ids.R
derive_registration_id.RdA fallback, never an override: a curated id in metadata/distribution.csv always
wins. Returns NA_character_ when the URL says nothing — a portal home, a search
page — because a guessed identifier is worse than none.
Details
Recognised: EDI (packageid=, or scope=&identifier=&revision=), NCEI (id=),
OBIS (/dataset/{uuid}), a GBIF/OBIS IPT resource (?r=), any DOI
(doi.org/10.…), CalOOS (#module-metadata/{uuid}), any ERDDAP (a
tabledap/griddap page, an info page, or an ISO 19115 / FGDC document),
DataZoo (/datasets/{n}) and an NCBI BioProject.