README.adoc in relaton-ietf-1.3.0 vs README.adoc in relaton-ietf-1.4.0
- old
+ new
@@ -43,11 +43,11 @@
=> #<RelatonIetf::IetfBibliographicItem:0x007fd1875e7f58
...
# Return nil if document doesn't exist.
RelatonIetf::IetfBibliography.search '1111'
-1111.xml: not recognised for RFC
+RelatonBib::RequestError: 1111: not recognised for RFC
=> nil
----
=== Serialization
@@ -57,52 +57,13 @@
=>"<bibitem id="RFC8341">
<fetched>2019-06-05</fetched>
<title format="text/plain" language="en" script="Latn">Network Configuration Access Control Model</title>
<uri type="src">https://www.rfc-editor.org/info/rfc8341</uri>
<docidentifier type="IETF">RFC 8341</docidentifier>
+ <docidentifier type=\"rfc-anchor\">RFC8341</docidentifier>
<docidentifier type="DOI">10.17487/RFC8341</docidentifier>
- <date type="published">
- <on>2018-03</on>
- </date>
- <contributor>
- <role type="author"/>
- <person>
- <name>
- <completename language="en">A. Bierman</completename>
- </name>
- <affiliation>
- <organization>
- <name>IETF</name>
- <abbreviation>IETF</abbreviation>
- </organization>
- </affiliation>
- </person>
- </contributor>
- <contributor>
- <role type="author"/>
- <person>
- <name>
- <completename language="en">M. Bjorklund</completename>
- </name>
- <affiliation>
- <organization>
- <name>IETF</name>
- <abbreviation>IETF</abbreviation>
- </organization>
- </affiliation>
- </person>
- </contributor>
- <language>en</language>
- <script>Latn</script>
- <series type="main">
- <title format="text/plain" language="en" script="Latn">STD</title>
- <number>91</number>
- </series>
- <series type="main">
- <title format="text/plain" language="en" script="Latn">RFC</title>
- <number>8341</number>
- </series>
+ ....
</bibitem>"
----
With `bibdata: true` option XML output wrapped with `bibdata` element and `ext` element added.
[source,ruby]
----
@@ -120,16 +81,19 @@
=== Parse a file locally
[source,ruby]
----
-item = Relaton::Provider::Ietf.from_rfcxml File.read("rfc.xml")
+item = Relaton::Provider::Ietf.from_rfcxml File.read("spec/examples/rfc.xml")
=> #<RelatonIetf::IetfBibliographicItem:0x007fa8cda79ab8
...
item.to_xml bibdata: true
=>"<bibdata>
-...
+ <fetched>2020-09-15</fetched>
+ <title format="text/plain" language="en" script="Latn">ACVP Secure Hash Algorithm (SHA) JSON Specification</title>
+ ...
+</bibdata>"
----
=== Create bibliographic item form YAML
[source,ruby]
----