lib/dor/services/client/metadata.rb in dor-services-client-4.3.0 vs lib/dor/services/client/metadata.rb in dor-services-client-4.4.0
- old
+ new
@@ -17,13 +17,14 @@
# @param [Hash<Symbol,Hash>] opts the options for legacy update
# @option opts [Hash] :descriptive Data for descriptive metadata
# @option opts [Hash] :rights Data for access rights metadata
# @option opts [Hash] :content Data for structural metadata
# @option opts [Hash] :technical Data for technical metadata
+ # @option opts [Hash] :provenance Data for provenance metadata
# @example:
# legacy_update(descriptive: { updated: '2001-12-20', content: '<descMetadata />' })
def legacy_update(opts)
- opts = opts.slice(:descriptive, :rights, :content, :technical)
+ opts = opts.slice(:descriptive, :rights, :content, :technical, :provenance)
resp = connection.patch do |req|
req.url "#{base_path}/legacy"
req.headers['Content-Type'] = 'application/json'
req.body = opts.to_json
end