Method: IsoDoc::Function::References#reference_names
- Defined in:
- lib/isodoc/function/references.rb
#reference_names(ref) ⇒ Object
199 200 201 202 203 204 205 206 207 208 |
# File 'lib/isodoc/function/references.rb', line 199 def reference_names(ref) isopub = ref.at(ns(ISO_PUBLISHER_XPATH)) docid = ref.at(ns("./docidentifier")) prefix = ref.at(ns("./docidentifier/@type")) # return ref_names(ref) unless docid date = ref.at(ns("./date[@type = 'published']")) allparts = ref.at(ns("./extent[@type='part'][referenceFrom='all']")) reference = format_ref(docid_l10n(docid.text), prefix&.text, isopub, date, allparts) @anchors[ref["id"]] = { xref: reference } end |