relaton-bib 1.9.6 → 1.9.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd2b1c32cf6112b7afbf78584182ca256e7f2404a60c74247da9c7aef1df7c0
|
4
|
+
data.tar.gz: b39864d2a0b19aaec7bf6d59a2122ca3374bc6eb11030c4c78dd4ba3dbf73ce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d392e4fb2558ccf8f3ac2d814061944cf7bb0bc94bb5afd17183146ec49082d54847bbb9ec9cefa0d98b1be0f487e46d6faed3989036930467645d424ef479fc
|
7
|
+
data.tar.gz: 970106fad0a8c7799351529c61070ec7a451f6c610b8f78620f282f6b174c184dd759bc740938c3b3eb84217256399f7080dcd5ebc184343b95e928808c458e6
|
@@ -828,10 +828,11 @@ module RelatonBib
|
|
828
828
|
builder.seriesInfo(name: di.type, value: di.id)
|
829
829
|
end
|
830
830
|
end
|
831
|
-
|
832
|
-
series.
|
833
|
-
|
834
|
-
|
831
|
+
di_types = docidentifier.map(&:type)
|
832
|
+
series.select do |s|
|
833
|
+
s.title && !di_types.include?(s.title.title.to_s) &&
|
834
|
+
!BibXMLParser::SERIESINFONAMES.include?(s.title.title.to_s)
|
835
|
+
end.uniq { |s| s.title.title.to_s }.each do |s|
|
835
836
|
si = builder.seriesInfo(name: s.title.title.to_s)
|
836
837
|
si[:value] = s.number if s.number
|
837
838
|
end
|
@@ -72,6 +72,8 @@ module RelatonBib
|
|
72
72
|
end
|
73
73
|
|
74
74
|
class TypedTitleString
|
75
|
+
ARGS = %i[content language script format].freeze
|
76
|
+
|
75
77
|
# @return [String]
|
76
78
|
attr_reader :type
|
77
79
|
|
@@ -93,9 +95,7 @@ module RelatonBib
|
|
93
95
|
if args[:title]
|
94
96
|
@title = args[:title]
|
95
97
|
else
|
96
|
-
fsargs = args.select
|
97
|
-
%i[content language script format].include? k
|
98
|
-
end
|
98
|
+
fsargs = args.select { |k, _v| ARGS.include? k }
|
99
99
|
@title = FormattedString.new(**fsargs)
|
100
100
|
end
|
101
101
|
end
|
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.9.
|
4
|
+
version: 1.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|