Module: RelatonCalconnect::HashConverter
- Extended by:
- HashConverter
- Includes:
- RelatonBib::HashConverter
- Included in:
- HashConverter
- Defined in:
- lib/relaton_calconnect/hash_converter.rb
Instance Method Summary collapse
Instance Method Details
#create_doctype(**args) ⇒ Object
17 18 19 |
# File 'lib/relaton_calconnect/hash_converter.rb', line 17 def create_doctype(**args) DocumentType.new(**args) end |
#editorialgroup_hash_to_bib(ret) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/relaton_calconnect/hash_converter.rb', line 7 def editorialgroup_hash_to_bib(ret) eg = ret.dig(:ext, :editorialgroup) || ret[:editorialgroup] # @TODO remove ret[:editorialgroup] after update all datasets return unless eg technical_committee = RelatonBib.array(eg).map do |wg| TechnicalCommittee.new RelatonBib::WorkGroup.new(**wg) end ret[:editorialgroup] = RelatonBib::EditorialGroup.new technical_committee end |