metanorma / metanorma-iso

Metanorma processor for ISO standards
BSD 2-Clause "Simplified" License
14 stars 5 forks source link

OMG references coming up with incorrect identifiers #1188

Closed ronaldtse closed 2 months ago

ronaldtse commented 3 months ago

Here's the bib item itself:

$ relaton fetch 'OMG UML 2.1.1 Superstructure'
<bibdata schema-version="v1.2.8">
  <fetched>2024-06-28</fetched>
  <title type="main" format="text/plain" language="en" script="Latn">Unified Modeling Language: Superstructure</title>
  <uri type="src">https://www.omg.org/spec/UML/2.1.1/Superstructure/PDF</uri>
  <docidentifier type="OMG" primary="true">UML 2.1.1 Superstructure</docidentifier>
  <date type="published">
    <on>2007-07</on>
  </date>
  <version>
    <revision-date>2007-07-01</revision-date>
    <draft>2.1.1</draft>
  </version>
  <abstract format="text/plain" language="en" script="Latn">A specification defining a graphical language for visualizing, specifying, constructing, and documenting the artifacts of distributed object systems.</abstract>
  <status>
    <stage>formal</stage>
  </status>
  <relation type="obsoletes">
    <bibitem>
      <formattedref format="text/plain">OMG UML 2.0</formattedref>
    </bibitem>
  </relation>
  <relation type="obsoletes">
    <bibitem>
      <formattedref format="text/plain">OMG UML 1.5</formattedref>
    </bibitem>
  </relation>
  <relation type="obsoletes">
    <bibitem>
      <formattedref format="text/plain">OMG UML 1.4</formattedref>
    </bibitem>
  </relation>
  <relation type="obsoletes">
    <bibitem>
      <formattedref format="text/plain">OMG UML 1.3</formattedref>
    </bibitem>
  </relation>
  <relation type="obsoletes">
    <bibitem>
      <formattedref format="text/plain">OMG UML 1.2</formattedref>
    </bibitem>
  </relation>
  <relation type="obsoletes">
    <bibitem>
      <formattedref format="text/plain">OMG UML 1.1</formattedref>
    </bibitem>
  </relation>
  <license>RF-Limited</license>
  <keyword>Modeling</keyword>
  <keyword>Software Engineering</keyword>
  <keyword>Platform</keyword>
</bibdata>

It's now rendered as "OMG UML/2.1.1 2.1.1"

image

But the actual docidentifier is:

<docidentifier type="OMG" primary="true">UML 2.1.1 Superstructure</docidentifier>

It should be:

OMG UML 2.1.1 Superstructure
andrew2net commented 2 months ago

Fixed in v1.19.1