relaton-ietf 1.1.0 → 1.1.1

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: 6f77df06fb1337cae0194f2b9efb8f93d17f573fad72693dd7b2e83a11409897
4
- data.tar.gz: 84de7f674a172fed2b369c4233b4446bf641e45a72e6bbe16bc529a99226acff
3
+ metadata.gz: ed5846b470eedb791848d99a33c6401dc9b4867d9222ea60270969a987040435
4
+ data.tar.gz: da3b3ca9820a4fd37fe4190211ca4bccf5e1ba77dd5d3fc255c12464f8584efb
5
5
  SHA512:
6
- metadata.gz: 68cf9fb90d6106a178a6bbe712c07b4bd574a8f5e00c34bd3474c1e1961d551afeec0ace6c502bb882eb96450ab639dbd354ca00585acef28355bb674d68d65f
7
- data.tar.gz: 0d85bd98e4f3085e05fd11177e18ad8b21fd629d6408b88614da9475a3ae96e8341e128cf86ed2872a3e0c46bb7a7cf32507c37c778910e9e8855a2033b40d81
6
+ metadata.gz: '0870cba19a84bb92de960ba5dd54e396d784cd7b00b207bfa80a2fb6c5b7baa4117d8ffff6200e4921b009c743f119584254750e964c827594e82ba3f1e3eae7'
7
+ data.tar.gz: bce648a595ee447883dc5c97aa24b57f35f30000e063798d1b287e36ea284e818de44eae9efcf7b7d3410096c3f357c02719a437760ed8b0e7b5d9ffa2b44462
@@ -206,10 +206,15 @@ module RelatonIetf
206
206
  # @return [Array<Hash{Symbol=>RelatonBib::Organization,Symbol=>Array<String>}>]
207
207
  def organizations(reference)
208
208
  publisher = { entity: new_org, role: [type: "publisher"] }
209
- reference.xpath("./seriesinfo").reduce([publisher]) do |mem, si|
209
+ orgs = reference.xpath("./seriesinfo").reduce([publisher]) do |mem, si|
210
210
  next mem unless si[:stream]
211
211
 
212
- mem << { entity: new_org(si[:stream]), role: [type: "author"] }
212
+ mem << { entity: new_org(si[:stream], nil), role: [type: "author"] }
213
+ end
214
+ orgs + reference.xpath(
215
+ "front/author/organization[string-length(.) > 0]",
216
+ ).map do |org|
217
+ { entity: new_org(org.text, nil), role: [type: "author"] }
213
218
  end
214
219
  end
215
220
 
@@ -1,3 +1,3 @@
1
1
  module RelatonIetf
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ietf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-03 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase