Sha256: e4889f77c26b9c8ccc6464c81db483245aeb5190b0e0395c76f978b1e835104a
Contents?: true
Size: 543 Bytes
Versions: 9
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true module TrajectPlus module Macros # Macros for extracting MODS values from Nokogiri documents module Mods NS = { mods: 'http://www.loc.gov/mods/v3', rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', dc: 'http://purl.org/dc/elements/1.1/', xlink: 'http://www.w3.org/1999/xlink' }.freeze # @param xpath [String] the xpath query expression def extract_mods(xpath, options = {}) extract_xml(xpath, NS, options) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems