relaton-bib 1.18.3 → 1.18.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_bib/bibliographic_item.rb +10 -1
- data/lib/relaton_bib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8679abcdf3cc3df08c557a56be973ef54472d530eaa64369cad097d35a1a4066
|
4
|
+
data.tar.gz: b75301c9af89e12b094d15353553ca25c6c4c455e83ee49b07f60f53852d1711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9e3974f8afa4b5532fb792a9792e13679c9fa3bf45320f3339ad990c0a17325ca3f52696b24e27b0e06172af6bbe63cf53171d80572173c71f78899e39cde67
|
7
|
+
data.tar.gz: 0befd12bbb263ead171ca64f1a0b698175801eb19a7ef29cd308a454d52fc06a4601e4b5255c933d0c1823c218ac4cefdd474a9ccad83807658f119f64c67754
|
@@ -64,7 +64,7 @@ module RelatonBib
|
|
64
64
|
attr_reader :docidentifier
|
65
65
|
|
66
66
|
# @return [Array<RelatonBib::BibliographicDate>]
|
67
|
-
|
67
|
+
attr_writer :date
|
68
68
|
|
69
69
|
# @return [Array<RelatonBib::ContributionInfo>]
|
70
70
|
attr_reader :contributor
|
@@ -314,6 +314,15 @@ module RelatonBib
|
|
314
314
|
new(**item_hash)
|
315
315
|
end
|
316
316
|
|
317
|
+
#
|
318
|
+
# @param [String, nil] type if nil return all dates else return dates with type
|
319
|
+
#
|
320
|
+
# @return [Array<RelatonBib::BibliographicDate>]
|
321
|
+
#
|
322
|
+
def date(type: nil)
|
323
|
+
type ? @date.select { |d| d.type == type } : @date
|
324
|
+
end
|
325
|
+
|
317
326
|
# @param lang [String] language code Iso639
|
318
327
|
# @return [RelatonBib::FormattedString, Array<RelatonBib::FormattedString>]
|
319
328
|
def abstract(lang: nil)
|
data/lib/relaton_bib/version.rb
CHANGED
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: 1.18.
|
4
|
+
version: 1.18.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.3.
|
180
|
+
rubygems_version: 3.3.27
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: 'RelatonBib: Ruby XMLDOC impementation.'
|