Sha256: 0b5c340b2c229fd8014c234b979c0d0e3add5dd71bec29711c842f51f5ca519e

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module TrajectPlus
  module Macros
    # Macros for extracting FGDC values from Nokogiri documents
    module FGDC
      NS = { fgdc: 'http://www.fgdc.gov/metadata/fgdc-std-001-1998.dtd' }.freeze

      include Traject::Macros::NokogiriMacros

      # @param xpath [String] the xpath query expression
      def extract_fgdc(xpath)
        extract_xpath(xpath, ns: NS)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
traject_plus-2.0.1 lib/traject_plus/macros/fgdc.rb
traject_plus-2.0.0 lib/traject_plus/macros/fgdc.rb
traject_plus-1.2.1 lib/traject_plus/macros/fgdc.rb