Class: Pubid::Iec::Identifiers::InterpretationSheet

Inherits:
SupplementIdentifier show all
Defined in:
lib/pubid/iec/identifiers/interpretation_sheet.rb

Overview

Interpretation Sheet identifier class Single Responsibility: Represents IEC ISH documents Dual role: Can be primary document or supplement

Constant Summary collapse

TYPED_STAGES =

Convert v1 hash-based TYPED_STAGES to v2 object-based From gems/pubid-iec/lib/pubid/iec/identifier/interpretation_sheet.rb

[
  Pubid::Components::TypedStage.new(
    code: :pwi_ish,
    stage_code: :pwi,
    type_code: :ish,
    abbr: ["PWI ISH"],
    name: "Preliminary Work Item Interpretation Sheet",
    harmonized_stages: %w[00.00 00.20 00.60 00.98 00.99],
  ),
  Pubid::Components::TypedStage.new(
    code: :np_ish,
    stage_code: :np,
    type_code: :ish,
    abbr: ["NP ISH"],
    name: "New Proposal Interpretation Sheet",
    harmonized_stages: %w[10.00 10.20 10.60 10.92 10.98],
  ),
  Pubid::Components::TypedStage.new(
    code: :anw_ish,
    stage_code: :anw,
    type_code: :ish,
    abbr: ["ANW ISH"],
    name: "Approved New Work Item Interpretation Sheet",
    harmonized_stages: %w[10.99 20.00],
  ),
  Pubid::Components::TypedStage.new(
    code: :wd_ish,
    stage_code: :wd,
    type_code: :ish,
    abbr: ["WD ISH"],
    name: "Working Draft Interpretation Sheet",
    harmonized_stages: %w[20.20 20.60 20.98 20.99],
  ),
  Pubid::Components::TypedStage.new(
    code: :cdish,
    stage_code: :cd,
    type_code: :ish,
    abbr: ["CDISH"],
    name: "Committee Draft Interpretation Sheet",
    harmonized_stages: %w[30.00 30.20 30.60 30.92 30.98 30.99],
  ),
  Pubid::Components::TypedStage.new(
    code: :dish,
    stage_code: :draft,
    type_code: :ish,
    abbr: ["DISH"],
    name: "Draft Interpretation Sheet",
    harmonized_stages: %w[50.00 50.20 50.60 50.92 50.98 50.99],
  ),
  Pubid::Components::TypedStage.new(
    code: :ish,
    stage_code: :published,
    type_code: :ish,
    abbr: ["ISH"],
    name: "Interpretation Sheet",
    harmonized_stages: %w[60.00 60.60 90.20 90.60 90.92 90.93 90.99
                          95.20 95.60 95.92 95.99],
  ),
].freeze
PROJECT_STAGES =

Project stages specific to Interpretation Sheets

{
  decdish: {
    abbr: "DECDISH",
    name: "DISH at editing check",
    harmonized_stages: %w[50.00],
  },
  prvdish: {
    abbr: "PRVDISH",
    name: "Preparation of RVDISH",
    harmonized_stages: %w[50.60],
  },
  rdish: {
    abbr: "RDISH",
    name: "DISH received and registered",
    harmonized_stages: %w[50.00],
  },
  tdish: {
    abbr: "TDISH",
    name: "Translation of DISH",
    harmonized_stages: %w[50.00],
  },
}.freeze

Constants inherited from Pubid::Iec::Identifier

Pubid::Iec::Identifier::IEC_TYPE_MAP

Class Method Summary collapse

Methods inherited from SupplementIdentifier

#base, #base_from_kv, #base_to_kv, #copublishers, #ensure_base, #mark_synthetic_standalone!, #mr_supplement_suffix, #number, #part, #publisher, #synthetic_base?, #to_s

Methods inherited from SingleIdentifier

#edition_portion, #language_portion, #number_portion, #publisher_portion, #to_s

Methods inherited from Pubid::Iec::Identifier

#all_parts_from_kv, #all_parts_to_kv, #build_code, build_type_map, #copublishers_from_kv, #copublishers_to_kv, #day_from_kv, #day_to_kv, default_publisher, #emit_code, #month_from_kv, #month_to_kv, #number_from_kv, #number_to_kv, parse, #part_from_kv, #part_to_kv, published_typed_stage, #publisher_from_kv, #publisher_to_kv, #stage, #stage_from_kv, #stage_iteration_from_kv, #stage_iteration_to_kv, #stage_to_kv, #subpart_from_kv, #subpart_to_kv, #type, #undated_from_kv, #undated_to_kv, #year_from_kv, #year_to_kv

Methods inherited from Pubid::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



96
97
98
99
# File 'lib/pubid/iec/identifiers/interpretation_sheet.rb', line 96

def self.type
  { key: :ish,
    web: :interpretation_sheet, title: "Interpretation Sheet", short: "ISH" }
end