Re: [Dspace-tech] Moving an item from one collection to another

2007-08-14 Thread Jayan Chirayath Kurian
Thanks Christine. It was nice to try items getting replaced from one
collection to another individually as well as in batch mode. This helped
to replace an item submitted through dspace GUI into another collection
through the export facility and the subsequent import with replace
option.

Regards,
Jayan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christine L Moulen
Sent: Wednesday, August 08, 2007 10:02 PM
To: Blanco, Jose
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Moving an item from one collection to another

I'm not sure about that.  When I do a replacement, I'm usually changing
the PDF file for an item, so I don't use the export, and we build new
source metadata as well.

I've never created the handle file, ItemImport seems to do that for you.
I don't know what happens if you have one and don't remove it.

Christine

On Wed, 2007-08-08 at 09:53 -0400, Blanco, Jose wrote:
 When I export the item should I leave the handle file in the
directory,
 and do I need to clean up the dublin_core.xml file in any way?
 
 This is really useful information.  Thank you!
 
 Jose 
 
 -Original Message-
 From: Christine L Moulen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 08, 2007 9:50 AM
 To: Blanco, Jose
 Cc: dspace-tech@lists.sourceforge.net
 Subject: RE: [Dspace-tech] Moving an item from one collection to
another
 
 You specify the --collection flag as part of ItemImport.
 
 dsrun org.dspace.app.itemimport.ItemImport --replace
 [EMAIL PROTECTED] --collection=1721.1/7704 --source=12345
 --mapfile=12345.map
 
 The map file looks like this:
  1721.1/8092
 
 It finds the old one based on the handle in the map file, removes that
 item completely, and imports the item to the new collection from
 --collection
 
 The moved item will have the same handle as the original.
 
 You'll still need to do your ItemExport to get the source metadata and
 bitstream files.  The whole thing is replaced from the source.
 
 Christine
 
 On Wed, 2007-08-08 at 09:30 -0400, Blanco, Jose wrote:
  But doesn't the replace just replace the item in the collection it 
  exists in.  I need to move the item from one collection to another.
  Where would I indicate that?  Where would I say this item now lives
in
 
  this collection, and not in this other one?
  
  Thanks!
  Jose
  
  -Original Message-
  From: Christine L Moulen [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 08, 2007 9:15 AM
  To: Blanco, Jose
  Cc: dspace-tech@lists.sourceforge.net
  Subject: Re: [Dspace-tech] Moving an item from one collection to 
  another
  
  Jose,
  
  If you're using ItemImport, you could run that with the --replace 
  flag, instead of --add.
  Be sure to provide a map file which contains the handle for the item

  you're moving, similar to the map file the --add option would have 
  created.
  You can skip deleting the item, the replacement will take care of
it.
  You also shouldn't need to re-index.
  
  Christine
  
  On Tue, 2007-08-07 at 12:35 -0400, Blanco, Jose wrote:
   I need to move an item from one collection to another.  I tried (
in
 
   my dev area ) to use ItemExport to get the item, and then I
deleted 
   the item using the interface, then I used ItemImport to put the
item
 
   in the new collection, but when I log in as admin to view the item

   it seems to have created a different item_id and I can't edit the
 item.
   I don't have confidence in this procedure.  Is there a better way
to
  do this?
   
   Thanks!
   Jose
   
  

   --
   --- 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
   DSpace-tech@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/dspace-tech
  --
  Christine Moulen
  Library Systems Manager
  MIT Libraries, E25-131
  617-253-0757
  fax: 617-253-4462


-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
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

Re: [Dspace-tech] Moving an item from one collection to another

2007-08-08 Thread Christopher Steven Yates [csy]
Hi Jose/Claudia,

We currently have the move item patch (SF ID: 1743188) installed on one
of our DSpace demonstrators. Although not tested extensively, we haven't
had any problems using it.

Regards,
Chris


---
Chris Yates
Repository Support Officer
 
Gwasanaethau Gwybodaeth   Information Services 
Prifysgol Cymru Aberystwyth   University of Wales Aberystwyth|
  
E-bost / E-mail [EMAIL PROTECTED]  
Ffon / Tel: (01970 62) 8489


---



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:dspace-tech-
 [EMAIL PROTECTED] On Behalf Of Blanco, Jose
 Sent: 07 August 2007 19:46
 To: Claudia Juergen
 Cc: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] Moving an item from one collection to
 another
 
 Thnaks!  I got an aswer just like this one privately from another
 Dspace
 user.  This is what I thought I might have to do.  I suppose I will
 have
 to run index-all after making this change, right?
 
 -Original Message-
 From: Claudia Juergen [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 07, 2007 2:36 PM
 To: Blanco, Jose
 Cc: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] Moving an item from one collection to
 another
 
 Hi Jose,
 
 there is a move item patch in the patch queue, but I haven't tried it
 yet.
 
 You can achieve this on db level with the following commands:
 
 update item set owning_collection=NewCollectionID where
item_id=ItemID;
 
 update collection2item set collection_id=NewCollectionID where
 collection_id=OldCollectionID and item_id=ItemID;
 
 hope that helps
 
 Claudia
 
  I need to move an item from one collection to another.  I tried ( in
  my dev area ) to use ItemExport to get the item, and then I deleted
  the item using the interface, then I used ItemImport to put the item
  in the new collection, but when I log in as admin to view the item
it
  seems to have created a different item_id and I can't edit the item.
  I don't have confidence in this procedure.  Is there a better way to
 do this?
 
  Thanks!
  Jose
 
 
-
 -
  --- 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
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech
 
 
 
 

---
 --
 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
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving an item from one collection to another

2007-08-08 Thread Christine L Moulen
Jose,

If you're using ItemImport, you could run that with the --replace flag,
instead of --add.  
Be sure to provide a map file which contains the handle for the item
you're moving, similar to the map file the --add option would have
created.  
You can skip deleting the item, the replacement will take care of it.
You also shouldn't need to re-index.

Christine

On Tue, 2007-08-07 at 12:35 -0400, Blanco, Jose wrote:
 I need to move an item from one collection to another.  I tried ( in my
 dev area ) to use ItemExport to get the item, and then I deleted the
 item using the interface, then I used ItemImport to put the item in the
 new collection, but when I log in as admin to view the item it seems to
 have created a different item_id and I can't edit the item.  I don't
 have confidence in this procedure.  Is there a better way to do this?
 
 Thanks!
 Jose
 
 -
 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
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
-- 
Christine Moulen
Library Systems Manager
MIT Libraries, E25-131
617-253-0757
fax: 617-253-4462

-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving an item from one collection to another

2007-08-08 Thread Blanco, Jose
But doesn't the replace just replace the item in the collection it
exists in.  I need to move the item from one collection to another.
Where would I indicate that?  Where would I say this item now lives in
this collection, and not in this other one?

Thanks!
Jose 

-Original Message-
From: Christine L Moulen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 08, 2007 9:15 AM
To: Blanco, Jose
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Moving an item from one collection to another

Jose,

If you're using ItemImport, you could run that with the --replace flag,
instead of --add.  
Be sure to provide a map file which contains the handle for the item
you're moving, similar to the map file the --add option would have
created.  
You can skip deleting the item, the replacement will take care of it.
You also shouldn't need to re-index.

Christine

On Tue, 2007-08-07 at 12:35 -0400, Blanco, Jose wrote:
 I need to move an item from one collection to another.  I tried ( in 
 my dev area ) to use ItemExport to get the item, and then I deleted 
 the item using the interface, then I used ItemImport to put the item 
 in the new collection, but when I log in as admin to view the item it 
 seems to have created a different item_id and I can't edit the item.  
 I don't have confidence in this procedure.  Is there a better way to
do this?
 
 Thanks!
 Jose
 
 --
 --- 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
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
Christine Moulen
Library Systems Manager
MIT Libraries, E25-131
617-253-0757
fax: 617-253-4462

-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving an item from one collection to another

2007-08-08 Thread Christine L Moulen
You specify the --collection flag as part of ItemImport.

dsrun org.dspace.app.itemimport.ItemImport --replace
[EMAIL PROTECTED] --collection=1721.1/7704 --source=12345
--mapfile=12345.map

The map file looks like this:
 1721.1/8092

It finds the old one based on the handle in the map file, removes that
item completely, and imports the item to the new collection from
--collection

The moved item will have the same handle as the original.

You'll still need to do your ItemExport to get the source metadata and
bitstream files.  The whole thing is replaced from the source.

Christine

