Class: Pubid::Iso::Parser
- Inherits:
-
Core::Parser
- Object
- Core::Parser
- Pubid::Iso::Parser
- Defined in:
- lib/pubid/iso/parser.rb
Constant Summary collapse
- STAGES =
%w[NP NWIP WD CD FCD PRF AWI PWI FPD].freeze
- TYPES =
%w[DATA ISP IWA R TTA TS TR IS PAS Guide GUIDE DIR].freeze
- SUPPLEMENTS =
TYPED_STAGES = %w[DIS FDIS DPAS FDTR FDTS DTS DTR PDTR PDTS].freeze
%w[Amd Cor AMD COR Suppl].freeze
- STAGED_SUPPLEMENTS =
Pubid::Iso::Identifier::Amendment::TYPED_STAGES.map do |_, v| v[:legacy_abbr] + [v[:abbr]] end.flatten + Pubid::Iso::Identifier::Corrigendum::TYPED_STAGES.map do |_, v| v[:legacy_abbr] + [v[:abbr]] end.flatten + Pubid::Iso::Identifier::Supplement::TYPED_STAGES.map do |_, v| v[:abbr] end.flatten + %w[pDCOR PDAM]
- STAGED_ADDENDA =
Pubid::Iso::Identifier::Addendum::TYPED_STAGES.map do |_, v| v[:abbr] end
- DIR_SUPPLEMENTS =
%w[Supplement SUP].freeze
- TYPED_STAGES =
(Identifier.config.types.map do |type| type::TYPED_STAGES.map do |_, v| v.key?(:legacy_abbr) ? (v[:legacy_abbr] + [v[:abbr]]) : v[:abbr] end end.flatten - STAGED_SUPPLEMENTS + %w[PDTR PDTS]).sort_by(&:length).reverse
- TCTYPES =
["TC", "JTC", "PC", "IT", "CAB", "CASCO", "COPOLCO", "COUNCIL", "CPSG", "CS", "DEVCO", "GA", "GAAB", "INFCO", "ISOlutions", "ITN", "REMCO", "TMB", "TMBG", "WMO", "DMT", "JCG", "SGPM", "ATMG", "CCCC", "CCCC-TG", "JDMT", "JSAG", "JSCTF-TF", "JTCG", "JTCG-TF", "SAG_Acc", "SAG_CRMI", "SAG_CRMI_CG", "SAG_ESG", "SAG_ESG_CG", "SAG_MRS", "SAG SF", "SAG SF_CG", "SMCC", "STMG", "MENA STAR"].freeze
- WGTYPES =
["AG", "AHG", "AhG", "WG", "JWG", "QC", "TF", "PPC", "CAG", "WG SGDG", "WG SR", "STAR", "STTF", "TIG", "CPAG", "CSC", "ITSAG", "CSC/FIN", "CSC/NOM", "CSC/OVE", "CSC/SP", "CSC/FIN", "JAG"].freeze
- ORGANIZATIONS =
%w[IEC IEEE CIW SAE CIE ASME ASTM OECD ISO HL7 CEI].freeze