Class: Pubid::Iso::Renderer::Urn

Inherits:
Core::Renderer::Urn
  • Object
show all
Defined in:
lib/pubid/iso/renderer/urn.rb

Direct Known Subclasses

UrnDir, UrnTc

Constant Summary collapse

STAGES =
{ PWI: 0,
NP: 10,
AWI: 20,
WD: 20.20,
CD: 30,
DIS: 40,
FDIS: 50,
PRF: 50,
IS: 60 }.freeze

Instance Method Summary collapse

Instance Method Details

#render_identifier(params) ⇒ Object



13
14
15
16
# File 'lib/pubid/iso/renderer/urn.rb', line 13

def render_identifier(params)
  render_base(params) + "%{stage}"\
  "%{corrigendum_stage}%{iteration}%{edition}%{amendments}%{corrigendums}%{language}" % params
end

#render_stage(stage, _opts, params) ⇒ Object



18
19
20
# File 'lib/pubid/iso/renderer/urn.rb', line 18

def render_stage(stage, _opts, params)
  ":stage-#{stage.harmonized_code}"
end