Hi all. I am trying to replace PDF files that are currently in the system with newer versions of those same PDF's. In essence, I have written a perl script to iterate through the assetstore, and look for PDF files. When I find one, I check to see if it is password protected (I have been asked to remove these passwords), remove the password, update the PDF to version 1.7 and replace the PDF file.
This does not work like this as the checksum is now different, and as such, I cannot open the file that is downloaded through DSpace (I can open it manually though, so there is nothing wrong with the actual file). So I thought that I would have to replace the bitstream through CLI. I could not find any way of doing this. So I had a look at exporting the collection, creating a "map file" (as used in the import function), running my script over the "DSpace Simple Archive Format" directory structure created, replacing the files in there, deleting all of the items using the map file that I had created, and re-importing the items. I did this on a test installation, and it worked fine. I then tried it on my development server that is basically a copy of my production server, but when I tried to delete the items, I could not due to some items being mapped into other collections. Investigating this, I could not see how to remove those mappings, either via CLI or GUI (XMLUI or JSPUI). Anyone that knows how to do this, could you please let me know (I could not find it in the documentation or on the wiki). Can I simply delete the entries in the collection2item table? I realise that the best method to do this is to replace the specific bitstream through a CLI command. If anyone has any idea how I can do this, please let me know. Kind Regards. Shaun Donovan ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

