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 +4 -4
- data/lib/relaton_bib/bibliographic_item.rb +11 -11
- data/lib/relaton_bib/bibxml_parser.rb +2 -3
- data/lib/relaton_bib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b689b96d8bc90ca647a1e11528aea5b02ae148d5a2b319a44f5739567312dc61
|
4
|
+
data.tar.gz: aafa8e3c0c37a5d1719b69bd9fdef15060176408790c9f742d8c48a209781391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
1043
|
-
|
1044
|
-
|
1045
|
-
orgname = if BibXMLParser::ORGNAMES.key?(
|
1046
|
-
else BibXMLParser::ORGNAMES.key(
|
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
|
-
|
1050
|
-
else
|
1051
|
-
|
1052
|
-
|
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]
|
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.13.
|
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-
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|