diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-04 11:56:17 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-04 11:59:05 -0800 |
commit | 0ff42081a71d8f878feedca236fa8ffe282fec3a (patch) | |
tree | ffef2e0d6aaa329da9eaa1f35f20bf03347ca887 | |
parent | ef7de452e81a8ccf70c1fa229f80b92bc65c46f0 (diff) | |
download | fatcat-0ff42081a71d8f878feedca236fa8ffe282fec3a.tar.gz fatcat-0ff42081a71d8f878feedca236fa8ffe282fec3a.zip |
add 'component' as a release_type
-rw-r--r-- | guide/src/entity_release.md | 2 | ||||
-rw-r--r-- | rust/src/identifiers.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/guide/src/entity_release.md b/guide/src/entity_release.md index 27ce0f2c..1fd0a2f1 100644 --- a/guide/src/entity_release.md +++ b/guide/src/entity_release.md @@ -216,6 +216,8 @@ with a small number of (proposed) extensions: - `stub` (fatcat extension) for releases which have notable external identifiers, and thus are included "for completeness", but don't seem to represent a "full work". +- `component` (fatcat extension) for sub-components of a full paper (or other + work). Eg, figures or tables. An example of a `stub` might be a paper that gets an extra DOI by accident; the primary DOI should be a full release, and the accidental DOI can be a `stub` diff --git a/rust/src/identifiers.rs b/rust/src/identifiers.rs index 597af338..180dc43b 100644 --- a/rust/src/identifiers.rs +++ b/rust/src/identifiers.rs @@ -540,6 +540,7 @@ pub fn check_release_type(raw: &str) -> Result<()> { "letter", "stub", "retraction", + "component", ]; for good in valid_types { if raw == good { |