(1) this will allow to enter a main archive folder name (e.g. collection name)
and create archive folders for items based on the collection name.
import java.io.*;
public class FolderCreation
{
public static void main( String [] args )
{
String FolderName = null;
int NoOfFolders = 0;
int InitialFolderNo=1;
try {
System.out.print("Enter Your Main Archive Folder Name: ");
BufferedReader br = new BufferedReader(new
InputStreamReader(System.in));
String FolderNameInput = br.readLine();
FolderName = FolderNameInput.toUpperCase();
System.out.print("Enter No Of Archive Folders to Create: ");
BufferedReader brNAF = new BufferedReader(new
InputStreamReader(System.in));
NoOfFolders= Integer.parseInt(brNAF.readLine());
}
catch( Exception e )
{
System.err.println( e );
}
File fileMD= new File("c:/"+ FolderName);
fileMD.mkdir();
while( NoOfFolders!=0)
{
File fileD= new File(fileMD,FolderName + "_" + InitialFolderNo);
fileD.mkdir();
InitialFolderNo++;NoOfFolders--;
}
}
}
________________________________
From: [EMAIL PROTECTED] on behalf of Grant Johnson
Sent: Sun 7/22/2007 12:24 AM
To: [email protected]
Subject: [Dspace-tech] Exporting DSpace collections
Hi All,
I am able to export a collection but the data doesn't include the
collection name.
Any idea how to "capture" the collection name using the DC export tool?
I guess I could create a folder of the "Collection Name" and export into
that...
hmmmm... How about doing it globally and auto-generate the folder
names based on the collection name?
I need to move a collection into a different repository and would like
to avoid manual methods....
Could I modify the source code to do this?
Grant Johnson
Systems Coordinator
Robertson Library, UPEI
http://dspace.roblib.upei.ca:8080/dspace/handle/123456789/4
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech