relaton / relaton-nist

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

(URGENT) Support "NBS" prefix for NIST documents #77

Closed ronaldtse closed 2 years ago

ronaldtse commented 2 years ago

The NBS prefix is not recognised:

$ bundle exec relaton fetch "NBS SP 500-20e1977"
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
[relaton] NBS SP 500-20e1977 does not have a recognised prefix
No matching bibliographic entry found

But changing to NIST works:

bundle exec relaton fetch "NIST SP 500-20e1977"
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
[relaton-nist] ("NIST SP 500-20e1977") fetching...
[relaton-nist] ("NIST SP 500-20e1977") found SP 500-20
<bibitem id="SP500-20" type="standard">
  <fetched>2022-07-15</fetched>
  <title format="text/plain" language="en" script="Latn">Validating the Correctness of Hardware Implementations of the NBS Data Encryption Standard</title>
  <uri type="src">https://csrc.nist.gov/publications/detail/sp/500-20/archive/1980-09-01</uri>
  <uri type="doi">https://doi.org/10.6028/NBS.SP.500-20e1980</uri>
  <docidentifier type="NIST" primary="true">SP 500-20</docidentifier>
  <date type="published">
    <on>1980-09</on>
  </date>
  <date type="obsoleted">
    <on>0001-01</on>
  </date>
  <date type="issued">
    <on>1980-09</on>
  </date>
...