Thanks, that helped. But it still not compiles. Am I right that You also 
modified MetadataValue.java?:

###############

compile:
     [javac] Compiling 5 source files to 
/opt/dspace-1.4.2-source/build/classes
     [javac] 
/opt/dspace-1.4.2-source/src/org/dspace/content/DCValue.java:109: 
formKey(java.lang.String,java.lang.String,java.lang.String) in 
org.dspace.content.MetadataField cannot be applied to 
(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
     [javac]         return 
MetadataField.formKey(schema,element,qualifier,language)+(value==null?"":"="+value);
     [javac]                             ^
     [javac] 
/opt/dspace-1.4.2-source/src/org/dspace/content/DCValue.java:117: 
formKey(java.lang.String,java.lang.String,java.lang.String) in 
org.dspace.content.MetadataField cannot be applied to 
(java.lang.String,java.lang.String,java.lang.String,java.lang.String)
     [javac]         return 
MetadataField.formKey(schema,element,qualifier,language);
     [javac]                             ^
     [javac] 2 errors

BUILD FAILED
/opt/dspace-1.4.2-source/build.xml:125: Compile failed; see the compiler 
error output for details.

###############

Best regards

Robert

----------

Dupriez Christophe schrieb:
> Hi Robert!
>    
>   As I derive as much as possible from the existing sources, few "private" 
> must become "public" or "protected"... Proposed patches in ItemImport.java 
> are only to make "protected" some "private":
>   ...
>   public class ItemImport
> {
>     protected static boolean useWorkflow = false;
>       protected static boolean isTest = false;
>       protected static boolean isResume = false;
>       protected static PrintWriter mapOut = null;
> ...
>       protected void deleteItems(Context c, String mapFile) throws Exception
> ...
>       protected void deleteItem(Context c, Item myitem) throws Exception
> ...
>       protected Map readMapFile(String filename) throws Exception
> 
> 
>   I join my version of org.dspace.content.DCValue which implements the 
> Comparable interface: when re-importing, it is useful to not duplicate 
> existing values.
>    
>   I should post this on SourceForge... Have a nice evening!
>    
>   Christophe Dupriez
>   
> Robert Roggenbuck <[EMAIL PROTECTED]> a écrit :
>   Dear Christophe,
> 
> thanks for Your answer. The ItemBatchUpdate seems to be a good way to 
> import data.
> Now I exported my data in the DIM-format, included Your Java libraries 
> from Sourceforge into my DSpace-source and did an 'ant update'. 
> Unfortunately I get several errors:
> 
> ########################
> Buildfile: build.xml
> 
> compile:
> [javac] Compiling 5 source files to 
> /opt/dspace-1.4.2-source/build/classes
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/Item.java:1610: cannot 
> find symbol
> [javac] symbol : method formShortKey()
> [javac] location: class org.dspace.content.DCValue
> [javac] String key = dcv.formShortKey();
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:200:
>  
> useWorkflow is not public in org.dspace.app.itemimport.ItemImport; 
> cannot be accessed from outside package
> [javac] useWorkflow = true;
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:205:
>  
> isTest is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] isTest = true;
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:237:
>  
> isResume is not public in org.dspace.app.itemimport.ItemImport; cannot 
> be accessed from outside package
> [javac] isResume = true;
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:309:
>  
> isResume is not public in org.dspace.app.itemimport.ItemImport; cannot 
> be accessed from outside package
> [javac] if (isResume && !command.equals("add"))
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:320:
>  
> isResume is not public in org.dspace.app.itemimport.ItemImport; cannot 
> be accessed from outside package
> [javac] if (myFile.exists() && command.equals("add") && 
> !isResume)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:435:
>  
> cannot find symbol
> [javac] symbol : method 
> deleteItems(org.dspace.core.Context,java.lang.String)
> [javac] location: class org.dspace.content.crosswalk.XSLTingest
> [javac] myloader.deleteItems(c, mapfile);
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:444:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (mapOut != null)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:446:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] mapOut.close();
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:449:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] mapOut = null;
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:456:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (mapOut != null)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:458:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] mapOut.close();
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:461:
>  
> isTest is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (isTest)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:544:
>  
> isTest is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (!isTest) {
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:556:
>  
> useWorkflow is not public in org.dspace.app.itemimport.ItemImport; 
> cannot be accessed from outside package
> [javac] if (useWorkflow)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:560:
>  
> isTest is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (!isTest)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:571:
>  
> isTest is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (!isTest)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:590:
>  
> isTest is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (!isTest)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:619:
>  
> isTest is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (!isTest)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:623:
>  
> isResume is not public in org.dspace.app.itemimport.ItemImport; cannot 
> be accessed from outside package
> [javac] if (isResume)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:625:
>  
> cannot find symbol
> [javac] symbol : method readMapFile(java.lang.String)
> [javac] location: class org.dspace.content.crosswalk.XSLTingest
> [javac] skipItems = readMapFile(mapFile);
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:630:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] mapOut = new PrintWriter(new 
> FileWriter(outFile, isResume));
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:630:
>  
> isResume is not public in org.dspace.app.itemimport.ItemImport; cannot 
> be accessed from outside package
> [javac] mapOut = new PrintWriter(new 
> FileWriter(outFile, isResume));
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:632:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] if (mapOut == null)
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:645:
>  
> mapOut is not public in org.dspace.app.itemimport.ItemImport; cannot be 
> accessed from outside package
> [javac] Item newItem = addItem(c, mycollections, xform, 
> inDoc, itemname, mapOut, null);
> [javac] 
> ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:654:
>  
> cannot find symbol
> [javac] symbol : method readMapFile(java.lang.String)
> [javac] location: class org.dspace.content.crosswalk.XSLTingest
> [javac] Map myhash = readMapFile(mapFile);
> [javac] ^
> [javac] 
> /opt/dspace-1.4.2-source/src/org/dspace/content/crosswalk/XSLTingest.java:685:
>  
> cannot find symbol
> [javac] symbol : method 
> deleteItem(org.dspace.core.Context,org.dspace.content.Item)
> [javac] location: class org.dspace.content.crosswalk.XSLTingest
> [javac] deleteItem(c, oldItem);
> [javac] ^
> [javac] 27 errors
> 
> BUILD FAILED
> /opt/dspace-1.4.2-source/build.xml:125: Compile failed; see the compiler 
> error output for details.
> 
> Total time: 3 seconds
> ########################
> 
> 
> What did I wrong? I can't imagine that these are mistakes made by You...
> 
> Best regards
> 
> Robert
> 
> ----
> Dupriez Christophe schrieb:
>> Dear Robert,
>>
>> Please find herebelow an XSLT which just copies its DIM input (no 
>> transformation).
>> You save it in directory dspace\config\crosswalks with (for instance) the 
>> name DIM-submission.xsl.
>>
>> You must then add the crosswalk definition to dspace.cfg:
>> crosswalk.submission.DIMDIM.stylesheet= crosswalks/DIM-submission.xsl
>> and you can then ingest with parameter -x DIMDIM
>>
>> I am following the same path for another project:
>> http://www.windmusic.org
>> going to:
>> http://www.windmusic.org/dspace
>>
>> YES, you "dsrun" the XSLTingest class with the parameters used for 
>> ItemImport + those specific to XSLTingest.
>>
>> Have a nice day!
>>
>> Christophe
>>
>>
>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>> xmlns:dim="http://www.dspace.org/xmlns/dspace/dim";
>> version="1.0">
>>>   Author: Christophe Dupriez
>>   -->
>>
>>>   xsl:exclude-result-prefixes=""/> -->
>>
>>
>>
>>
>>
>> Robert Roggenbuck a écrit :
>> Hi Christophe!
>>
>> Going through the given Wiki-page and the related articles about 
>> Metadata ans Stylesheets it seems not possible to apply the 
>> ItemBatchUpdate to any of the XML-files generated by 'csv_import'. But 
>> since I have no fixed format of my input data (it resides in a RDBMS and 
>> I am responsible for the data export via self made Perl skripts) I 
>> will export the data in DIM-XML. But which Java class I need to run with 
>> 'dsrun' to do the import? Surely not 
>> 'org.dspace.content.crosswalk.XSLTingest' as described in 
>> http://wiki.dspace.org/index.php/ItemBatchUpdate .
>>
>> Greetings
>>
>> Robert
> 
> 
> -------------------------------------------------------------------------
> 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
> 
> 
> 
> 
>              
> ---------------------------------
>  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

-- 

===================================
Robert Roggenbuck
Universitaetsbibliothek Osnabrueck
Alte Muenze 16
D-49074 Osnabrueck
Germany
Tel ++49/541/969-4344  Fax -4482
[EMAIL PROTECTED]

Postbox:
Postfach 4496
D-49034 Osnabrueck
===================================

-------------------------------------------------------------------------
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

Reply via email to