metanorma / metanorma-iec

Metanorma for IEC documents
BSD 2-Clause "Simplified" License
1 stars 2 forks source link

IEC stage codes should follow official list #5

Closed ronaldtse closed 5 years ago

ronaldtse commented 5 years ago

https://www.iec.ch/standardsdev/resources/processes/stage_codes.htm

Code | Meaning | Deliverable
-- | -- | --
ACD | Approved for CD | IS, TS, TR
ACDV | Approved for CDV | IS, TS, TR
ADTR | Approved for DTR | TR
ADTS | Approved for DTS | TS
AFDIS | Approved for FDIS | IS
APUB | Approved for publication | IS, TS, TR, PAS, ISH
BPUB | Being published | IS, TS, TR, PAS, ISH
CAN | Draft cancelled | IS, TS, TR, PAS, ISH
CD | Draft circulated as CD | IS, TS, TR
CDM | CD to be discussed at meeting | IS, TS, TR
CCDV | Draft circulated as CDV | IS
CDISH | Draft circulated as DISH | ISH
CDVM | Rejected CDV to be discussed at a meeting | IS
CFDIS | Draft circulated as FDIS | IS
CDPAS | Draft circulated as DPAS | PAS
CDTR | Draft circulated as DTR | TR
CDTS | Draft circulated as DTS | TS
DTRM | Rejected DTR to be discussed at meeting | TR
DTSM | Rejected DTS to be discussed at meeting | TS
DECDISH | DISH at editing check | ISH
DECFDIS | FDIS at editing check | IS
DECPUB | Publication at editing check | IS, TS, TR, PAS
DEL | Deleted/abandoned | IS, TS, TR
DELPUB | Deleted publication | IS, TS, TR, PAS, ISH
NCDV | CDV rejected | IS
NDTR | DTR rejected | TR
NDTS | DTS rejected | TS
NFDIS | FDIS rejected | IS
PCC | Preparation of CC | IS, TS, TR
PNW | New work item proposal | IS, TS
PPUB | Publication issued | IS, TS, TR, PAS, ISH
PRVC | Preparation of RVC | IS
PRVDISH | Preparation of RVDISH | ISH
PRVD | Preparation of RVD | IS
PRVDPAS | Preparation of RVDPAS | PAS
PRVDTR | Preparation of RVDTR | TR
PRVDTS | Preparation of RVDTS | TS
PRVN | Preparation of RVN | IS, TS
PWI | Preliminary work item | IS, TS, TR
RDISH | DISH received and registered | ISH
RFDIS | FDIS received and registered | IS
RPUB | Publication received and registered | IS, TS, TR, PAS
TCDV | Translation of CDV | IS
TDISH | Translation of DISH | ISH
TDTR | Translation of DTR | TR
TDTS | Translation of DTS | TS
TFDIS | Translation of FDIS | IS
TPUB | Translation of publication | IS, TS, TR
WPUB | Publication withdrawn | IS, TS, TR, PAS, ISH
opoudjis commented 5 years ago

We are driving this from the international harmonised codes at https://www.iso.org/stage-codes.html. Currently we have only mapped stage. Most of these involve stage and substage.

The translations require modelling of this being a translation of another standard. That can be modelled in bibdata/relation[@type = 'translationOf']/bibitem/docidentifier, which will be introduced by adding a :translates: document attribute for IEC.

The stage codes also rely on the document type. Some of them may well not have ISO harmonised codes to match them.

ronaldtse commented 5 years ago

@opoudjis are you suggesting to create a translation mechanism for document stages between document flavors?

opoudjis commented 5 years ago

Mapping to ISO harmonised codes is in Annex SH of https://www.iec.ch/members_experts/refdocs/iec/isoiecdir-1-iecsup%7Bed12.0%7Den.pdf

opoudjis commented 5 years ago

Which means translation is already provided by IEC; we will use those numbers as we do in ISO gem for data entry, and map to the stage code in isodoc for rendering.

opoudjis commented 5 years ago

Stages to do with Compilation of Comments (CC), Reports on Votes (RVC, RVN, etc) are ignored: they are not distinct versions of documents, which Metanorma would output:

Stage Code Code Defn Doctypes Note
xxx PCC Preparation of CC IS, TS, TR
xxx PRVC Preparation of RVC IS
xxx PRVDISH Preparation of RVDISH ISH
xxx PRVD Preparation of RVD IS
xxx PRVDPAS Preparation of RVDPAS PAS
xxx PRVDTR Preparation of RVDTR TR
xxx PRVDTS Preparation of RVDTS TS
xxx PRVN Preparation of RVN IS, TS

Preparatory stages are ignored: they are not stamped on any document to be output for circulation by Metanorma:

