Method: IsoDoc::Function::References#standard?

Defined in:
lib/isodoc/function/references.rb

#standard?(bib) ⇒ Boolean

Returns:

  • (Boolean)


124
125
126
127
128
129
130
131
132
133
# File 'lib/isodoc/function/references.rb', line 124

def standard?(bib)
  ret = false
  bib.xpath(ns("./docidentifier")).each do |id|
    next if id["type"].nil? ||
      id.at(".//self::*[#{SKIP_DOCID} or @type = 'metanorma']")

    ret = true
  end
  ret
end