relaton-bib 1.13.9 → 1.13.10

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: 50d370dad5e6a20ef5eaaed6633e0d62d80c0087f8a24d205dcb02723c025b35
4
- data.tar.gz: 7ef8d3f6530096ed1e15bc66f148a3972490e39ba3c51bfc894a31cab8195d4f
3
+ metadata.gz: b689b96d8bc90ca647a1e11528aea5b02ae148d5a2b319a44f5739567312dc61
4
+ data.tar.gz: aafa8e3c0c37a5d1719b69bd9fdef15060176408790c9f742d8c48a209781391
5
5
  SHA512:
6
- metadata.gz: 305a89bc3529accd1087f9e7928172bacf6acb4672fa0215ee1b27406cca08cda484470227625c94928f5be4ac0766cd0b13b43059c0328b3f9d0ba03f6ad0af
7
- data.tar.gz: 44e3711a83e329cba17baabbaacecc03736eef8c20857aac71c760bcfd7289071b1d2a60b70d0d9710d132c02c0607c0ad234522ee280b6867f1bf7fba69bed1
6
+ metadata.gz: 4a39467d46ffcb67009b4c1e048ef6b11fcfec9c45db3c570b4759600bb920da2bb9060dc0e6c32f313c96fb2e66720cc7c7cdb93ad587542547af4da4b9631b
7
+ data.tar.gz: c1cfb779ede8f36cb8502fea7a074cbb8e530c41df10b6d827175dec6392810be15ebbd37bfda667250541a5f2571dbb4ab8aea2419af0b99914bf182b887a39
@@ -1039,18 +1039,18 @@ module RelatonBib
1039
1039
  # @param [Nokogiri::XML::Builder] builder xml builder
1040
1040
  # @param [RelatonBib::Organization] org organization
1041
1041
  #
1042
- def render_organization(builder, org, role = []) # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/AbcSize
1043
- ab = org&.abbreviation&.content
1044
- on = org&.name&.first&.content
1045
- orgname = if BibXMLParser::ORGNAMES.key?(ab) then ab
1046
- else BibXMLParser::ORGNAMES.key(on) || on || ab
1042
+ def render_organization(builder, org, _role = []) # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/AbcSize
1043
+ abbrev = org&.abbreviation&.content
1044
+ orgname = org&.name&.first&.content
1045
+ orgname = if BibXMLParser::ORGNAMES.key?(abbrev) then abbrev
1046
+ else BibXMLParser::ORGNAMES.key(orgname) || orgname || abbrev
1047
1047
  end
1048
- if role.detect { |r| r.description.detect { |d| d.content == "BibXML author" } }
1049
- builder.parent[:fullname] = orgname
1050
- else
1051
- o = builder.organization orgname
1052
- o[:abbrev] = ab if ab
1053
- end
1048
+ # if role.detect { |r| r.description.detect { |d| d.content == "BibXML author" } }
1049
+ # builder.parent[:fullname] = orgname
1050
+ # else
1051
+ org = builder.organization orgname
1052
+ org[:abbrev] = abbrev if abbrev
1053
+ # end
1054
1054
  end
1055
1055
  end
1056
1056
  end
@@ -232,10 +232,10 @@ module RelatonBib
232
232
  # @return [Hash] contribution info
233
233
  #
234
234
  def full_name_org(contrib)
235
- return unless FULLNAMEORG.include? contrib[:fullname]
235
+ return unless self::FULLNAMEORG.include? contrib[:fullname]
236
236
 
237
237
  role = contributor_role(contrib)
238
- role[:description] = ["BibXML author"]
238
+ # role[:description] = ["BibXML author"]
239
239
  { entity: new_org(contrib[:fullname]), role: [role] }
240
240
  end
241
241
 
@@ -251,7 +251,6 @@ module RelatonBib
251
251
  contact: contacts(author.at("./address")),
252
252
  )
253
253
  { entity: entity, role: [contributor_role(author)] }
254
- # end
255
254
  end
256
255
 
257
256
  # @param contrib [Nokogiri::XML::Element]
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.13.9".freeze
2
+ VERSION = "1.13.10".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.13.9
4
+ version: 1.13.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-24 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug