relaton / relaton-iso

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

Trailing words in identifier should result in failure #77

Closed opoudjis closed 4 years ago

opoudjis commented 4 years ago

From https://github.com/metanorma/metanorma-standoc/issues/149

* [[[ISO_7372_data,ISO 7372 Directory]]], _Trade Data Elements Directory_, 2005. UN/CEFACT. http://www.unece.org/cefact/publica/publi_index.htm 

Citation of this will get rendered as ISO 7372 because auto-fetch thinks that the document is citing "ISO 7372", but this is clearly wrong. The intention is citing a data source that relates to ISO 7372, not ISO 7372 itself.

Relaton needs to verify that the identifier submitted is actually matched in the fetched document. relaton-iso did have such behaviour in the past; but an identifier like "ISO 7372 Directory" should not match whatever ISO things the identifier is, and relaton should return "not found" --- in which case the reference is processed as normal.