app/presenters/hyku/manifest_enabled_work_show_presenter.rb
# assumes there can only be one doi
assumes there can only be one doi
assumes there can only be one doi
def doi
      doi_regex = %r{10\.\d{4,9}\/[-._;()\/:A-Z0-9]+}i
      doi = extract_from_identifier(doi_regex)
      doi.join if doi
    end
def doi doi_regex = %r{ 10 \. \d {4,9} \/ [-._;() \/ :A-Z0-9]+ }i doi = extract_from_identifier ( doi_regex ) doi . join if doi end
assumes there can only be one doi
assumes there can only be one doi