relaton-iso-bib 1.1.0 → 1.5.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ubuntu.yml +1 -0
- data/.rubocop.yml +2 -2
- data/README.adoc +145 -217
- data/grammars/biblio.rng +1 -1
- data/grammars/isodoc.rng +557 -21
- data/grammars/isostandard.rng +4 -1
- data/lib/relaton_iso_bib/editorial_group.rb +45 -8
- data/lib/relaton_iso_bib/hash_converter.rb +2 -69
- data/lib/relaton_iso_bib/ics.rb +14 -1
- data/lib/relaton_iso_bib/iso_bibliographic_item.rb +29 -174
- data/lib/relaton_iso_bib/structured_identifier.rb +34 -10
- data/lib/relaton_iso_bib/version.rb +1 -1
- data/lib/relaton_iso_bib/xml_parser.rb +3 -22
- data/relaton_iso_bib.gemspec +1 -1
- metadata +9 -10
- data/lib/relaton_iso_bib/typed_title_string.rb +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58423e5ad7c5cff215fc3012e90a83f4ac4aeefed297c5f37a3dd3f8afcc808c
|
4
|
+
data.tar.gz: 4e274610d1a54438a2c7338d11c8b8810db5ad04f0cb65402cbd135e7d79d041
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09df3e18a2a23625bcd273dccd2cbc4433e558615b0b377188c748083289a088a4b82a5d00ec5b3d77dd94ed136e849fa8bd3e430fb1e309db6556a8705fd3cb'
|
7
|
+
data.tar.gz: b819fc016915852535ac8cf85b064dae33c267154f811b51e982547ff2db587ffcadd6955662a2371b1eb2660edb65eef34e04ffdea09594e6f5797ca4ae987b
|
data/.rubocop.yml
CHANGED
data/README.adoc
CHANGED
@@ -40,11 +40,14 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
40
40
|
),
|
41
41
|
docnumber: "123456",
|
42
42
|
title: [
|
43
|
-
{
|
44
|
-
|
45
|
-
{
|
46
|
-
|
47
|
-
|
43
|
+
{ type: "title-intro", content: "Metadata", language: "en", script: "Latn" },
|
44
|
+
{ type: "title-main", content: "Geographic information", language: "en", script: "Latn" },
|
45
|
+
{ type: "title-part", content: "Part 1: Fundamentals", language: "en", script: "Latn" },
|
46
|
+
{ type: "main", content: "Metadata - Geographic information - Part 1: Fundamentals", language: "en", script: "Latn" },
|
47
|
+
{ type: "title-intro", content: "Métadonnées", language: "fr", script: "Latn" },
|
48
|
+
{ type: "title-main", content: "Information géographique", language: "fr", script: "Latn" },
|
49
|
+
{ type: "title-part", content: "Partie 1: Principes de base", language: "fr", script: "Latn" },
|
50
|
+
{ type: "main", content: "Information géographique - Métadonnées - Partie 1: Principes de base", language: "fr", script: "Latn" },
|
48
51
|
],
|
49
52
|
edition: "1",
|
50
53
|
version: RelatonBib::BibliographicItem::Version.new("2019-04-01", ["draft"]),
|
@@ -52,7 +55,7 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
52
55
|
script: ["Latn"],
|
53
56
|
type: "international-standard",
|
54
57
|
docstatus: RelatonBib::DocumentStatus.new(stage: "60", substage: "60"),
|
55
|
-
|
58
|
+
date: [{ type: "published", on: "2014-04" }],
|
56
59
|
abstract: [
|
57
60
|
{ content: "ISO 19115-1:2014 defines the schema required for ...",
|
58
61
|
language: "en", script: "Latn", format: "text/plain" },
|
@@ -62,20 +65,21 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
62
65
|
contributor: [
|
63
66
|
{ entity: { name: "International Organization for Standardization",
|
64
67
|
url: "www.iso.org", abbreviation: "ISO" },
|
65
|
-
role: ["publisher"] },
|
68
|
+
role: [type: "publisher"] },
|
66
69
|
{
|
67
70
|
entity: RelatonBib::Person.new(
|
68
71
|
name: RelatonBib::FullName.new(
|
69
72
|
completename: RelatonBib::LocalizedString.new("John Smith"),
|
70
73
|
),
|
71
74
|
),
|
72
|
-
role: ["author"],
|
75
|
+
role: [type: "author"],
|
73
76
|
},
|
74
77
|
],
|
75
|
-
copyright: {
|
76
|
-
|
77
|
-
|
78
|
-
|
78
|
+
copyright: [{
|
79
|
+
owner: [{
|
80
|
+
name: "International Organization for Standardization",
|
81
|
+
abbreviation: "ISO", url: "www.iso.org"
|
82
|
+
}], from: "2014" }],
|
79
83
|
link: [
|
80
84
|
{ type: "src", content: "https://www.iso.org/standard/53798.html" },
|
81
85
|
{ type: "obp",
|
@@ -90,7 +94,7 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
90
94
|
formattedref: RelatonBib::FormattedRef.new(content: "ISO 19115:2003"),
|
91
95
|
docstatus: RelatonBib::DocumentStatus.new(stage: "60", substage: "60"),
|
92
96
|
),
|
93
|
-
|
97
|
+
locality: [
|
94
98
|
RelatonBib::BibItemLocality.new("updates", "Reference form"),
|
95
99
|
],
|
96
100
|
),
|
@@ -105,7 +109,7 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
105
109
|
series: [
|
106
110
|
RelatonBib::Series.new(
|
107
111
|
type: "main",
|
108
|
-
title:
|
112
|
+
title: RelatonBib::TypedTitleString.new(
|
109
113
|
type: "title-main", content: "ISO/IEC FDIS 10118-3", language: "en", script: "Latn",
|
110
114
|
),
|
111
115
|
place: "Serie's place",
|
@@ -133,7 +137,7 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
133
137
|
),
|
134
138
|
],
|
135
139
|
accesslocation: ["accesslocation1", "accesslocation2"],
|
136
|
-
classification: RelatonBib::Classification.new(type: "type", value: "value"),
|
140
|
+
classification: [RelatonBib::Classification.new(type: "type", value: "value")],
|
137
141
|
validity: RelatonBib::Validity.new(
|
138
142
|
begins: Time.new(2010, 10, 10, 12, 21),
|
139
143
|
ends: Time.new(2011, 2, 3, 18,30),
|
@@ -156,9 +160,9 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
156
160
|
ics: [{ field: 35, group: 240, subgroup: 70 }],
|
157
161
|
)
|
158
162
|
|
159
|
-
=> #<RelatonIsoBib::IsoBibliographicItem:
|
163
|
+
=> #<RelatonIsoBib::IsoBibliographicItem:0x007fc0b88c66a0
|
160
164
|
@abstract=
|
161
|
-
[#<RelatonBib::FormattedString:
|
165
|
+
[#<RelatonBib::FormattedString:0x007fc0b88c5ae8 @content="ISO 19115-1:2014 defines the schema required for ...", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
162
166
|
...
|
163
167
|
----
|
164
168
|
|
@@ -167,50 +171,44 @@ item = RelatonIsoBib::IsoBibliographicItem.new(
|
|
167
171
|
[source,ruby]
|
168
172
|
----
|
169
173
|
item.title
|
170
|
-
=> [#<
|
171
|
-
@title=#<RelatonBib::FormattedString:
|
172
|
-
@type="title-main">,
|
173
|
-
#<RelatonIsoBib::TypedTitleString:0x007fe5198ac590
|
174
|
-
@title=#<RelatonBib::FormattedString:0x007fe5198a7ab8 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
174
|
+
=> [#<RelatonBib::TypedTitleString:0x007fc08e95a640
|
175
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e95a500 @content="Metadata", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
175
176
|
@type="title-intro">,
|
176
|
-
#<
|
177
|
-
@title=#<RelatonBib::FormattedString:
|
177
|
+
#<RelatonBib::TypedTitleString:0x007fc08e95a460
|
178
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e95a320 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
179
|
+
@type="title-main">,
|
180
|
+
#<RelatonBib::TypedTitleString:0x007fc08e95a280
|
181
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e95a140 @content="Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
178
182
|
@type="title-part">,
|
179
|
-
#<
|
180
|
-
@title=
|
181
|
-
#<RelatonBib::FormattedString:0x007fe5198a5268 @content="Metadata - Geographic information - Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
183
|
+
#<RelatonBib::TypedTitleString:0x007fc08e95a0a0
|
184
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e959f60 @content="Metadata - Geographic information - Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
182
185
|
@type="main">,
|
183
|
-
#<
|
184
|
-
@title=#<RelatonBib::FormattedString:
|
185
|
-
@type="title-main">,
|
186
|
-
#<RelatonIsoBib::TypedTitleString:0x007fe51989d1a8
|
187
|
-
@title=#<RelatonBib::FormattedString:0x007fe51989cca8 @content="Information géographique", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
186
|
+
#<RelatonBib::TypedTitleString:0x007fc08e959ec0
|
187
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e959d80 @content="Métadonnées", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
188
188
|
@type="title-intro">,
|
189
|
-
#<
|
190
|
-
@title=#<RelatonBib::FormattedString:
|
189
|
+
#<RelatonBib::TypedTitleString:0x007fc08e959ce0
|
190
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e959ba0 @content="Information géographique", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
191
|
+
@type="title-main">,
|
192
|
+
#<RelatonBib::TypedTitleString:0x007fc08e959b00
|
193
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e9599c0 @content="Partie 1: Principes de base", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
191
194
|
@type="title-part">,
|
192
|
-
#<
|
195
|
+
#<RelatonBib::TypedTitleString:0x007fc08e959920
|
193
196
|
@title=
|
194
|
-
#<RelatonBib::FormattedString:
|
195
|
-
@content="Métadonnées - Information géographique - Information géographique",
|
196
|
-
@format="text/plain",
|
197
|
-
@language=["fr"],
|
198
|
-
@script=["Latn"]>,
|
197
|
+
#<RelatonBib::FormattedString:0x007fc08e9597e0 @content="Information géographique - Métadonnées - Partie 1: Principes de base", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
199
198
|
@type="main">]
|
200
199
|
|
201
200
|
item.title(lang: "en")
|
202
|
-
=> [#<
|
203
|
-
@title=#<RelatonBib::FormattedString:
|
204
|
-
@type="title-main">,
|
205
|
-
#<RelatonIsoBib::TypedTitleString:0x007fe5198ac590
|
206
|
-
@title=#<RelatonBib::FormattedString:0x007fe5198a7ab8 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
201
|
+
=> [#<RelatonBib::TypedTitleString:0x007fc08e95a640
|
202
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e95a500 @content="Metadata", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
207
203
|
@type="title-intro">,
|
208
|
-
#<
|
209
|
-
@title=#<RelatonBib::FormattedString:
|
204
|
+
#<RelatonBib::TypedTitleString:0x007fc08e95a460
|
205
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e95a320 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
206
|
+
@type="title-main">,
|
207
|
+
#<RelatonBib::TypedTitleString:0x007fc08e95a280
|
208
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e95a140 @content="Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
210
209
|
@type="title-part">,
|
211
|
-
#<
|
212
|
-
@title=
|
213
|
-
#<RelatonBib::FormattedString:0x007fe5198a5268 @content="Metadata - Geographic information - Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
210
|
+
#<RelatonBib::TypedTitleString:0x007fc08e95a0a0
|
211
|
+
@title=#<RelatonBib::FormattedString:0x007fc08e959f60 @content="Metadata - Geographic information - Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
214
212
|
@type="main">]
|
215
213
|
|
216
214
|
item.abstract(lang: "en").to_s
|
@@ -222,7 +220,7 @@ item.abstract(lang: "en").to_s
|
|
222
220
|
[source,ruby]
|
223
221
|
----
|
224
222
|
item.shortref(item.structuredidentifier)
|
225
|
-
=> "ISO1-2-2014
|
223
|
+
=> "ISO1-2-2014"
|
226
224
|
----
|
227
225
|
|
228
226
|
=== IsoBibliographicItem URLs
|
@@ -259,11 +257,11 @@ item.ics
|
|
259
257
|
|
260
258
|
[source,ruby]
|
261
259
|
----
|
262
|
-
item.
|
263
|
-
=> [
|
260
|
+
item.date
|
261
|
+
=> [#<RelatonBib::BibliographicDate:0x007fc0aeb88438 @from=nil, @on=#<Date: 2014-04-01 ((2456749j,0s,0n),+0s,2299161j)>, @to=nil, @type="published">]
|
264
262
|
|
265
|
-
item.
|
266
|
-
=> 2014-01
|
263
|
+
item.date.filter(type: "published").first.on
|
264
|
+
=> #<Date: 2014-04-01 ((2456749j,0s,0n),+0s,2299161j)>
|
267
265
|
----
|
268
266
|
|
269
267
|
=== IsoBibliographicItem DocumentStatus
|
@@ -271,7 +269,10 @@ item.dates.filter(type: "published").first.on
|
|
271
269
|
[source,ruby]
|
272
270
|
----
|
273
271
|
item.status
|
274
|
-
=> #<RelatonBib::DocumentStatus:
|
272
|
+
=> #<RelatonBib::DocumentStatus:0x007fc0aeb927d0
|
273
|
+
@iteration=nil,
|
274
|
+
@stage=#<RelatonBib::DocumentStatus::Stage:0x007fc0aeb92708 @abbreviation=nil, @value="60">,
|
275
|
+
@substage=#<RelatonBib::DocumentStatus::Stage:0x007fc0aeb92690 @abbreviation=nil, @value="60">>
|
275
276
|
----
|
276
277
|
|
277
278
|
[source,ruby]
|
@@ -289,10 +290,11 @@ wg = item.editorialgroup
|
|
289
290
|
[source,ruby]
|
290
291
|
----
|
291
292
|
item.relation
|
292
|
-
=>
|
293
|
-
|
294
|
-
|
295
|
-
|
293
|
+
=> #<RelatonBib::DocRelationCollection:0x007fc0aeb819f8
|
294
|
+
@array=
|
295
|
+
[#<RelatonBib::DocumentRelation:0x007fc0aeb90610
|
296
|
+
@bibitem=
|
297
|
+
#<RelatonIsoBib::IsoBibliographicItem:0x007fc0aeb91330
|
296
298
|
...
|
297
299
|
----
|
298
300
|
|
@@ -305,54 +307,52 @@ which strips the part number and part title of the original, and its abstract. T
|
|
305
307
|
|
306
308
|
[source,ruby]
|
307
309
|
----
|
308
|
-
item.to_all_parts
|
309
|
-
=>
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
310
|
+
all_parts_item = item.to_all_parts
|
311
|
+
=> #<RelatonIsoBib::IsoBibliographicItem:0x007fc0aec00960
|
312
|
+
@abstract=[],
|
313
|
+
@accesslocation=["accesslocation1", "accesslocation2"],
|
314
|
+
@all_parts=true,
|
315
|
+
...
|
316
|
+
|
317
|
+
all_arts_item.title(lang: "en")
|
318
|
+
=> [#<RelatonBib::TypedTitleString:0x007fc08f388dd8
|
319
|
+
@title=#<RelatonBib::FormattedString:0x007fc08f388d10 @content="Metadata", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
317
320
|
@type="title-intro">,
|
318
|
-
#<
|
319
|
-
@title=
|
320
|
-
|
321
|
+
#<RelatonBib::TypedTitleString:0x007fc08f388b58
|
322
|
+
@title=#<RelatonBib::FormattedString:0x007fc08f388b08 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
323
|
+
@type="title-main">,
|
324
|
+
#<RelatonBib::TypedTitleString:0x007fc08f3888d8
|
325
|
+
@title=#<RelatonBib::FormattedString:0x007fc08f388888 @content="Metadata – Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
321
326
|
@type="main">]
|
322
327
|
|
323
|
-
|
324
|
-
=> "ISO1
|
328
|
+
all_arts_item.shortref(item.structuredidentifier)
|
329
|
+
=> "ISO1(allparts):2014: All Parts"
|
325
330
|
|
326
|
-
|
327
|
-
=> [#<
|
328
|
-
@title=#<RelatonBib::FormattedString:
|
329
|
-
@type="title-main">,
|
330
|
-
#<RelatonIsoBib::TypedTitleString:0x007fe51b293350
|
331
|
-
@title=#<RelatonBib::FormattedString:0x007fe51b293288 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
331
|
+
all_arts_item.relation.last.bibitem.title
|
332
|
+
=> [#<RelatonBib::TypedTitleString:0x007fc0aeb7bd28
|
333
|
+
@title=#<RelatonBib::FormattedString:0x007fc0aeb7bad0 @content="Metadata", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
332
334
|
@type="title-intro">,
|
333
|
-
#<
|
334
|
-
@title=#<RelatonBib::FormattedString:
|
335
|
+
#<RelatonBib::TypedTitleString:0x007fc0aeb7ba30
|
336
|
+
@title=#<RelatonBib::FormattedString:0x007fc0aeb7b8c8 @content="Geographic information", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
337
|
+
@type="title-main">,
|
338
|
+
#<RelatonBib::TypedTitleString:0x007fc0aeb7b800
|
339
|
+
@title=#<RelatonBib::FormattedString:0x007fc0aeb7b5f8 @content="Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
335
340
|
@type="title-part">,
|
336
|
-
#<
|
337
|
-
@title=
|
338
|
-
#<RelatonBib::FormattedString:0x007fe51b292ea0 @content="Metadata - Geographic information - Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
341
|
+
#<RelatonBib::TypedTitleString:0x007fc0aeb7b558
|
342
|
+
@title=#<RelatonBib::FormattedString:0x007fc0aeb7b288 @content="Metadata - Geographic information - Part 1: Fundamentals", @format="text/plain", @language=["en"], @script=["Latn"]>,
|
339
343
|
@type="main">,
|
340
|
-
#<
|
341
|
-
@title=#<RelatonBib::FormattedString:
|
342
|
-
@type="title-main">,
|
343
|
-
#<RelatonIsoBib::TypedTitleString:0x007fe51b292b58
|
344
|
-
@title=#<RelatonBib::FormattedString:0x007fe51b292ab8 @content="Information géographique", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
344
|
+
#<RelatonBib::TypedTitleString:0x007fc0aeb7b148
|
345
|
+
@title=#<RelatonBib::FormattedString:0x007fc0aeb7ae00 @content="Métadonnées", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
345
346
|
@type="title-intro">,
|
346
|
-
#<
|
347
|
-
@title=#<RelatonBib::FormattedString:
|
347
|
+
#<RelatonBib::TypedTitleString:0x007fc0aeb7ac48
|
348
|
+
@title=#<RelatonBib::FormattedString:0x007fc0aeb7a888 @content="Information géographique", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
349
|
+
@type="title-main">,
|
350
|
+
#<RelatonBib::TypedTitleString:0x007fc0aeb7a6d0
|
351
|
+
@title=#<RelatonBib::FormattedString:0x007fc0aeb7a400 @content="Partie 1: Principes de base", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
348
352
|
@type="title-part">,
|
349
|
-
#<
|
353
|
+
#<RelatonBib::TypedTitleString:0x007fc0aeb7a2c0
|
350
354
|
@title=
|
351
|
-
#<RelatonBib::FormattedString:
|
352
|
-
@content="Métadonnées - Information géographique - Information géographique",
|
353
|
-
@format="text/plain",
|
354
|
-
@language=["fr"],
|
355
|
-
@script=["Latn"]>,
|
355
|
+
#<RelatonBib::FormattedString:0x007fc0aeb79f28 @content="Information géographique - Métadonnées - Partie 1: Principes de base", @format="text/plain", @language=["fr"], @script=["Latn"]>,
|
356
356
|
@type="main">]
|
357
357
|
----
|
358
358
|
|
@@ -367,14 +367,14 @@ which strips the date of publication of the original, and its abstract. The oper
|
|
367
367
|
|
368
368
|
[source,ruby]
|
369
369
|
----
|
370
|
-
|
371
|
-
=> [#<RelatonBib::BibliographicDate:
|
370
|
+
all_parts_item.date
|
371
|
+
=> [#<RelatonBib::BibliographicDate:0x007fc0aeb88438 @from=nil, @on=#<Date: 2014-04-01 ((2456749j,0s,0n),+0s,2299161j)>, @to=nil, @type="published">]
|
372
372
|
|
373
|
-
|
374
|
-
|
373
|
+
most_recent_ref_item = all_parts_item.to_most_recent_reference
|
374
|
+
most_recent_ref_item.date
|
375
375
|
=> []
|
376
376
|
|
377
|
-
|
377
|
+
most_recent_ref_item.shortref(most_recent_ref_item.structuredidentifier)
|
378
378
|
=> "ISO1(allparts): All Parts"
|
379
379
|
----
|
380
380
|
|
@@ -390,120 +390,7 @@ item.to_xml(bibdata: true)
|
|
390
390
|
<title type="title-intro" format="text/plain" language="en" script="Latn">Geographic information</title>
|
391
391
|
<title type="title-part" format="text/plain" language="en" script="Latn">Part 1: Fundamentals</title>
|
392
392
|
<title type="main" format="text/plain" language="en" script="Latn">Metadata - Geographic information - Part 1: Fundamentals</title>
|
393
|
-
|
394
|
-
<title type="title-intro" format="text/plain" language="fr" script="Latn">Information géographique</title>
|
395
|
-
<title type="title-part" format="text/plain" language="fr" script="Latn">Information géographique</title>
|
396
|
-
<title type="main" format="text/plain" language="fr" script="Latn">Métadonnées - Information géographique - Information géographique</title>
|
397
|
-
<uri type="src">https://www.iso.org/standard/53798.html</uri>
|
398
|
-
<uri type="obp">https://www.iso.org/obp/ui/#!iso:std:53798:en</uri>
|
399
|
-
<uri type="rss">https://www.iso.org/contents/data/standard/05/37/53798.detail.rss</uri>
|
400
|
-
<docnumber>123456</docnumber>
|
401
|
-
<date type="published">
|
402
|
-
<on>2014</on>
|
403
|
-
</date>
|
404
|
-
<contributor>
|
405
|
-
<role type="publisher"/>
|
406
|
-
<organization>
|
407
|
-
<name>International Organization for Standardization</name>
|
408
|
-
<abbreviation>ISO</abbreviation>
|
409
|
-
<uri>www.iso.org</uri>
|
410
|
-
</organization>
|
411
|
-
</contributor>
|
412
|
-
<contributor>
|
413
|
-
<role type="author"/>
|
414
|
-
<person>
|
415
|
-
<name>
|
416
|
-
<completename>John Smith</completename>
|
417
|
-
</name>
|
418
|
-
</person>
|
419
|
-
</contributor>
|
420
|
-
<edition>1</edition>
|
421
|
-
<version>
|
422
|
-
<revision_date>2019-04-01</revision_date>
|
423
|
-
<draft>draft</draft>
|
424
|
-
</version>
|
425
|
-
<language>en</language>
|
426
|
-
<language>fr</language>
|
427
|
-
<script>Latn</script>
|
428
|
-
<abstract format="text/plain" language="en" script="Latn">ISO 19115-1:2014 defines the schema required for ...</abstract>
|
429
|
-
<abstract format="text/plain" language="fr" script="Latn">L'ISO 19115-1:2014 définit le schéma requis pour ...</abstract>
|
430
|
-
<status>
|
431
|
-
<stage>60</stage>
|
432
|
-
<substage>60</substage>
|
433
|
-
</status>
|
434
|
-
<copyright>
|
435
|
-
<from>2014</from>
|
436
|
-
<owner>
|
437
|
-
<organization>
|
438
|
-
<name>International Organization for Standardization</name>
|
439
|
-
<abbreviation>ISO</abbreviation>
|
440
|
-
<uri>www.iso.org</uri>
|
441
|
-
</organization>
|
442
|
-
</owner>
|
443
|
-
</copyright>
|
444
|
-
<relation type="updates">
|
445
|
-
<bibitem>
|
446
|
-
<formattedref>ISO 19115:2003</formattedref>
|
447
|
-
<status>
|
448
|
-
<stage>60</stage>
|
449
|
-
<substage>60</substage>
|
450
|
-
</status>
|
451
|
-
</bibitem>
|
452
|
-
<locality type="updates">
|
453
|
-
<referenceFrom>Reference form</referenceFrom>
|
454
|
-
</locality>
|
455
|
-
</relation>
|
456
|
-
<relation type="updates">
|
457
|
-
<bibitem>
|
458
|
-
<formattedref>ISO 19115:2003/Cor 1:2006</formattedref>
|
459
|
-
</bibitem>
|
460
|
-
</relation>
|
461
|
-
<series type="main">
|
462
|
-
<title type="title-main" language="en" script="Latn">ISO/IEC FDIS 10118-3</title>
|
463
|
-
<place>Serie's place</place>
|
464
|
-
<organization>Serie's organization</organization>
|
465
|
-
<abbreviation language="en" script="Latn">ABVR</abbreviation>
|
466
|
-
<from>2009-02-01</from>
|
467
|
-
<to>2010-12-20</to>
|
468
|
-
<number>serie1234</number>
|
469
|
-
<partnumber>part5678</partnumber>
|
470
|
-
</series>
|
471
|
-
<series type="alt">
|
472
|
-
<formattedref language="en" script="Latn">serieref</formattedref>
|
473
|
-
</series>
|
474
|
-
<medium>
|
475
|
-
<form>medium form</form>
|
476
|
-
<size>medium size</size>
|
477
|
-
<scale>medium scale</scale>
|
478
|
-
</medium>
|
479
|
-
<place>bib place</place>
|
480
|
-
<locality type="section">
|
481
|
-
<referenceFrom>Reference from</referenceFrom>
|
482
|
-
<referenceTo>Reference to</referenceTo>
|
483
|
-
</locality>
|
484
|
-
<accesslocation>accesslocation1</accesslocation>
|
485
|
-
<accesslocation>accesslocation2</accesslocation>
|
486
|
-
<classification type="type">value</classification>
|
487
|
-
<validity>
|
488
|
-
<validityBegins>2010-10-10 12:21</validityBegins>
|
489
|
-
<validityEnds>2011-02-03 18:30</validityEnds>
|
490
|
-
<validityRevision>2011-03-04 09:00</validityRevision>
|
491
|
-
</validity>
|
492
|
-
<ext>
|
493
|
-
<doctype>international-standard</doctype>
|
494
|
-
<editorialgroup>
|
495
|
-
<technical_committee number="211" type="technicalCommittee"> ISO/TC 211 Geographic information/Geomatics</technical_committee>
|
496
|
-
<subcommittee number="122" type="ISO">International Organization for Standardization</subcommittee>
|
497
|
-
<workgroup number="111" type="WG">Workgroup Organization</workgroup>
|
498
|
-
</editorialgroup>
|
499
|
-
<ics>
|
500
|
-
<code>35.240.70</code>
|
501
|
-
<text>IT applications in science</text>
|
502
|
-
</ics>
|
503
|
-
<structuredidentifier type="sid">
|
504
|
-
<project-number part="2" subpart="2">ISO 1-2:2014</project-number>
|
505
|
-
</structuredidentifier>
|
506
|
-
</ext>
|
393
|
+
...
|
507
394
|
</bibdata>"
|
508
395
|
|
509
396
|
item.to_xml(bibdata: true, note: [{ type: "note type", text: "test note" }])
|
@@ -513,6 +400,47 @@ item.to_xml(bibdata: true, note: [{ type: "note type", text: "test note" }])
|
|
513
400
|
...
|
514
401
|
<note format="text/plain" type="note type">test note</note>
|
515
402
|
...
|
403
|
+
</bibdata>"
|
404
|
+
----
|
405
|
+
=== Export bibliographic item to BibTeX
|
406
|
+
|
407
|
+
[source,ruby]
|
408
|
+
----
|
409
|
+
item.to_bibtex
|
410
|
+
=> "@international-standard{john2014a,
|
411
|
+
tile = {Information géographique - Métadonnées - Partie 1: Principes de base},
|
412
|
+
edition = {1},
|
413
|
+
author = {Smith, John},
|
414
|
+
publisher = {International Organization for Standardization},
|
415
|
+
address = {bib place},
|
416
|
+
year = {2014},
|
417
|
+
month = apr,
|
418
|
+
type = {value},
|
419
|
+
timestamp = {2018-10-21},
|
420
|
+
url = {https://www.iso.org/standard/53798.html},
|
421
|
+
month_numeric = {4}
|
422
|
+
}"
|
423
|
+
----
|
424
|
+
|
425
|
+
=== Exporting bibliographic item to AsciiBib
|
426
|
+
|
427
|
+
[source,ruby]
|
428
|
+
----
|
429
|
+
item.to_asciibib
|
430
|
+
=> "[%bibitem]
|
431
|
+
== {blank}
|
432
|
+
id:: ISOTC211
|
433
|
+
fetched:: 2020-08-19
|
434
|
+
title::
|
435
|
+
title.type:: title-intro
|
436
|
+
title.content:: Metadata
|
437
|
+
title.language:: en
|
438
|
+
title.script:: Latn
|
439
|
+
title.format:: text/plain
|
440
|
+
itle::
|
441
|
+
title.type:: title-main
|
442
|
+
title.conten:: Geographic information
|
443
|
+
..."
|
516
444
|
----
|
517
445
|
|
518
446
|
=== Create bibliographic item form YAML
|