lib/relaton_ieee/scrapper.rb in relaton-ieee-1.12.2 vs lib/relaton_ieee/scrapper.rb in relaton-ieee-1.12.3

- old
+ new

@@ -37,10 +37,12 @@ end # @param ref [String] # @return [Array<RelatonBib::DocumentIdentifier>] def fetch_docid(ref) - [RelatonBib::DocumentIdentifier.new(id: ref, type: "IEEE", primary: true)] + args = { id: ref, type: "IEEE", primary: true } + args[:scope] = "trademark" if ref.match?(/^IEEE\s(?:Std\s)?(?:802|2030)/) + [RelatonBib::DocumentIdentifier.new(**args)] end # @param url [String] # @return [Array>RelatonBib::TypedUri>] def fetch_link(url)