Closed opoudjis closed 1 year ago
In addition, language and iteration numbers are missing from Amendment URNs:
base = Pubid::Iso::Identifier.parse("ISO 17301-1:2016")
base.edition = 1
id = Pubid::Iso::Identifier.create(:number=>"1", :type=>:amd, :publisher=>"ISO", :year=>"2017", :iteration=>"3", language=>"en", :stage=>"10.20", :base=>base)
id.urn == "urn:iso:std:iso:17301:-1:ed-1:stage-10.20:amd:iso:2017:v1"
I expect to see urn:iso:std:iso:17301:-1:ed-1:stage-10.20:amd:iso:2017:v1.3:en
What the title says is a bug, but these are intended (and correct):
The only fix here is:
:iso
element should not be in the URN.
That is incorrect, it should be
urn:iso:std:iso:17301:-1:ed-1:stage-10.20:amd:2017:v1
The same behaviour is happening with corrigenda.