Me again
Thanks for the suggestions.
FYI:
Initially I tried creating a mapfile only with handles, since the
filenames are not required for the deletion step in ItemImport.java.
However, Scott Yeadon noted that it DOES require a valid mapfile which
means unique filenames must be there, even though those names are not
actually used when deleting items (patch??).
In this case, I obtained the first handle and last handle, wrote a
script to generate a mapfile with arbitrary filenames (I used the handle
+ some extension) + handles and the ItemImport script liked it.
Cheers
Gary
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Browne
Sent: Thursday, 23 August 2007 2:20 PM
To: DSpace Tech
Subject: [Dspace-tech] Deleting multiple items
Hi all
I'm trying to delete multiple (several hundred) items within a
collection, but I don't want to delete all items in the collection. I've
tried generating a mapfile (as the items I wish to delete have
sequential handles) and running:
./dsrun org.dspace.app.itemimport.ItemImport -d -e
[EMAIL PROTECTED]
--mapfile=/home/dspace/utilities/deletions.map
But only the last item in the map file is deleted. Anyone know why that
is. I looked in the ItemImport class and it seems fairly basic - unless
the hash is someone not generated properly from my mapfile?? Dunno. Any
help would be appreciated.
BTW, in case you were wondering, this is on the dev machine.
;)
G
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech