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: 04d616ee7971147c734b6e0520531c4e9b529e76b53c22a98dca1c36b6f49285
4
- data.tar.gz: 2762c1d26b7a07888c3605939ae18de1b6f2ef44da7f1513dc779e3207ff176f
3
+ metadata.gz: bfd2b1c32cf6112b7afbf78584182ca256e7f2404a60c74247da9c7aef1df7c0
4
+ data.tar.gz: b39864d2a0b19aaec7bf6d59a2122ca3374bc6eb11030c4c78dd4ba3dbf73ce3
5
5
  SHA512:
6
- metadata.gz: beffce777ed3ef33181363edaf57a8e1efced984bcc19ffae88eaa8087a92e48d044b042686dc4b5e6e545f41fe7f67c1eb573abaddc4e056adc439643f0b12a
7
- data.tar.gz: 44d2809601f70d17db2f5601a29614720fa13a0cfa3fbb1665406e0c4396390862688fc41cbd26de421e19efb5643a61e184b73bf2cb47be567c7aa4788ad4a4
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
- snames = ["ANSI", "BCP", "RFC", "STD"]
832
- series.each do |s|
833
- next unless s.title && snames.include?(s.title.title.to_s)
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 do |k, _v|
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
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.9.6".freeze
2
+ VERSION = "1.9.7".freeze
3
3
  end
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.6
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-10-25 00:00:00.000000000 Z
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug