When updating an existing Fedora object from a new FOXML file, I first
delete/purge the existing object using a purgeObject API-M REST method.
(a DELETE on /objects/{pid} ) A bit unwieldy, but it works.
It would have been nice if modifyObject worked with a FOXML file, iow
doing a PUT /objects/{pid} with the FOXML as the body of the request.
This probably has ramifications in the internal Fedora machinery, so I
can understand how this is not an ideal call to support.
In your case, is it only a single datatream that changes or a bunch of
things? modifyDatastream might be an option?
Etienne Posthumus
TU Delft Library - Digital Product Development
t: +31 (0) 15 27 81 949
m: [email protected]
skype: eposthumus
http://www.library.tudelft.nl/
Prometheusplein 1, 2628 ZC, Delft, Netherlands
________________________________
From: [email protected] [mailto:[email protected]]
Sent: woensdag 14 januari 2009 00:17
To: [email protected]
Subject: [Fedora-commons-users] Updating Fedora Object via FOXML
Hi All
Is there a way to update an existing Fedora Object via a FOXML file?
I have Fedora Objects that were initially ingested via FOXML files that
were generated from another system. The problem is that the other system
can also make updates to the data, at which time I'd like to load the
changes into Fedora from a new FOXML file that the other system creates.
Currently, if I attempt this, the update is rejected because the PID is
already in FOXML. This makes sense, to prevent duplicates, but is there
any way to instruct a FOXML file to update a Fedora record instead of
rejecting it?
Thanks in advance
Martin
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users