Module: SortNameProcessor::Family
- Defined in:
- backend/app/model/mixins/sort_name_processor.rb
Class Method Summary collapse
Class Method Details
.process(json, extras = {}) ⇒ Object
88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'backend/app/model/mixins/sort_name_processor.rb', line 88 def self.process(json, extras = {}) result = "" result << json["family_name"] if json["family_name"] result << ", #{json["prefix"]}" if json["prefix"] result << " (#{json["qualifier"]})" if json["qualifier"] result << " (#{json["dates"]})" if json["dates"] result << " (#{json["location"]})" if json["location"] result.length > 255 ? result[0..254] : result end |