relaton / relaton-iso

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

(URGENT) Unable to fetch popular standards with different URLs, e.g. "ISO/IEC 27001:2022" #150

Closed ronaldtse closed 1 year ago

ronaldtse commented 1 year ago
$ bundle exec relaton fetch "ISO/IEC 27001:2022"
[relaton-iso] ("ISO/IEC 27001:2022") Fetching from ISO...
Could not parse the page https://www.iso.org/standard/27001

ISO has changed their site that some popular standards now use a custom path, e.g. ISO/IEC 27001:2022 is now on https://www.iso.org/standard/27001.

Right now all the popular standards are not working (9001, 27001, 14001...).

This needs to be fixed ASAP.

andrew2net commented 1 year ago

fixed in v 1.15.4

$ relaton fetch "ISO/IEC 27001:2022"
[relaton-iso] ("ISO/IEC 27001:2022") Fetching from ISO...
[relaton-iso] ("ISO/IEC 27001:2022") Found exact match.
<bibdata type="standard" schema-version="v1.2.3">
  <fetched>2023-05-18</fetched>
  <uri type="src">https://www.iso.org/standard/27001</uri>
  <docidentifier type="ISO" primary="true">ISO/IEC 27001:2022</docidentifier>
  <docidentifier type="iso-reference">ISO/IEC 27001:2022(E)</docidentifier>
  <docidentifier type="URN">urn:iso:std:iso-iec:27001:stage-60.60</docidentifier>
  <docnumber>27001</docnumber>
  <date type="published">
    <on>2022-10</on>
  </date>
  <contributor>
    <role type="publisher"/>
    <organization>
      <name>International Organization for Standardization</name>
      <abbreviation>ISO</abbreviation>
      <uri>www.iso.org</uri>
    </organization>
  </contributor>
  <contributor>
    <role type="publisher"/>
    <organization>
      <name>International Electrotechnical Commission</name>
      <abbreviation>IEC</abbreviation>
      <uri>www.iec.ch</uri>
    </organization>
  </contributor>
  <language>en</language>
  <language>fr</language>
  <script>Latn</script>
  <status>
    <stage>60</stage>
    <substage>60</substage>
  </status>
  <copyright>
    <from>2022</from>
    <owner>
      <organization>
        <name>ISO/IEC</name>
      </organization>
    </owner>
  </copyright>
  <place>Geneva</place>
  <ext schema-version="v1.0.0">
    <doctype>international-standard</doctype>
    <ics>
      <code>35.030</code>
      <text>IT Security</text>
    </ics>
    <ics>
      <code>03.100.70</code>
      <text>Management systems</text>
    </ics>
    <structuredidentifier type="ISO">
      <project-number>ISO 27001</project-number>
    </structuredidentifier>
  </ext>
</bibdata>
ronaldtse commented 1 year ago

Thank you @andrew2net !