On Wed, 2007-08-08 at 09:30 -0400, Blanco, Jose wrote:
 But doesn't the replace just replace the item in the collection it
 exists in.  I need to move the item from one collection to another.
 Where would I indicate that?  Where would I say this item now lives in
 this collection, and not in this other one?
 
 Thanks!
 Jose 
 
 -Original Message-
 From: Christine L Moulen [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 08, 2007 9:15 AM
 To: Blanco, Jose
 Cc: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] Moving an item from one collection to another
 
 Jose,
 
 If you're using ItemImport, you could run that with the --replace flag,
 instead of --add.  
 Be sure to provide a map file which contains the handle for the item
 you're moving, similar to the map file the --add option would have
 created.  
 You can skip deleting the item, the replacement will take care of it.
 You also shouldn't need to re-index.
 
 Christine
 
 On Tue, 2007-08-07 at 12:35 -0400, Blanco, Jose wrote:
  I need to move an item from one collection to another.  I tried ( in 
  my dev area ) to use ItemExport to get the item, and then I deleted 
  the item using the interface, then I used ItemImport to put the item 
  in the new collection, but when I log in as admin to view the item it 
  seems to have created a different item_id and I can't edit the item.  
  I don't have confidence in this procedure.  Is there a better way to
 do this?
  
  Thanks!
  Jose
  
  --
  --- 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
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech
 --
 Christine Moulen
 Library Systems Manager
 MIT Libraries, E25-131
 617-253-0757
 fax: 617-253-4462

-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving an item from one collection to another

2007-08-08 Thread Blanco, Jose
When I export the item should I leave the handle file in the directory,
and do I need to clean up the dublin_core.xml file in any way?

This is really useful information.  Thank you!

Jose 

-Original Message-
From: Christine L Moulen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 08, 2007 9:50 AM
To: Blanco, Jose
Cc: dspace-tech@lists.sourceforge.net
Subject: RE: [Dspace-tech] Moving an item from one collection to another

You specify the --collection flag as part of ItemImport.

dsrun org.dspace.app.itemimport.ItemImport --replace
[EMAIL PROTECTED] --collection=1721.1/7704 --source=12345
--mapfile=12345.map

The map file looks like this:
 1721.1/8092

It finds the old one based on the handle in the map file, removes that
item completely, and imports the item to the new collection from
--collection

The moved item will have the same handle as the original.

You'll still need to do your ItemExport to get the source metadata and
bitstream files.  The whole thing is replaced from the source.

Christine

On Wed, 2007-08-08 at 09:30 -0400, Blanco, Jose wrote:
 But doesn't the replace just replace the item in the collection it 
 exists in.  I need to move the item from one collection to another.
 Where would I indicate that?  Where would I say this item now lives in

 this collection, and not in this other one?
 
 Thanks!
 Jose
 
 -Original Message-
 From: Christine L Moulen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 08, 2007 9:15 AM
 To: Blanco, Jose
 Cc: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] Moving an item from one collection to 
 another
 
 Jose,
 
 If you're using ItemImport, you could run that with the --replace 
 flag, instead of --add.
 Be sure to provide a map file which contains the handle for the item 
 you're moving, similar to the map file the --add option would have 
 created.
 You can skip deleting the item, the replacement will take care of it.
 You also shouldn't need to re-index.
 
 Christine
 
 On Tue, 2007-08-07 at 12:35 -0400, Blanco, Jose wrote:
  I need to move an item from one collection to another.  I tried ( in

  my dev area ) to use ItemExport to get the item, and then I deleted 
  the item using the interface, then I used ItemImport to put the item

  in the new collection, but when I log in as admin to view the item 
  it seems to have created a different item_id and I can't edit the
item.
  I don't have confidence in this procedure.  Is there a better way to
 do this?
  
  Thanks!
  Jose
  
  
  --
  --- 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
  DSpace-tech@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/dspace-tech
 --
 Christine Moulen
 Library Systems Manager
 MIT Libraries, E25-131
 617-253-0757
 fax: 617-253-4462

-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving an item from one collection to another

2007-08-08 Thread Blanco, Jose
I will experiment with this on our development environment and see what
happens.  Thanks for all these ideas.

-Jose 

-Original Message-
From: Christine L Moulen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 08, 2007 10:02 AM
To: Blanco, Jose
Cc: dspace-tech@lists.sourceforge.net
Subject: RE: [Dspace-tech] Moving an item from one collection to another

I'm not sure about that.  When I do a replacement, I'm usually changing
the PDF file for an item, so I don't use the export, and we build new
source metadata as well.

I've never created the handle file, ItemImport seems to do that for you.
I don't know what happens if you have one and don't remove it.

Christine

On Wed, 2007-08-08 at 09:53 -0400, Blanco, Jose wrote:
 When I export the item should I leave the handle file in the 
 directory, and do I need to clean up the dublin_core.xml file in any
