Class: Pubid::Cie::Identifiers::Proceedings

Inherits:
SingleIdentifier show all
Defined in:
lib/pubid/cie/identifiers/proceedings.rb

Overview

Proceedings paper identifier for CIE conference papers.

Two surface forms share this type:

x-prefixed (attached to a conference): "CIE x043-OP01"
standalone (with a page range):        "CIE OP02 1-5"

The paper itself is the document, so its identity (code + running number, e.g. "OP01") is stored flat as number for BOTH forms. This gives every proceedings row a non-empty relaton-index binary-search key (see index_number_spec). The x-form's parent conference lives in conference; the standalone form's page range is its locality. No-default values so absent keys drop from to_hash (round-trip).

Instance Method Summary collapse

Methods inherited from SingleIdentifier

#date_sep_char, #exclude, #mr_languages, #mr_year

Methods inherited from Pubid::Cie::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_slug, #to_supplement_s, #to_urn, #urn_supplement_type, #urn_type_code, #year

Constructor Details

This class inherits a constructor from Pubid::Identifier

Instance Method Details

#to_sObject



29
30
31
32
33
34
35
# File 'lib/pubid/cie/identifiers/proceedings.rb', line 29

def to_s
  if conference
    "CIE x#{conference}-#{number}"
  else
    "CIE #{number} #{page}"
  end
end