lib/traject_plus/macros/mods.rb in traject_plus-1.3.0 vs lib/traject_plus/macros/mods.rb in traject_plus-2.0.0

- old
+ new

@@ -7,12 +7,14 @@ 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 + include Traject::Macros::NokogiriMacros + # @param xpath [String] the xpath query expression - def extract_mods(xpath, options = {}) - extract_xml(xpath, NS, options) + def extract_mods(xpath) + extract_xpath(xpath, ns: NS) end end end end