relaton / relaton-iso

RelatonIso: ISO Standards metadata using the BibliographicItem model
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Document identifiers of Amendments/TS/TR/Cor are incorrect #92

Closed ronaldtse closed 4 years ago

ronaldtse commented 4 years ago

See https://github.com/metanorma/metanorma-iso/issues/383

ronaldtse commented 4 years ago

Please also check: https://github.com/metanorma/metanorma-iso/issues/384 https://github.com/metanorma/metanorma-iso/issues/385

andrew2net commented 4 years ago

See metanorma/metanorma-iso#383

@ronaldtse I think it isn't relaton-iso issue. I've tried to run:

metanorma -x xml sources/amendment/rice-amd.awi.adoc

the sources/amendment/rice-amd.awi.adoc contains:

= ISO 17301-1 Amd
:docnumber: 17301
:comment: tc-document-number only appears on drafts
:tc-document-number:
:edition: 2
:created-date: 2016-05-01
:updates: ISO 17301-1:2016
:amendment-number: 1
:copyright-year: 2017
...

from the content the metanorma generates:

...
<docidentifier type="iso">ISO/NWIP 17301-1:2016/Amd.1</docidentifier>
<docidentifier type="iso-with-lang">ISO/NWIP 17301-1:2016/Amd.1(E)</docidentifier>
<docidentifier type="iso-reference">ISO/NWIP 17301-1:2016/Amd.1:2017(E)</docidentifier>
...

Concerning stages, it seems you need to use the last relaton-cli. I get:

image
andrew2net commented 4 years ago

Please also check: metanorma/metanorma-iso#384 metanorma/metanorma-iso#385

@ronaldtse I don't understand what's the problem.

opoudjis commented 4 years ago

from the content the metanorma generates:

...
<docidentifier type="iso">ISO/NWIP 17301-1:2016/Amd.1</docidentifier>
<docidentifier type="iso-with-lang">ISO/NWIP 17301-1:2016/Amd.1(E)</docidentifier>
<docidentifier type="iso-reference">ISO/NWIP 17301-1:2016/Amd.1:2017(E)</docidentifier>
...

Have only just implemented requested fixes.