relaton / relaton-ieee

Relaton for fetching IEEE Standards (and perhaps others)
MIT License
1 stars 0 forks source link

Unable to recognise and fetch "IEEE P802.21/D14" #25

Open ronaldtse opened 2 years ago

ronaldtse commented 2 years ago

From https://github.com/metanorma/mn-samples-ieee/issues/5

Commands:

$ bundle exec relaton fetch "IEEE P802.21/D14"
[relaton] (IEEE P802.21/D14) not found.
No matching bibliographic entry found

$ bundle exec relaton fetch "IEEE P802.21"
[relaton] (IEEE P802.21) not found.
No matching bibliographic entry found

$ bundle exec relaton fetch "IEEE 802.21"
[relaton-ieee] ("IEEE 802.21") fetching...
[relaton-ieee] ("IEEE 802.21") found IEEE 802.21-2017
<bibitem id="IEEE802.21-2017">
...
</bibitem>

Relaton should be able to fetch "IEEE P802.21/D14", which is located here: https://ieeexplore.ieee.org/document/4629448

The data is also available in relaton-data-ieee: https://github.com/relaton/relaton-data-ieee/blob/main/data/IEEE_UNAPPROVED_P802-21_D-14.2008-SEPT.yaml

However to find this identifier, we need a normalized identifier, which probably requires us to first integrate pubid-ieee with relaton-ieee.

andrew2net commented 2 years ago

@ronaldtse this happens because normtitle in the source is IEEE Unapproved Draft Std P802.21/D14, Sept 2008.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE publication PUBLIC "-//IEEE//IDAMS Exchange V2.0.0//EN" "ieee_idams_exchange.dtd">
<publication>
  <title><![CDATA[IEEE Unapproved Draft Std P802.21/D14, Sept 2008]]></title>
  <normtitle><![CDATA[IEEE Unapproved Draft Std P802.21/D14, Sept 2008]]></normtitle>
  ...

so with the current PubID implementation, the document can be fetched using the reference IEEE Unapproved P802.21/D-14-2008-Sept.

relaton fetch "IEEE Unapproved P802.21/D-14-2008-Sept"          
[relaton-ieee] ("IEEE Unapproved P802.21/D-14-2008-Sept") fetching...
[relaton-ieee] ("IEEE Unapproved P802.21/D-14-2008-Sept") found IEEE Unapproved P802.21/D-14-2008-Sept
<bibdata type="standard">
  <fetched>2022-08-08</fetched>
  <title type="main" format="text/plain">IEEE Draft Standard for Local and Metropolitan Area Networks: Media Independent Handover Services</title>
  <uri type="src">https://ieeexplore.ieee.org/document/4629448</uri>
  <docidentifier type="IEEE" primary="true">IEEE Unapproved P802.21/D-14-2008-Sept</docidentifier>
  <docidentifier type="IEEE" scope="trademark" primary="true">IEEE Unapproved P802.21™/D-14-2008-Sept</docidentifier>
  <docidentifier type="ISBN">978-1-5044-3342-6</docidentifier>
  ...

It seems we need to integrate the pubid-ieee I'm waiting for release the gem.