Module: TrajectPlus::Macros::FGDC

Includes:
Traject::Macros::NokogiriMacros
Defined in:
lib/traject_plus/macros/fgdc.rb

Overview

Macros for extracting FGDC values from Nokogiri documents

Constant Summary collapse

NS =
{ fgdc: 'http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd' }.freeze

Instance Method Summary collapse

Instance Method Details

#extract_fgdc(xpath) ⇒ Object

Parameters:

  • xpath (String)

    the xpath query expression



12
13
14
# File 'lib/traject_plus/macros/fgdc.rb', line 12

def extract_fgdc(xpath)
  extract_xpath(xpath, ns: NS)
end