relaton / relaton-iec

IecBib: retrieve IEC/CIE Standards for bibliographic use using the BibliographicItem model
MIT License
1 stars 0 forks source link

Create gem #1

Closed opoudjis closed 6 years ago

opoudjis commented 6 years ago

The task here is to create a gem with the same functionality as isobib, including scraping, but retrieving bibliographic entries the IEC website, http://www.iec.ch, instead of the ISO website.

From a first look at entries, the information about standards on the IEC site seems better laid out than on the ISO site.

Things to bear in mind with the IEC:

Question for @ronaldtse: IEC specs have a stability date, a date up to which the standard is guaranteed to be unchanged: https://webstore.iec.ch/webstore/webstore.nsf/xpFAQ.xsp?Open&id=ADMN-7NALM5. Do we encode this as a future "obsoleted" or "confirmed" date, or introduce a new category?

opoudjis commented 6 years ago

This is the mapping of IEC status codes, http://www.iec.ch/standardsdev/resources/processes/stage_codes.htm, to ISO status codes, https://www.iso.org/stage-codes.html; see also http://www.iec.ch/standardsdev/resources/processes/pdf/StageCodes_TR_v1.pdf.

@ronaldtse, could you could get a more official mapping out of IEC? They claim to be harmonised, but the mappings are not as straightforward as claimed, and I'm doing some guessing. The codes are also quite redundant, being specific to publication type.

ACD | Approved for CD | IS, TS, TR | 20.99 ACDV | Approved for CDV | IS, TS, TR | 30.99 ADTR | Approved for DTR | TR | 40.99 ADTS | Approved for DTS | TS | 40.99 AFDIS | Approved for FDIS | IS | 40.99 APUB | Approved for publication | IS, TS, TR, PAS | 50.99 BPUB | Being published | IS, TS, TR, PAS | 60.00 CAN | Draft cancelled | IS, TS, TR, PAS | 20.98 CD | Draft circulated as CD | IS, TS, TR | 30.00 CDM | CD to be discussed at meeting | IS, TS, TR | 30.20 CCDV | Draft circulated as CDV | IS | 40.00 CDVM | Rejected CDV to be discussed at a meeting | IS | 40.93 (?) CFDIS | Draft circulated as FDIS | IS | 50.20 CDPAS | Draft circulated as DPAS | PAS | 50.20 CDTR | Draft circulated as DTR | TR | 50.20 CDTS | Draft circulated as DTS | TS | 50.20 DTRM | Rejected DTR to be discussed at meeting | TR | 50.92 DTSM | Rejected DTS to be discussed at meeting | TS | 50.92 DECFDIS | FDIS at editing check | IS | 50.60 DECPUB | Publication at editing check | IS, TS, TR, PAS | 60.00 DEL | Deleted/abandoned | IS, TS, TR | 00.99 DELPUB | Deleted publication | IS, TS, TR, PAS | 90.99 NCDV | CDV rejected | IS | 40.98 NDTR | DTR rejected | TR | 50.98 NDTS | DTS rejected | TS | 50.98 NFDIS | FDIS rejected | IS | 50.98 PCC | Preparation of CC | IS, TS, TR PNW | New work item proposal | IS, TS | 10.00 PPUB | Publication issued | IS, TS, TR, PAS | 60.60 (?) PRVC | Preparation of RVC | IS | 40.92 PRVD | Preparation of RVD | IS | 40.92 PRVDPAS | Preparation of RVDPAS | PAS | 40.92 PRVDTR | Preparation of RVDTR | TR | 40.92 PRVDTS | Preparation of RVDTS | TS | 40.92 PRVN | Preparation of RVN | IS, TS | 40.92 PWI | Preliminary work item | IS, TS, TR | 00.00 RFDIS | FDIS received and registered | IS | 50.00 RPUB | Publication received and registered | IS, TS, TR, PAS | 60.60 TCDV | Translation of CDV | IS | 50.00 TDTR | Translation of DTR | TR | 50.00 TDTS | Translation of DTS | TS | 50.00 TFDIS | Translation of FDIS | IS | 50.00 TPUB | Translation of publication | IS, TS, TR | 60.00 WPUB | Publication withdrawn | IS, TS, TR, PAS | 95.99

ronaldtse commented 6 years ago

We could encode the date, perhaps as a “stable” date because it is not really the obsolescence date? It is a completely different concept — post stable date, there might or might not be an obsolete date and might or might not have a replacement.

opoudjis commented 6 years ago

It'd be lovely if it was a past participle, since all the other ones are; "guaranteed"? "unchanged"?

andrew2net commented 6 years ago

@opoudjis What status should we assign if there isn't a "Work in progress" tab https://webstore.iec.ch/publication/160 ?

opoudjis commented 6 years ago

Published, 60.60

ronaldtse commented 6 years ago

Agree with @opoudjis, past participle.

opoudjis commented 6 years ago

@ronaldtse Are you agreeing to "guaranteed" or to "published"?

ronaldtse commented 6 years ago

@opoudjis I'm not sure if "guaranteed" means the same as "stability" (which is the IEC term). Perhaps "unchanged" is better.

opoudjis commented 6 years ago

Is the gem ready, @andrew2net?

andrew2net commented 6 years ago

@opoudjis I just returned from vacation and back to work on the gem

andrew2net commented 6 years ago

@opoudjis IEC's relations have types Valid, Revised, Replaced, Withdrawn. How should they correlate with BibliographicItem's document relation types? Actually, we get from server Published, but Javascript code changes it to Valid when loads.

andrew2net commented 6 years ago

@opoudjis PCC | Preparation of CC | IS, TS, TR has no stage and substage codes. Did you miss it?

opoudjis commented 6 years ago

From memory, "Valid" is only attached to the current version, so it is not a relation. Revised, Replaced correspond to "updates", and Withdrawn to "obsoletes".

I clearly did miss PCC. As far as I can tell, it is (a) a stage within 30, following on from CD (30.00) (http://www.iec.ch/standardsdev/resources/processes/pdf/StageCodes_IS_v1.pdf), and producing an artefact, CC, which is not otherwise defined. Because I don't quite know what else to do with it, I'll call it 30.92.

andrew2net commented 6 years ago

@opoudjis The gem is ready. It needs IsoBibItem from Github because I added subpart_number attribute but didn't release a new version of the IsoBibItem gem. Also, if it's required, we need to change IsoBibItem to_xml function to add the subpart_number attribute to XML output. As I see in IsoBibItem::IsoDocumentId#to_xml part_number is commented.

opoudjis commented 6 years ago

I'm doing releases, and I've made the changes to iso-bib-item. Thank you!