Re: RE : [Dspace-general] Replacing a bitstream and getting an updated checksum value in the metadata

Sunyeen Pai sunyeen at hawaii.edu
Mon Jun 4 21:07:13 EDT 2007


Hi Stephane,

You have probably already answered your question by now, but I did test your method and 
ItemImport --replace does update the checksum.  I tested this with an item record that I imported into the database.

In addition, I tried to do this with a manually entered item by editing the mapfile and creating a handle file in the item's folder.  I hope this is not a no-no... but at any rate, it worked, the content was replaced and the checksum was updated.

These were just small tests... please test this on your site too.  Feedback welcome!

--Sunny

----- Original Message -----
From: "Tellier, Stephane" <stephane.tellier at cgi.com>
Date: Wednesday, May 23, 2007 11:19 am
Subject:  RE : [Dspace-general] Replacing a bitstream and getting an updated checksum value in the metadata
To: Sunyeen Pai <sunyeen at hawaii.edu>, dspace-general at mit.edu

> Hi Sunyeen,
> 
> we actually have the same needs in our project : some bitstreams 
> must be updated in DSpace to contains URLs generated after the 
> ingestion (like handles).
> We do that by making a ItemImport --replace immediately after 
> doing a ItemImport --add with the import tool.
> We run cleanup after.
> Since ItemImport --replace is a standard feature in DSpace, there 
> shouldn't be any problems with the checksum...
> Alas we're not ready yet to verify this but we're close (still in 
> DEV/TEST mode).
> Maybe someone can confirm that the checksum is ok after doing some 
> replaces with the ItemImport?
> 
> 
> 
> ________________________________
> 
> De: dspace-general-bounces at mit.edu de la part de Sunyeen Pai
> Date: mer. 2007-05-23 16:31
> À: dspace-general at mit.edu
> Objet : [Dspace-general] Replacing a bitstream and getting an 
> updated checksum value in the metadata
> 
> 
> 
> Greetings,
> 
> We are just at the beginning of setting up our repository.  I was 
> wondering if you could advise us on this question:
> 
> 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.  We would like to accommodate this, but is this feasible?  
> 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).  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.  Then we would 
> "replace" the bitstream/document in the item record with the 
> updated bitstream.
> 
> Problem with this solution:  It is easy to remove the original 
> bitstream and add in the corrected one, but then the checksum 
> information is no longer correct.
> 
> Questions:  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)?  Or is this 
> something that must be corrected manually in the metadata?
> 
> ps:  If there is no easy way to do this, we will get back with the 
> editor.
> Thank you,
> --Sunny Pai
> 
> University of Hawaii at Manoa Library
> 
> 
> 
> 
> 
> _______________________________________________
> Dspace-general mailing list
> Dspace-general at mit.edu
> http://mailman.mit.edu/mailman/listinfo/dspace-general
> 
> 
> 




More information about the Dspace-general mailing list