relaton / relaton-iso

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

Undated Document ID request is fetching the wrong version of Document #54

Closed opoudjis closed 5 years ago

opoudjis commented 5 years ago

There are three versions of ISO 123:

The previous version of relaton-iso, given an undated request for "ISO 123", was correctly fetching edition 3, from 2001. It is now fetching edition 1, from 1974.

This of course is wrong:

I was going to do a spec release for Metanorma, but as this is in the test suite for metanorma-standoc, I'm going to wait for this to be fixed. This will be routinely fetching out of date ISO standards for any documents it processes.

ronaldtse commented 5 years ago

@andrew2net could you please help fix this? Thanks.

  • An undated spec request must fetch the newest matching result, not the oldest

Right

  • An undated spec request must ignore all withdrawn specs anyway

I'm not sure if this is correct. A document can be still compiled after a reference goes withdrawn, and the reference doesn't necessarily change. However, we should give a warning about it. @opoudjis Right?

opoudjis commented 5 years ago

@ronaldtse This is about undated references. An undated reference should surely fetch the latest valid standard, not the latest standard whether valid or withdrawn. (A dated reference, on the other hand, can and should fetch a withdrawn standard.) Of course, if ISO have good processes (which they do), there will always be a more recent valid standard than the withdrawn standard anyway, so it's a moot point; but I'd like that caution in place all the same.