Created
April 24, 2014 18:24
-
-
Save cbeer/11264457 to your computer and use it in GitHub Desktop.
fcrepo4 transactions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
after do | |
resp = FedoraLens.connection.http.post "./fcr:tx" | |
loc = resp.headers['Location'] | |
cl = Faraday.new url: loc | |
cl.delete "./#{@library.pid}" | |
cl.delete "./#{@book.pid}" | |
cl.delete "./#{@author.pid}" | |
cl.delete "./#{@publisher.pid}" | |
cl.delete "./#{@library2.pid}" if @library2 | |
cl.delete "./#{@publisher2.pid}" if @publisher2 | |
cl.post './fcr:tx/fcr:commit' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment