Sha256: 05bf0d3339cfefce646a4f260aaad0653455396a988098f46f190feaa822f4a8

Contents?: true

Size: 397 Bytes

Versions: 9

Compression:

Stored size: 397 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

      # @param xpath [String] the xpath query expression
      def extract_fgdc(xpath, options = {})
        extract_xml(xpath, NS, options)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
traject_plus-1.3.0 lib/traject_plus/macros/fgdc.rb
traject_plus-1.2.2 lib/traject_plus/macros/fgdc.rb
traject_plus-1.1.1 lib/traject_plus/macros/fgdc.rb
traject_plus-1.1.0 lib/traject_plus/macros/fgdc.rb
traject_plus-1.0.0 lib/traject_plus/macros/fgdc.rb
traject_plus-0.1.0 lib/traject_plus/macros/fgdc.rb
traject_plus-0.0.3 lib/traject_plus/macros/fgdc.rb
traject_plus-0.0.2 lib/traject_plus/macros/fgdc.rb
traject_plus-0.0.1 lib/traject_plus/macros/fgdc.rb