metanorma / metanorma-iso

Metanorma processor for ISO standards
BSD 2-Clause "Simplified" License
13 stars 5 forks source link

ISO Recommendation docidentifier with `/R` #1107

Closed Intelligent2013 closed 6 months ago

Intelligent2013 commented 6 months ago

Source issue: https://github.com/metanorma/metanorma-iso/issues/1089

ISO Recommendation identifier has a prefix /R: image

pubid-iso supports it:

pubid = Pubid::Iso::Identifier.create(publisher: "ISO", type: "R", number: 123)
print pubid.to_s

returns ISO/R 123.

Preliminary solution: add "recommendation": :r in metanorma-iso\lib\metanorma\iso\front_id.rb:

      DOCTYPE2HASHID =
        { directive: :dir, "technical-report": :tr, "guide": :guide,
          "technical-specification": :ts,
          "publicly-available-specification": :pas,
          "committee-document": :tc,
          "recommendation": :r }.freeze
opoudjis commented 6 months ago

Recommendation has not hitherto been recognised (it's legacy).