Editing checks are ignored: they are not being generated by authors for circulation via Metanorma, and their code is not distinct from "Approved for". (E.g. ADIS/AFDIS is not distinct from DECDIS

Stage Code Code Defn Doctypes Note
4099 DEC* Register for next applicable phase
xxx DECPUB Publication at editing check IS, TS, TR, PAS
4099 DECDISH DISH at editing check ISH NOT IN ANNEX SH, inferred
xxx DECFDIS FDIS at editing check IS

It is not clear from the workflows whether the translations have distinct status codes

Stage Code Code Defn Doctypes Note
3595? TCDV Translation of CDV IS not clear whether any document will be labelled with this
4095? TDISH Translation of DISH ISH not clear whether any document will be labelled with this
4095? TDTR Translation of DTR TR not clear whether any document will be labelled with this
4095? TDTS Translation of DTS TS not clear whether any document will be labelled with this
4095? TFDIS Translation of FDIS IS not clear whether any document will be labelled with this
5095? TPUB Translation of publication IS, TS, TR not clear whether any document will be labelled with this

Some codes do not have room for a distinct ISO harmonised code, and are apparently responsibility of central office and not author anyway:

Stage Code Code Defn Doctypes Note
RPUB Publication received and registered IS, TS, TR, PAS Between 50.99 APUB and 60.00 BPUB

This leaves:

Stage Code Code Defn Doctypes Note
0000 PWI Preliminary work item IS, TS, TR
1000 PNW New work item proposal IS, TS
2000 ANW Registration of new project NOT IN IEC WEBSITE
2098 CAN Draft cancelled IS, TS, TR, PAS, ISH
2098 DEL Deleted/abandoned IS, TS, TR NOT DISTINCT FROM CAN
2099 ACD Approved for CD IS, TS, TR NOT IN ANNEX SH, inferred
3020 CD Draft circulated as CD IS, TS, TR
3092 BWG Return to drafting phase or redefine project NOT IN IEC WEBSITE
3097 MERGED Merge or split project NOT IN IEC WEBSITE
3098 DREJ Abandon NOT IN ANNEX SH
3099 A2CD Register for next applicable phase NOT IN IEC WEBSITE
3520 2CD .. 9CD Circulation for comment NOT IN IEC WEBSITE
3591 CDM CD to be discussed at meeting IS, TS, TR
3592 A3CD ... A9CD Return to drafting phase NOT IN IEC WEBSITE
3599 ACDV Approved for CDV IS, TS, TR
4020 CCDV Draft circulated as CDV IS
4091 CDVM Rejected CDV to be discussed at a meeting IS
4092 NCDV CDV rejected IS NOT IN ANNEX SH, inferred
4093 NADIS Repeat enquiry NOT IN IEC WEBSITE
4095 ADISSB Preparation of text subcontracted to CO NOT IN IEC WEBSITE
4099 ADIS Register for next applicable phase IN IEC WEBSITE, this is AFDIS
4099 ADTR Approved for DTR TR
4099 ADTS Approved for DTS TS
5000 RDIS Registration for formal approval IN IEC WEBSITE, THIS IS RFDIS
5000 RDISH DISH received and registered ISH NOT IN ANNEX SH, inferred
5020 CDIS Circulation for formal approval IS IN IEC WEBSITE, THIS IS CFDIS
5020 CDISH Draft circulated as DISH ISH NOT IN ANNEX SH, inferred
5020 CDPAS Draft circulated as DPAS PAS SPECIFIC TO PAS
5020 CDTR Draft circulated as DTR TR
5020 CDTS Draft circulated as DTS TS
5092 DTRM Rejected DTR to be discussed at meeting TR identical to NDTR, takes priority as circulated for meeting
5092 DTSM Rejected DTS to be discussed at meeting TS identical to NDTS, takes priority as circulated for meeting
5092 NCD Return to drafting phase IN IEC WEBSITE, THIS IS NFDIS
5092 NDTR DTR rejected TR
5092 NDTS DTS rejected TS
5095 APUBSB Preparation of text subcontracted to CO NOT IN IEC WEBSITE
5099 APUB Approved for publication IS, TS, TR, PAS, ISH
6000 BPUB Being published IS, TS, TR, PAS, ISH
6060 PPUB Publication issued IS, TS, TR, PAS, ISH
9092 RR Review report NOT IN IEC WEBSITE
9220 AMW Document under revision NOT IN IEC WEBSITE
9599 WPUB Publication withdrawn IS, TS, TR, PAS, ISH
9960 DELPUB Deleted publication IS, TS, TR, PAS, ISH

I've had to make some decisions:

opoudjis commented 5 years ago

The final foregoing table is what I'm going to implement.

ronaldtse commented 5 years ago

This link is Edition 15 for 2019: https://www.iec.ch/members_experts/refdocs/iec/isoiecdir1-consolidatediecsup%7Bed15.0.RLV%7Den.pdf

Screenshot:

Edition 14 2018:

image

Edition 15 2019:

image