Method: IsoDoc::Function::References#reference_names

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

#reference_names(ref) ⇒ Object



187
188
189
190
191
192
193
194
195
196
# File 'lib/isodoc/function/references.rb', line 187

def reference_names(ref)
  isopub = ref.at(ns(ISO_PUBLISHER_XPATH))
  docid = bibitem_ref_code(ref)
  prefix = docid["type"]
  date = ref.at(ns("./date[@type = 'published']"))
  allparts = ref.at(ns("./extent[@type='part'][referenceFrom='all']"))
  reference = format_ref(docid_l10n(docid.text), prefix, isopub, date,
                         allparts)
  @anchors[ref["id"]] = { xref: reference }
end