Closed douglm closed 7 months ago
I've recently done an update (to be released Monday) which will cope better with failures to retrieve records. There also has been a recent update to relaton-un which copes better with such failure to retrieve (https://github.com/relaton/relaton-un/issues/14); I replicated a crash before updating the bibliography.
I'm reporting this failure to fetch to our bibliographic software on the same ticket, but it is possible that the identifier is not what relaton expects; stay tuned. I recommend that if the document is not available for download, the reference should be formatted so as to sidestep online retrieval, formatting the information semantically, as:
https://www.metanorma.org/author/topics/document-format/bibliography/#disable-auto-fetch https://www.metanorma.org/author/topics/document-format/bibliography/#annotated-spans
* [[[EDISTS,nofetch(UN/EDIFACT, D14.A)]]], span:organization[UN Economic Commission for Europe],
span:docid.UN[UN/EDIFACT, D14.A], span:series[STS STATUS], span:date[2014-04-30],
span:uri[http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/trsd/trsdsts.htm]
After all, we are trying to generate RFC XML, which decomposes bibliographic entries into semantic elements.
Given the Asciidoctor:
[bibliography]
== Bibliography
* [[[EDISTS,nofetch(UN/EDIFACT, D14.A)]]], span:organization[UN Economic Commission for Europe], span:docid.UN[UN/EDIFACT, D14.A], span:title[STS STATUS], span:date[2014-04-30], span:uri.src[http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/trsd/trsdsts.htm]
* [[[EDISTS1,UN/EDIFACT, D14.A]]], UN Economic Commission for Europe, UN/EDIFACT, D14.A, STS STATUS, April 30, 2014,http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/trsd/trsdsts.htm
Metanorma will generate the RFC XML output:
<back>
<references anchor="_bibliography">
<name>Bibliography</name>
<reference target="http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/trsd/trsdsts.htm" anchor="EDISTS"><front> <title>STS STATUS</title> <author><organization ascii="UN Economic Commission for Europe">UN Economic Commission for Europe</organization></author> <date day="30" year="2014" month="April"></date> </front> <format target="http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/trsd/trsdsts.htm" type="src"></format> <refcontent>UN/EDIFACT, D14.A</refcontent></reference>
<reference anchor="EDISTS1"><front> <title>UN Economic Commission for Europe, UN/EDIFACT, D14.A, STS STATUS, April 30, 2014,http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/trsd/trsdsts.htm</title><author surname="Unknown"></author> </front> <refcontent>UN/EDIFACT, D14.A</refcontent></reference>
</references>
</back>
Which renders to text as:
[EDISTS] UN Economic Commission for Europe, "STS STATUS", UN/
EDIFACT, D14.A, 30 April 2014,
<http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/
trsd/trsdsts.htm>.
[EDISTS1] "UN Economic Commission for Europe, UN/EDIFACT, D14.A, STS
STATUS, April 30,
2014,http://www.unece.org/fileadmin/DAM/trade/untdid/d14a/
trsd/trsdsts.htm", UN/EDIFACT, D14.A.
As you can see,
uri.src
instead of uri
(which defaults to format = HTML); I'm relaxing that condition for next release.@douglm Release should now be out, could you please verify behaviour now?
@douglm Please confirm document is now compiling as expected.
I just tried rebuilding the document (with some changes) and it worked.
I didn't update metanorma however. Reinstated EDISTS and it failed.
Tried brew upgrade metanorma and tried again still failed - then saw metanorma/metanorma/metanorma 1.4.17.20211007_1 already installed
For the moment I'll just remove EDISTS
@douglm that's very strange -- the version is rather old.
Can you try this:
brew install metanorma/metanorma/metanorma
(yes "metanorma" 3 times)
Latest versions from installing from homebrew:
/opt/homebrew/bin/metanorma -v
Metanorma 1.7.3
Metanorma::Cli 1.9.5
Metanorma::Standoc 2.8.6/IsoDoc 2.9.4
Metanorma::ISO 2.7.5
Metanorma::Iec 2.4.5
Metanorma::IEEE 1.2.6
Metanorma::Ietf 3.3.5
Metanorma::Generic 2.6.3
Metanorma::BIPM 2.4.5
Metanorma::CC 2.4.5
Metanorma::Csa 2.4.5
Metanorma::IHO 0.9.5
Metanorma::JIS 0.2.5
Metanorma::UN 0.12.6
Metanorma::Ogc 2.5.5
Metanorma::ITU 2.4.5
The problem here is the identifier of UN/EDIFACT
triggers the load of relaton-un but the UN Docs system now no longer allows machine access. We are in negotiation with the UN Docs team to see how we can fetch from it again.
relaton-un has been temporarily disabled in https://github.com/relaton/relaton-un/commit/30f0ed58ec85e5ea388c3d3c269391387d5dba06
@douglm @opoudjis I can confirm that the issue is fixed at the latest Metanorma version.
I've made a PR here as well:
Get the following when processing the tasks rfc document:
https://github.com/CalConnect/PUBLIC_DRAFTS/tree/master/ical-tasks