Method: IsoDoc::Metadata#url
- Defined in:
- lib/isodoc/metadata.rb
#url(xml, _out) ⇒ Object
157 158 159 160 161 162 163 |
# File 'lib/isodoc/metadata.rb', line 157 def url(xml, _out) (a = xml.at(ns("//bibdata/uri[not(@type)]"))) && set(:url, a.text) (a = xml.at(ns("//bibdata/uri[@type = 'html']"))) && set(:html, a.text) (a = xml.at(ns("//bibdata/uri[@type = 'xml']"))) && set(:xml, a.text) (a = xml.at(ns("//bibdata/uri[@type = 'pdf']"))) && set(:pdf, a.text) (a = xml.at(ns("//bibdata/uri[@type = 'doc']"))) && set(:doc, a.text) end |