way?
 
 This is really useful information.  Thank you!
 
 Jose
 
 -Original Message-
 From: Christine L Moulen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 08, 2007 9:50 AM
 To: Blanco, Jose
 Cc: dspace-tech@lists.sourceforge.net
 Subject: RE: [Dspace-tech] Moving an item from one collection to 
 another
 
 You specify the --collection flag as part of ItemImport.
 
 dsrun org.dspace.app.itemimport.ItemImport --replace 
 [EMAIL PROTECTED] --collection=1721.1/7704 --source=12345 
 --mapfile=12345.map
 
 The map file looks like this:
  1721.1/8092
 
 It finds the old one based on the handle in the map file, removes that

 item completely, and imports the item to the new collection from 
 --collection
 
 The moved item will have the same handle as the original.
 
 You'll still need to do your ItemExport to get the source metadata and

 bitstream files.  The whole thing is replaced from the source.
 
 Christine
 
 On Wed, 2007-08-08 at 09:30 -0400, Blanco, Jose wrote:
  But doesn't the replace just replace the item in the collection it 
  exists in.  I need to move the item from one collection to another.
  Where would I indicate that?  Where would I say this item now lives 
  in
 
  this collection, and not in this other one?
  
  Thanks!
  Jose
  
  -Original Message-
  From: Christine L Moulen [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 08, 2007 9:15 AM
  To: Blanco, Jose
  Cc: dspace-tech@lists.sourceforge.net
  Subject: Re: [Dspace-tech] Moving an item from one collection to 
  another
  
  Jose,
  
  If you're using ItemImport, you could run that with the --replace 
  flag, instead of --add.
  Be sure to provide a map file which contains the handle for the item

  you're moving, similar to the map file the --add option would have 
  created.
  You can skip deleting the item, the replacement will take care of
it.
  You also shouldn't need to re-index.
  
  Christine
  
  On Tue, 2007-08-07 at 12:35 -0400, Blanco, Jose wrote:
   I need to move an item from one collection to another.  I tried ( 
   in
 
   my dev area ) to use ItemExport to get the item, and then I 
   deleted the item using the interface, then I used ItemImport to 
   put the item
 
   in the new collection, but when I log in as admin to view the item

   it seems to have created a different item_id and I can't edit the
 item.
   I don't have confidence in this procedure.  Is there a better way 
   to
  do this?
   
   Thanks!
   Jose
   
   --
   --
   --
   --- 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
   DSpace-tech@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/dspace-tech
  --
  Christine Moulen
  Library Systems Manager
  MIT Libraries, E25-131
  617-253-0757
  fax: 617-253-4462

-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Moving an item from one collection to another

2007-08-07 Thread Blanco, Jose
I need to move an item from one collection to another.  I tried ( in my
dev area ) to use ItemExport to get the item, and then I deleted the
item using the interface, then I used ItemImport to put the item in the
new collection, but when I log in as admin to view the item it seems to
have created a different item_id and I can't edit the item.  I don't
have confidence in this procedure.  Is there a better way to do this?

Thanks!
Jose

-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving an item from one collection to another

2007-08-07 Thread Claudia Juergen
Hi Jose,

there is a move item patch in the patch queue, but I haven't tried it yet.

You can achieve this on db level with the following commands:

update item set owning_collection=NewCollectionID where item_id=ItemID;

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

hope that helps

Claudia

 I need to move an item from one collection to another.  I tried ( in my
 dev area ) to use ItemExport to get the item, and then I deleted the
 item using the interface, then I used ItemImport to put the item in the
 new collection, but when I log in as admin to view the item it seems to
 have created a different item_id and I can't edit the item.  I don't
 have confidence in this procedure.  Is there a better way to do this?

 Thanks!
 Jose

 -
 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
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech




-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving an item from one collection to another

2007-08-07 Thread Blanco, Jose
Thnaks!  I got an aswer just like this one privately from another Dspace
user.  This is what I thought I might have to do.  I suppose I will have
to run index-all after making this change, right? 

-Original Message-
From: Claudia Juergen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 07, 2007 2:36 PM
To: Blanco, Jose
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Moving an item from one collection to another

Hi Jose,

there is a move item patch in the patch queue, but I haven't tried it
yet.

You can achieve this on db level with the following commands:

update item set owning_collection=NewCollectionID where item_id=ItemID;

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

hope that helps

Claudia

 I need to move an item from one collection to another.  I tried ( in 
 my dev area ) to use ItemExport to get the item, and then I deleted 
 the item using the interface, then I used ItemImport to put the item 
 in the new collection, but when I log in as admin to view the item it 
 seems to have created a different item_id and I can't edit the item.  
 I don't have confidence in this procedure.  Is there a better way to
do this?

 Thanks!
 Jose

 --
 --- 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
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech




-
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech