Hi Janice,

as Stuart pointed out this function is only available for the jspui.
Assuming you use postgres the psql commands for moving an item are:

update item set owning_collection=NewCollectionID where item_id=ItemID;

update collection2item set collection_id=NewCollectionID where 
collection_id=OldCollectionID and item_id=ItemID;

Then you got to reindex your DSpace instance.

Before changing the db make sure you got a dump.

Hope that helps

Claudia Jürgen



Stuart Lewis schrieb:
> Hi Janice,
> 
>  
> 
> The bad news: at present this function does not exist in 1.5.2 XMLUI.
> The good news: it does exist in the JSPUI (if you have that running
> too?) and will exist in 1.6 in the XMLUI.
> 
>  
> 
> If you don't have access to the jspui (you can run it alongside the
> xmlui) then the only way to perform the move is to do a little bit of
> database tweaking.
> 
>  
> 
> You'll need to edit the item in the 'item' table (update the
> owning_collection field) and edit the relevant entry in the
> 'collection2item' table. You'll then need to reindex DSpace using
> [dspace]/bin/index-update
> 
>  
> 
> Thanks,
> 
>  
> 
>  
> 
> Stuart Lewis
> 
> Digital Services Programmer
> 
> Te Tumu Herenga The University of Auckland Library
> 
> Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
> 
> Ph: 64 9 373-7599 x81928
> 
> http://www.library.auckland.ac.nz <http://www.library.auckland.ac.nz/> /
> 
>  
> 
>  
> 
>  
> 
> From: Janice de Oliveira E Silva Silveira
> [mailto:[email protected]] 
> Sent: Tuesday, 30 June 2009 8:10 a.m.
> To: [email protected]
> Subject: [Dspace-tech] how to move an item from one collection to
> another
> 
>  
> 
> Hello everyone, 
> 
> We are running DSpace 1.5.2 (xmlui). 
> 
> I have accidentally added an item to the wrong collection, and now I am
> looking for a path to move an item from one collection to another. Yes,
> I can either delete it and add it again, or export/import it but I guess
> there is another way to do it. But how??? Any thoughts?
> 
> Many thanks, 
> 
> Janice Silveira
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ------------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to