lib/dor/services/client/metadata.rb in dor-services-client-11.0.0 vs lib/dor/services/client/metadata.rb in dor-services-client-12.0.0
- old
+ new
@@ -59,23 +59,9 @@
return if resp.status == 404
raise_exception_based_on_response!(resp, object_identifier)
end
- # Update the MODS XML metadata
- # @raise [NotFoundResponse] when the response is a 404 (object not found)
- # @return [boolean] true on success
- def update_mods(mods_xml)
- resp = connection.put do |req|
- req.url "#{base_path}/mods"
- req.headers['Content-Type'] = 'application/xml'
- req.body = mods_xml
- end
- return if resp.success?
-
- raise_exception_based_on_response!(resp, object_identifier)
- end
-
private
attr_reader :object_identifier
def base_path