relaton-bib 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.adoc +133 -122
- data/lib/relaton_bib/biblio_note.rb +23 -0
- data/lib/relaton_bib/bibliographic_item.rb +23 -32
- data/lib/relaton_bib/contribution_info.rb +2 -4
- data/lib/relaton_bib/document_relation.rb +1 -0
- data/lib/relaton_bib/document_status.rb +18 -6
- data/lib/relaton_bib/formatted_string.rb +1 -0
- data/lib/relaton_bib/series.rb +2 -1
- data/lib/relaton_bib/version.rb +1 -1
- data/lib/relaton_bib/xml_parser.rb +9 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf4e678a0c2415cdcc4e408a4247bf6cf8437524
|
4
|
+
data.tar.gz: 3e1042828c36498972abde6f0c43bfbd28d19f77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d865c1e88a8b0996406586fc663148573aba25f24eb0ecbdbfbc98df1f47a7b93cfba477963e259f700170f70b3294a2a9ca9c0f8a193ba6a561e546b693ea
|
7
|
+
data.tar.gz: f8119c6d775bf3247a8d028ca2e26ae2e466b484f5ec53232834ff122d5b91c1a81f3ca90b47d471c862f85d3364b5d4ca54d0d939d8c9de77d674fd90295578
|
data/Gemfile.lock
CHANGED
data/README.adoc
CHANGED
@@ -167,135 +167,146 @@ item.shortref item
|
|
167
167
|
[source,ruby]
|
168
168
|
----
|
169
169
|
item.to_xml
|
170
|
-
=>"<bibitem id=\"ISO/TC211\" type=\"standard\">
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
</bibitem>"
|
170
|
+
=> "<bibitem id=\"ISO/TC211\" type=\"standard\">
|
171
|
+
<fetched>2019-04-30</fetched>
|
172
|
+
<title type=\"main\" language=\"en\" script=\"Latn\">Geographic information</title>
|
173
|
+
<title language=\"fr\" script=\"Latn\">Information géographique</title>
|
174
|
+
<uri type=\"src\">https://www.iso.org/standard/53798.html</uri>
|
175
|
+
<uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:53798:en</uri>
|
176
|
+
<uri type=\"rss\">https://www.iso.org/contents/data/standard/05/37/53798.detail.rss</uri>
|
177
|
+
<docidentifier type=\"ISO\">TC211</docidentifier>
|
178
|
+
<docnumber>123456</docnumber>
|
179
|
+
<date type="issued">
|
180
|
+
<on>2014</on>
|
181
|
+
</date>
|
182
|
+
<date type="published">
|
183
|
+
<on>2014</on>
|
184
|
+
</date>
|
185
|
+
<date type="accessed">
|
186
|
+
<on>2015</on>
|
187
|
+
</date>
|
188
|
+
<contributor>
|
189
|
+
<role type=\"publisher\">
|
190
|
+
<description>Publisher role</description>
|
191
|
+
</role>
|
192
|
+
<organization>
|
193
|
+
<name>International Organization for Standardization</name>
|
194
|
+
<subdivision>division</subdivision>
|
195
|
+
<abbreviation>ISO</abbreviation>
|
196
|
+
<uri>www.iso.org</uri>
|
197
|
+
</organization>
|
198
|
+
</contributor>
|
199
|
+
<edition>1</edition>
|
200
|
+
<version>
|
201
|
+
<revision_date>2019-04-01</revision_date>
|
202
|
+
<draft>draft</draft>
|
203
|
+
</version>
|
204
|
+
<language>en</language>
|
205
|
+
<language>fr</language>
|
206
|
+
<script>Latn</script>
|
207
|
+
<abstract format=\"text/plain\" language=\"en\" script=\"Latn\">ISO 19115-1:2014 defines the schema required for ...</abstract>
|
208
|
+
<abstract format=\"text/plain\" language=\"fr\" script=\"Latn\">L'ISO 19115-1:2014 définit le schéma requis pour ...</abstract>
|
209
|
+
<status language=\"en\" script=\"Latn\">standard</status>
|
210
|
+
<copyright>
|
211
|
+
<from>2014</from>
|
212
|
+
<to>2020</to>
|
213
|
+
<owner>
|
214
|
+
<organization>
|
215
|
+
<name>International Organization for Standardization</name>
|
216
|
+
<abbreviation>ISO</abbreviation>
|
217
|
+
<uri>www.iso.org</uri>
|
218
|
+
</organization>
|
219
|
+
</owner>
|
220
|
+
</copyright>
|
221
|
+
<relation type=\"updates\">
|
222
|
+
<bibitem>
|
223
|
+
<formattedref>ISO 19115:2003</formattedref>
|
224
|
+
</bibitem>
|
225
|
+
<locality type=\"updates\">
|
226
|
+
<referenceFrom>Reference form</referenceFrom>
|
227
|
+
</locality>
|
228
|
+
</relation>
|
229
|
+
<series type=\"main\">
|
230
|
+
<title type=\"original\" format=\"text/plain\" language=\"en\" script=\"Latn\">ISO/IEC FDIS 10118-3</title>
|
231
|
+
<place>Serie's place</place>
|
232
|
+
<organization>Serie's organization</organization>
|
233
|
+
<abbreviation language=\"en\" script=\"Latn\">ABVR</abbreviation>
|
234
|
+
<from>2009-02-01</from>
|
235
|
+
<to>2010-12-20</to>
|
236
|
+
<number>serie1234</number>
|
237
|
+
<partnumber>part5678</partnumber>
|
238
|
+
</series>
|
239
|
+
<series type=\"alt\">
|
240
|
+
<formattedref language=\"en\" script=\"Latn\">serieref</formattedref>
|
241
|
+
</series>
|
242
|
+
<medium>
|
243
|
+
<form>medium form</form>
|
244
|
+
<size>medium size</size>
|
245
|
+
<scale>medium scale</scale>
|
246
|
+
</medium>
|
247
|
+
<place>bib place</place>
|
248
|
+
<locality type=\"section\">
|
249
|
+
<referenceFrom>Reference from</referenceFrom>
|
250
|
+
<referenceTo>Reference to</referenceTo>
|
251
|
+
</locality>
|
252
|
+
<accesslocation>accesslocation1</accesslocation>
|
253
|
+
<accesslocation>accesslocation2</accesslocation>
|
254
|
+
<classification type=\"type\">value</classification>
|
255
|
+
<validity>
|
256
|
+
<validityBegins>2010-10-10 12:21</validityBegins>
|
257
|
+
<validityEnds>2011-02-03 18:30</validityEnds>
|
258
|
+
<validityRevision>2011-03-04 09:00</validityRevision>
|
259
|
+
</validity>
|
260
|
+
</bibitem>"
|
261
261
|
----
|
262
|
+
Default root element is `bibitem`. With argument `bibdata: true` the XML wrapped with `bibdata` element.
|
263
|
+
[source,ruby]
|
264
|
+
----
|
265
|
+
item.to_xml
|
266
|
+
=> "<bibitem id=\"ISO/TC211\" type=\"standard\">
|
267
|
+
<fetched>2019-04-30</fetched>
|
268
|
+
<title type=\"main\" language=\"en\" script=\"Latn\">Geographic information</title>
|
269
|
+
...
|
270
|
+
</bibdata>"
|
271
|
+
----
|
272
|
+
==== Date format
|
262
273
|
By default date elements are formatted as year (yyyy). Option `:date_format` allows to output date elements in `:short` (yyyy-mm) and `:full` (yyyy-mm-dd) additiona formats.
|
263
274
|
[surce,ruby]
|
264
275
|
----
|
265
276
|
item.to_xml date_format: :short
|
266
|
-
=>"<bibitem id=\"ISO/TC211\" type=\"standard\">
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
277
|
+
=> "<bibitem id=\"ISO/TC211\" type=\"standard\">
|
278
|
+
<fetched>2019-04-30</fetched>
|
279
|
+
<title type=\"main\" language=\"en\" script=\"Latn\">Geographic information</title>
|
280
|
+
<title language=\"fr\" script=\"Latn\">Information géographique</title>
|
281
|
+
<uri type=\"src\">https://www.iso.org/standard/53798.html</uri>
|
282
|
+
<uri type=\"obp\">https://www.iso.org/obp/ui/#!iso:std:53798:en</uri>
|
283
|
+
<uri type=\"rss\">https://www.iso.org/contents/data/standard/05/37/53798.detail.rss</uri>
|
284
|
+
<docidentifier type=\"ISO\">TC211</docidentifier>
|
285
|
+
<docnumber>123456</docnumber>
|
286
|
+
<date type="issued">
|
287
|
+
<on>2014-01</on>
|
288
|
+
</date>
|
289
|
+
<date type="published">
|
290
|
+
<on>2014-04</on>
|
291
|
+
</date>
|
292
|
+
<date type="accessed">
|
293
|
+
<on>2015-05</on>
|
294
|
+
</date>
|
295
|
+
...
|
285
296
|
|
286
297
|
item.to_xml date_format: :full
|
287
|
-
=>"<bibitem id=\"ISO/TC211\" type=\"standard\">
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
298
|
+
=> "<bibitem id=\"ISO/TC211\" type=\"standard\">
|
299
|
+
...
|
300
|
+
<date type="issued">
|
301
|
+
<on>2014-01-01</on>
|
302
|
+
</date>
|
303
|
+
<date type="published">
|
304
|
+
<on>2014-04-01</on>
|
305
|
+
</date>
|
306
|
+
<date type="accessed">
|
307
|
+
<on>2015-05-20</on>
|
308
|
+
</date>
|
309
|
+
...
|
299
310
|
----
|
300
311
|
|
301
312
|
== Development
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module RelatonBib
|
2
|
+
class BiblioNote < FormattedString
|
3
|
+
# @return [String]
|
4
|
+
attr_reader :type
|
5
|
+
|
6
|
+
# @param content [String]
|
7
|
+
# @param type [String]
|
8
|
+
# @param language [String] language code Iso639
|
9
|
+
# @param script [String] script code Iso15924
|
10
|
+
# @param format [String] the content type
|
11
|
+
def initialize(content:, type: nil, language: nil, script: nil, format: nil)
|
12
|
+
@type = type
|
13
|
+
super content: content, language: language, script: script, format: format
|
14
|
+
end
|
15
|
+
|
16
|
+
# @param builder [Nokogiri::XML::Builder]
|
17
|
+
def to_xml(builder)
|
18
|
+
xml = builder.note { super }
|
19
|
+
xml[:type] = type if type
|
20
|
+
xml
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -18,23 +18,10 @@ require "relaton_bib/validity"
|
|
18
18
|
require "relaton_bib/document_relation"
|
19
19
|
require "relaton_bib/bib_item_locality"
|
20
20
|
require "relaton_bib/xml_parser"
|
21
|
+
require "relaton_bib/biblio_note"
|
21
22
|
|
22
23
|
|
23
24
|
module RelatonBib
|
24
|
-
# module BibItemType
|
25
|
-
# ARTICLE = 'article'
|
26
|
-
# BOOK = 'book'
|
27
|
-
# BOOKLET = 'booklet'
|
28
|
-
# CONFERENCE = 'conference'
|
29
|
-
# MANUAL = 'manual'
|
30
|
-
# PROCEEDINGS = 'proceedings'
|
31
|
-
# PRESENTATION = 'presentation'
|
32
|
-
# THESIS = 'thesis'
|
33
|
-
# TECHREPORT = 'techreport'
|
34
|
-
# STANDARD = 'standard'
|
35
|
-
# UNPUBLISHED = 'unpublished'
|
36
|
-
# end
|
37
|
-
|
38
25
|
# Bibliographic item
|
39
26
|
class BibliographicItem
|
40
27
|
class Version
|
@@ -95,7 +82,7 @@ module RelatonBib
|
|
95
82
|
# @return [RelatonBib::BibliongraphicItem::Version]
|
96
83
|
attr_reader :version
|
97
84
|
|
98
|
-
# @return [Array<RelatonBib::
|
85
|
+
# @return [Array<RelatonBib::BiblioNote>, NilClass]
|
99
86
|
attr_reader :biblionote
|
100
87
|
|
101
88
|
# @return [Array<String>] language Iso639 code
|
@@ -157,7 +144,7 @@ module RelatonBib
|
|
157
144
|
# @param docstatus [RelatonBib::DocumentStatus, NilClass]
|
158
145
|
# @param edition [String, NilClass]
|
159
146
|
# @param version [RelatonBib::BibliographicItem::Version, NilClass]
|
160
|
-
# @param biblionote [Array<RelatonBib::
|
147
|
+
# @param biblionote [Array<RelatonBib::BiblioNote>]
|
161
148
|
# @param series [Array<RelatonBib::Series>]
|
162
149
|
# @param medium [RelatonBib::Medium, NilClas]
|
163
150
|
# @param place [Array<String>]
|
@@ -173,11 +160,12 @@ module RelatonBib
|
|
173
160
|
# @option dates [String] :to
|
174
161
|
#
|
175
162
|
# @param contributors [Array<Hash>]
|
163
|
+
# @option contributors [RealtonBib::Organization, RelatonBib::Person]
|
176
164
|
# @option contributors [String] :type
|
177
165
|
# @option contributors [String] :from
|
178
166
|
# @option contributirs [String] :to
|
179
167
|
# @option contributors [String] :abbreviation
|
180
|
-
# @option contributors [Array<String
|
168
|
+
# @option contributors [Array<Array<String,Array<String>>>] :roles
|
181
169
|
#
|
182
170
|
# @param abstract [Array<Hash>]
|
183
171
|
# @option abstract [String] :content
|
@@ -221,7 +209,7 @@ module RelatonBib
|
|
221
209
|
end
|
222
210
|
end
|
223
211
|
|
224
|
-
@id = args[:id]
|
212
|
+
@id = args[:id] || args[:docid]&.first&.id&.strip&.gsub(/\s/, "")
|
225
213
|
@formattedref = args[:formattedref] if title.empty?
|
226
214
|
@type = args[:type]
|
227
215
|
@docidentifier = args[:docid] || []
|
@@ -234,7 +222,7 @@ module RelatonBib
|
|
234
222
|
@status = args[:docstatus]
|
235
223
|
@relations = DocRelationCollection.new(args[:relations] || [])
|
236
224
|
@link = args.fetch(:link, []).map { |s| s.is_a?(Hash) ? TypedUri.new(s) : s }
|
237
|
-
@series = args
|
225
|
+
@series = args.fetch :series, []
|
238
226
|
@medium = args[:medium]
|
239
227
|
@place = args.fetch(:place, [])
|
240
228
|
@extent = args[:extent] || []
|
@@ -294,15 +282,17 @@ module RelatonBib
|
|
294
282
|
private
|
295
283
|
|
296
284
|
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
297
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
285
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
286
|
+
# rubocop:disable Style/NestedParenthesizedCalls, Metrics/BlockLength
|
298
287
|
|
299
288
|
# @param builder [Nokogiri::XML::Builder]
|
300
289
|
# @return [String]
|
301
290
|
def render_xml(builder, **opts)
|
302
|
-
|
291
|
+
root = opts[:bibdata] ? :bibdata : :bibitem
|
292
|
+
xml = builder.send(root) do
|
303
293
|
builder.fetched fetched if fetched
|
304
294
|
title.each { |t| builder.title { t.to_xml builder } }
|
305
|
-
formattedref
|
295
|
+
formattedref&.to_xml builder
|
306
296
|
link.each { |s| s.to_xml builder }
|
307
297
|
docidentifier.each { |di| di.to_xml builder }
|
308
298
|
builder.docnumber docnumber if docnumber
|
@@ -314,30 +304,31 @@ module RelatonBib
|
|
314
304
|
end
|
315
305
|
end
|
316
306
|
builder.edition edition if edition
|
317
|
-
version
|
318
|
-
biblionote.each { |n|
|
307
|
+
version&.to_xml builder
|
308
|
+
biblionote.each { |n| n.to_xml builder }
|
319
309
|
language.each { |l| builder.language l }
|
320
310
|
script.each { |s| builder.script s }
|
321
311
|
abstract.each { |a| builder.abstract { a.to_xml(builder) } }
|
322
|
-
status
|
323
|
-
copyright
|
312
|
+
status&.to_xml builder
|
313
|
+
copyright&.to_xml builder
|
324
314
|
relations.each { |r| r.to_xml builder, **opts }
|
325
|
-
series.each { |s| s.to_xml builder }
|
326
|
-
medium
|
315
|
+
series.each { |s| s.to_xml builder }
|
316
|
+
medium&.to_xml builder
|
327
317
|
place.each { |pl| builder.place pl }
|
328
318
|
extent.each { |e| e.to_xml builder }
|
329
319
|
accesslocation.each { |al| builder.accesslocation al }
|
330
|
-
classification
|
331
|
-
validity
|
320
|
+
classification&.to_xml builder
|
321
|
+
validity&.to_xml builder
|
332
322
|
if block_given?
|
333
323
|
yield builder
|
334
324
|
end
|
335
325
|
end
|
336
|
-
xml[:id] = id if id
|
326
|
+
xml[:id] = id if id && !opts[:bibdata]
|
337
327
|
xml[:type] = type if type
|
338
328
|
xml
|
339
329
|
end
|
340
330
|
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
|
341
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
331
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
332
|
+
# rubocop:enable Style/NestedParenthesizedCalls, Metrics/BlockLength
|
342
333
|
end
|
343
334
|
end
|
@@ -42,12 +42,10 @@ module RelatonBib
|
|
42
42
|
attr_reader :role
|
43
43
|
|
44
44
|
# @return
|
45
|
-
# [RelatonBib::Person, RelatonBib::Organization
|
46
|
-
# RelatonBib::IsoProjectGroup]
|
45
|
+
# [RelatonBib::Person, RelatonBib::Organization]
|
47
46
|
attr_reader :entity
|
48
47
|
|
49
|
-
# @param entity [RelatonBib::Person, RelatonBib::Organization
|
50
|
-
# RelatonBib::IsoProjectGroup]
|
48
|
+
# @param entity [RelatonBib::Person, RelatonBib::Organization]
|
51
49
|
# @param role [Array<String>]
|
52
50
|
def initialize(entity:, role: ["publisher"])
|
53
51
|
@entity = entity
|
@@ -5,19 +5,31 @@ require "relaton_bib/localized_string"
|
|
5
5
|
module RelatonBib
|
6
6
|
# Dovument status.
|
7
7
|
class DocumentStatus
|
8
|
-
# @return [
|
9
|
-
attr_reader :
|
8
|
+
# @return [String]
|
9
|
+
attr_reader :stage
|
10
10
|
|
11
|
-
# @
|
12
|
-
|
13
|
-
|
11
|
+
# @return [String, NilClass]
|
12
|
+
attr_reader :substage
|
13
|
+
|
14
|
+
# @return [String, NilClass]
|
15
|
+
attr_reader :iteration
|
16
|
+
|
17
|
+
# @param stage [String]
|
18
|
+
# @param substage [String, NilClass]
|
19
|
+
# @param iteration [String, NilClass]
|
20
|
+
def initialize(stage:, substage: nil, iteration: nil)
|
21
|
+
@stage = stage
|
22
|
+
@substage = substage
|
23
|
+
@iteration = iteration
|
14
24
|
end
|
15
25
|
|
16
26
|
# @param [Nokogiri::XML::Builder]
|
17
27
|
def to_xml(builder)
|
18
28
|
builder.status do
|
19
29
|
# FormattedString.instance_method(:to_xml).bind(status).call builder
|
20
|
-
|
30
|
+
builder.stage stage
|
31
|
+
builder.substage substage if substage
|
32
|
+
builder.iteration iteration if iteration
|
21
33
|
end
|
22
34
|
end
|
23
35
|
end
|
data/lib/relaton_bib/series.rb
CHANGED
@@ -75,7 +75,7 @@ module RelatonBib
|
|
75
75
|
|
76
76
|
# @param builder [Nokogiri::XML::Builder]
|
77
77
|
def to_xml(builder)
|
78
|
-
builder.series
|
78
|
+
xml = builder.series do
|
79
79
|
if formattedref
|
80
80
|
formattedref.to_xml builder
|
81
81
|
else
|
@@ -89,6 +89,7 @@ module RelatonBib
|
|
89
89
|
builder.partnumber partnumber if partnumber
|
90
90
|
end
|
91
91
|
end
|
92
|
+
xml[:type] = type if type
|
92
93
|
end
|
93
94
|
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity
|
94
95
|
# rubocop:enable Metrics/PerceivedComplexity
|
data/lib/relaton_bib/version.rb
CHANGED
@@ -53,8 +53,12 @@ module RelatonBib
|
|
53
53
|
|
54
54
|
def fetch_note(item)
|
55
55
|
item.xpath("./note").map do |n|
|
56
|
-
|
57
|
-
content: n.text,
|
56
|
+
BiblioNote.new(
|
57
|
+
content: n.text,
|
58
|
+
type: n[:type],
|
59
|
+
format: n[:format],
|
60
|
+
language: n[:language],
|
61
|
+
script: n[:script],
|
58
62
|
)
|
59
63
|
end
|
60
64
|
end
|
@@ -144,7 +148,9 @@ module RelatonBib
|
|
144
148
|
return unless status
|
145
149
|
|
146
150
|
DocumentStatus.new(
|
147
|
-
|
151
|
+
stage: status.at("stage").text,
|
152
|
+
substage: status.at("substage")&.text,
|
153
|
+
iteration: status.at("iteration")&.text,
|
148
154
|
)
|
149
155
|
end
|
150
156
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- bin/setup
|
157
157
|
- lib/relaton_bib.rb
|
158
158
|
- lib/relaton_bib/bib_item_locality.rb
|
159
|
+
- lib/relaton_bib/biblio_note.rb
|
159
160
|
- lib/relaton_bib/bibliographic_date.rb
|
160
161
|
- lib/relaton_bib/bibliographic_item.rb
|
161
162
|
- lib/relaton_bib/classification.rb
|