README.adoc in relaton-iso-bib-0.2.4 vs README.adoc in relaton-iso-bib-0.3.0
- old
+ new
@@ -33,11 +33,11 @@
fetched: "2018-10-21",
structuredidentifier: RelatonIsoBib::StructuredIdentifier.new(
type: "sid", project_number: "ISO 1-2:2014", part: 2, subpart: 2,
),
docnumber: "123456",
- titles: [
+ title: [
{ title_intro: "Geographic information", title_main: "Metadata",
title_part: "Part 1: Fundamentals", language: "en", script: "Latn" },
{ title_intro: "Information géographique", title_main: "Métadonnées",
title_part: "Information géographique", language: "fr",
script: "Latn" },
@@ -53,21 +53,21 @@
{ content: "ISO 19115-1:2014 defines the schema required for ...",
language: "en", script: "Latn", format: "text/plain" },
{ content: "L'ISO 19115-1:2014 définit le schéma requis pour ...",
language: "fr", script: "Latn", format: "text/plain" },
],
- contributors: [
+ contributor: [
{ entity: { name: "International Organization for Standardization",
url: "www.iso.org", abbreviation: "ISO" },
- roles: ["publisher"] },
+ role: ["publisher"] },
{
entity: RelatonBib::Person.new(
name: RelatonBib::FullName.new(
completename: RelatonBib::LocalizedString.new("John Smith"),
),
),
- roles: ["author"],
+ role: ["author"],
},
],
copyright: { owner: {
name: "International Organization for Standardization",
abbreviation: "ISO", url: "www.iso.org"
@@ -77,11 +77,11 @@
{ type: "obp",
content: "https://www.iso.org/obp/ui/#!iso:std:53798:en" },
{ type: "rss", content: "https://www.iso.org/contents/data/standard"\
"/05/37/53798.detail.rss" },
],
- relations: [
+ relation: [
RelatonBib::DocumentRelation.new(
type: "updates",
bibitem: RelatonIsoBib::IsoBibliographicItem.new(
formattedref: RelatonBib::FormattedRef.new(content: "ISO 19115:2003"),
docstatus: RelatonBib::DocumentStatus.new(stage: "60", substage: "60"),
@@ -282,11 +282,11 @@
=== Document relations of a standard
[source,ruby]
----
-item.relations
+item.relation
=> [#<RelatonBib::DocumentRelation:0x007fe5198cec80
@bib_locality=[#<RelatonBib::BibItemLocality:0x007fe5198cef78 @reference_from="Reference form", @reference_to=nil, @type="updates">],
@bibitem=
#<RelatonIsoBib::IsoBibliographicItem:0x007fe5198d4ae0
...
@@ -317,10 +317,10 @@
@type="main">]
item.shortref(item.structuredidentifier)
=> "ISO1-2014(allparts):2014: All Parts"
-item.relations.last.bibitem.title
+item.relation.last.bibitem.title
=> [#<RelatonIsoBib::TypedTitleString:0x007fe51b293620
@title=#<RelatonBib::FormattedString:0x007fe51b293530 @content="Metadata", @format="text/plain", @language=["en"], @script=["Latn"]>,
@type="title-main">,
#<RelatonIsoBib::TypedTitleString:0x007fe51b293350
@title=#<RelatonBib::FormattedString:0x007fe51b293288 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,