relaton / relaton-nist

NistBib: retrieve NIST Standards for bibliographic use using the BibliographicItem model
https://www.metanorma.com
MIT License
2 stars 1 forks source link

Support fetching documents using NIST MR code #49

Closed ronaldtse closed 3 years ago

ronaldtse commented 3 years ago

Relaton NIST should support fetching documents using the NIST MR code, specified here:

https://github.com/metanorma/metanorma-nist/issues/168

ronaldtse commented 3 years ago

@andrew2net says the feed mostly works, except for the "update" action. Can you elaborate here? Thanks!

andrew2net commented 3 years ago

@ronaldtse the "nist-mr" identifier uses a dot as a delimiter but NIST identifiers often has version number with dots. For example what would the "NIST SP 800-63 Ver. 1.0.2" identifier be in the "nist-mr" format?

ronaldtse commented 3 years ago

@andrew2net good question. How about we replace the '.' in the Ver with '-'? We will have to update documentation.

andrew2net commented 3 years ago

@ronaldtse I think we coudl use Regex to extract version with dots in it's value from an identifier. So we can use identifiers like "NIST.SP.800-63.ver.1.0.2" Anodther question is: how to encode addendum "NIST SP 800-38A Addendum"?

ronaldtse commented 3 years ago

We must stick to the defined NIST MR syntax (metanorma/metanorma-nist#168). So the code has to be: