Method: RelatonIeee::IdamsParser#parse_relation
- Defined in:
- lib/relaton_ieee/idams_parser.rb
#parse_relation ⇒ RelatonBib::DocRelationCollection
Parse relation
136 137 138 139 140 141 142 143 144 145 146 147 |
# File 'lib/relaton_ieee/idams_parser.rb', line 136 def parse_relation # rubocop:disable Metrics/AbcSize rels = [] @doc.publicationinfo.standard_relationship&.each do |relation| if (ref = @fetcher.backrefs[relation.date_string]) rel = @fetcher.create_relation(relation.type, ref) rels << rel if rel elsif !relation.date_string.include?("Inactive Date") && docnumber @fetcher.add_crossref(docnumber, relation) end end RelatonBib::DocRelationCollection.new rels end |