Class: Pubid::Jcgm::Identifiers::Corrigendum

Inherits:
SupplementIdentifier show all
Defined in:
lib/pubid/jcgm/identifiers/corrigendum.rb

Overview

A JCGM corrigendum. Two surface forms are supported:

"JCGM 200:2008 Corrigendum"      — base guide + trailing " Corrigendum"
                                  word, no iteration number
"JCGM 101:2008/Cor 1:2009"       — base guide + slash-separated
                                  numbered corrigendum with date

The first form is the JCGM-native convention. The second mirrors the ISO/IEC supplement syntax and is needed to round-trip identifiers like "JCGM 101:2008/Cor 1:2009" (corrigendum to GUM Supplement 1).

Constant Summary collapse

TYPED_STAGES =
[
  Pubid::Components::TypedStage.new(
    code: :pubcorr,
    stage_code: :published,
    type_code: :corrigendum,
    abbr: %w[Corrigendum Cor],
    name: "Corrigendum",
    harmonized_stages: %w[60.00 60.60],
  ),
].freeze

Class Method Summary collapse

Methods inherited from SupplementIdentifier

#base_from_kv, #base_to_kv, #publisher

Methods inherited from SingleIdentifier

#build_code, #date_for, #day_from_kv, #day_to_kv, default_publisher, #emit_kv, #language_portion, #month_from_kv, #month_to_kv, #number_from_kv, #number_portion, #number_to_kv, published_typed_stage, #publisher_portion, #stage, #type, #year_from_kv, #year_to_kv

Methods inherited from Pubid::Jcgm::Identifier

parse

Methods inherited from Identifier

apply_mappings, #base, #base_document, concrete_class_for, #dated_version_of?, #draft_of?, #drop_supplements, #edition_of?, #eql?, #exclude, from_hash, #has_supplement?, #hash, #includes?, #initialize, #matches?, #mr_all_parts, #mr_edition, #mr_languages, #mr_number, #mr_number_with_part, #mr_part, #mr_publisher, #mr_subpart, #mr_supplement_suffix, #mr_type, #mr_year, #new_edition_of?, polymorphic_name, polymorphic_type_map, #related_to?, #render, #resolve_urn_generator, #root, #sibling_of?, #supplement_of?, #to_hash, #to_mr_string, #to_s, #to_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year

Constructor Details

This class inherits a constructor from Pubid::Identifier

Class Method Details

.typeObject



28
29
30
# File 'lib/pubid/jcgm/identifiers/corrigendum.rb', line 28

def self.type
  { key: :corrigendum, title: "Corrigendum", short: "Corr" }
end