Class: Pubid::Iso::Renderer::InternationalWorkshopAgreement

Inherits:
Base
  • Object
show all
Defined in:
lib/pubid/iso/renderer/international_workshop_agreement.rb

Constant Summary collapse

TYPE =
"IWA".freeze

Constants inherited from Base

Base::TRANSLATION

Instance Attribute Summary

Attributes inherited from Base

#prerendered_params

Instance Method Summary collapse

Methods inherited from Base

#postrender_stage, #render, #render_addendum, #render_base, #render_base_identifier, #render_copublisher_string, #render_edition, #render_iteration, #render_language, #render_part, #render_publisher, #render_stage, #render_type_prefix, #render_typed_stage, #render_year

Instance Method Details

#omit_post_publisher_symbol?(_typed_stage, _stage, _opts) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'lib/pubid/iso/renderer/international_workshop_agreement.rb', line 8

def omit_post_publisher_symbol?(_typed_stage, _stage, _opts)
  # always need post publisher symbol, because we always have to add "TR"
  false
end

#render_identifier(params, opts) ⇒ Object



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

def render_identifier(params, opts)
  stage = params.key?(:stage) ? postrender_stage(params[:stage], opts, params) : ""
  "#{stage}#{render_type_prefix(params, opts)} %{number}%{part}%{iteration}%{year}%{amendments}%{corrigendums}%{addendum}%{edition}" % params
end