mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 07:04:53 +00:00
Bug fix for empty names in items
This commit is contained in:
@@ -55,6 +55,13 @@ module Paapi
|
||||
end
|
||||
|
||||
def contributors_of(kind)
|
||||
contributors&.select { |e| e['Role'] == kind.to_s.gsub(/([[:alpha:]]+)/) { |w| w.capitalize } }&.map do |e|
|
||||
r = e['Name']
|
||||
Nameable(r) unless r.to_s.empty?
|
||||
end.compact
|
||||
end
|
||||
|
||||
def contributors_of1(kind)
|
||||
contributors&.select { |e| e['Role'] == kind.to_s.gsub(/([[:alpha:]]+)/) { |w| w.capitalize } }&.map { |e| Nameable(e['Name'])}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user