Method: IsoDoc::PresentationXMLConvert#date_note_process

Defined in:
lib/isodoc/presentation_function/refs.rb

#date_note_process(bib) ⇒ Object

strip any fns in docidentifier before they are extracted for rendering



204
205
206
207
208
209
210
# File 'lib/isodoc/presentation_function/refs.rb', line 204

def date_note_process(bib)
  ret = ident_fn(bib)
  date_note = bib.at(ns("./note[@type = 'Unpublished-Status']"))
  date_note.nil? and return ret
  id = UUIDTools::UUID.random_create.to_s
  "#{ret}<fn reference='#{id}'><p>#{date_note.content}</p></fn>"
end