[Dspace-tech] Using ItemImport class

2011-07-15 Thread Heitor Barbieri


Hello, 

I want to import many documents located at different (DSpace's simple archive 
format) directories. 
To do that would use the ItemImport class from my java program but I think it 
is not possible because: 
a) the addItems() method is private 
b) the main() function calls System.exit() 

Is there another way to do that task without using that class? 

Why don't I put all files in the same directory? It's because the number of 
documents to import is too large, so I 
have to divide then into many directories. 

Thanks for your attention. 

Heitor Barbieri 
BIREME/PAHO/WHO 





--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Batch metadata corrections question: does anyone know why the limit is set to just 20 items at a time?

2011-07-28 Thread Heitor Barbieri

helix84 

Usually, how much time do you wait to import 2000 items via the command line 
interface? 

Regards 
Heitor 

De: "helix84"  
Para: "Alexander Bernard Lemann"  
Cc: dspace-tech@lists.sourceforge.net 
Enviadas: Quinta-feira, 28 de Julho de 2011 9:17:16 
Assunto: Re: [Dspace-tech] Batch metadata corrections question: does anyone 
know why the limit is set to just 20 items at a time? 

On Thu, Jul 28, 2011 at 14:00, Lemann, Alexander Bernard 
 wrote: 
> Relatedly, does anyone know how safe it is to test higher limit values? I 
> looked at the code to determine whether these batch edits occur within a 
> single database transaction, but I didn't see any evidence either way. 

This shouldn't be any problem at the database layer. This limit and 
timeout problems concern only the web UI. I upped the limit to 2000 
because I wanted to look at the "diff" in a web browser and it wasn't 
a problem - but I only did the preview, not the actual import step. I 
routinely run my imports of 2000 items via the command line interface. 
This dspace machine has only 1 GB of memory dedicated to it. 

Regards, 
~~helix84 

-- 
Got Input? Slashdot Needs You. 
Take our quick survey online. Come on, we don't ask for help often. 
Plus, you'll get a chance to win $100 to spend on ThinkGeek. 
http://p.sf.net/sfu/slashdot-survey 
___ 
DSpace-tech mailing list 
DSpace-tech@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/dspace-tech 
--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech