<HTML dir=ltr><HEAD><TITLE>[Dspace-general] Replacing a bitstream and getting an updated checksum value in the metadata</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>

</HEAD>
<BODY>
<DIV id=idOWAReplyText38619 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Sunyeen,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>we actually have the same needs in our project : some bitstreams must be updated in DSpace to contains URLs generated&nbsp;after&nbsp;the ingestion (like handles).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>We do that by making a ItemImport --replace immediately after doing a ItemImport --add with the import tool.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>We run cleanup after.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Since ItemImport --replace is a standard feature in DSpace, there shouldn't be any problems with the checksum...</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Alas we're not ready yet to verify this but we're close (still in DEV/TEST mode).</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>Maybe someone can confirm that the checksum is ok after doing some replaces with the ItemImport?</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> dspace-general-bounces@mit.edu de la part de Sunyeen Pai<BR><B>Date:</B> mer. 2007-05-23 16:31<BR><B>À:</B> dspace-general@mit.edu<BR><B>Objet :</B> [Dspace-general] Replacing a bitstream and getting an updated checksum value in the metadata<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Greetings,<BR><BR>We are just at the beginning of setting up our repository.&nbsp; I was wondering if you could advise us on this question:<BR><BR>Background: We are working with an online journal editor who, in the past, has included the paper's url in the footer of the paper itself.&nbsp; We would like to accommodate this, but is this feasible?&nbsp; I am pretty sure handle ids are not assigned until the document is completely ingested, so I don't think there is a way of knowing what a url will be before the document has been ingested (please correct me if I am wrong).&nbsp; We were looking at, therefore, waiting for the document to be "archived", getting the assigned handle, then editing the pdf to reflect the new url.&nbsp; Then we would "replace" the bitstream/document in the item record with the updated bitstream.<BR><BR>Problem with this solution:&nbsp; It is easy to remove the original bitstream and add in the corrected one, but then the checksum information is no longer correct.<BR><BR>Questions:&nbsp; Can DSpace re-run checksums on corrected/replaced bitstreams so that the new checksum value is automatically reflected in the item's metadata (dc_provenance)?&nbsp; Or is this something that must be corrected manually in the metadata?<BR><BR>ps:&nbsp; If there is no easy way to do this, we will get back with the editor.<BR><BR>Thank you,<BR>--Sunny Pai<BR><BR>University of Hawaii at Manoa Library<BR><BR><BR><BR><BR><BR>_______________________________________________<BR>Dspace-general mailing list<BR>Dspace-general@mit.edu<BR><A href="http://mailman.mit.edu/mailman/listinfo/dspace-general">http://mailman.mit.edu/mailman/listinfo/dspace-general</A><BR></FONT></P></DIV></BODY></HTML>