relaton / relaton-iec

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

IEC 60050 (all parts) misleading fetch #62

Closed opoudjis closed 2 months ago

opoudjis commented 7 months ago

relaton fetch "IEC 60050 (all parts) is returning the title and identifier of IEC 60050-05:1935

      <title type="main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV) - Part 05: Fundamental definitions</title>
      <title type="main" format="text/plain" language="fr" script="Latn">Vocabulaire Electrotechnique International (IEV) - Partie 05: Définitions fondamentales</title>
      <uri type="src">https://webstore.iec.ch/publication/12500</uri>
      <docidentifier type="IEC" primary="true">IEC 60050-05:1935</docidentifier>

It needs to return the bare title "International Electrotechnical Vocabulary (IEV)", and the primary identifier "IEC 60050".

Raised from https://github.com/metanorma/metanorma-ieee/issues/338, is urgent.

ronaldtse commented 7 months ago

@andrew2net this is one of those "special entries" because it's an "all parts" entry with possibly "too many" parts.

andrew2net commented 2 months ago

I update the relaton-data-iec dataset. So after clear your local cache you should get:

$ relaton db clear
[relaton-cli] WARN: Cache DB is cleared
$ relaton fetch "IEC 60050 (all parts)" |more
[relaton-iec] Downloaded index from https://raw.githubusercontent.com/relaton/relaton-data-iec/main/index1.zip
<bibdata type="standard" schema-version="v1.2.9">
  <fetched>2024-07-05</fetched>
  <title type="title-main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV)</title>
  <title type="main" format="text/plain" language="en" script="Latn">International Electrotechnical Vocabulary (IEV)</title>
  <title type="title-main" format="text/plain" language="fr" script="Latn">Vocabulaire Electrotechnique International (IEV)</title>
  <title type="main" format="text/plain" language="fr" script="Latn">Vocabulaire Electrotechnique International (IEV)</title>
  <uri type="src">https://webstore.iec.ch/publication/12500</uri>
  <docidentifier type="IEC" primary="true">IEC 60050 (all parts)</docidentifier>
  <docidentifier type="URN">urn:iec:std:iec:60050:::ser</docidentifier>
  ...
ronaldtse commented 2 months ago

This is excellent to be able to get all the parts at once! I confirm it works. Thank you @andrew2net !