module RelatonCie::CieBibliography

IETF bibliography module

Public Class Methods

get(code, _year = nil, _opts = {}) click to toggle source

@param code [String] the ECMA standard Code to look up (e..g “ECMA-6”) @param year [String] not used @param opts [Hash] not used @return [RelatonBib::BibliographicItem] Relaton of reference

# File lib/relaton_cie/cie_bibliography.rb, line 17
def get(code, _year = nil, _opts = {})
  warn "[relaton-cie] (\"#{code}\") fetching..."
  result = search code
  if result
    warn "[relaton-cie] (\"#{code}\") found #{result.docidentifier.first.id}"
  else
    warn "[relaton-cie] WARNING no match found online for #{code}. "\
    "The code must be exactly like it is on the standards website."
  end
  result
end