Hi,

You can find it at

dspace-oai/src/main/java/org/dspace/xoai/app/XOAI.java



El martes, 18 de febrero de 2020, 14:43:14 (UTC), Ramón Cordeiro escribió:
>
> Thanks George.
>
> I need to create this file 'org.dspace.xoai.app.XOAI.java' or This already 
> exist and I only need add these lines ?
>
> Em sábado, 26 de outubro de 2019 11:56:45 UTC-3, George Kozak escreveu:
>>
>> Ramón:
>> I had a similar problem a while ago.  I was helped by Emilio Lorenzo (
>> [email protected]) and Adan Roman ([email protected]).  They had a patch 
>> that I made to the DSpace java code that gave me the ability to find the 
>> record.  Basically, this patch allows the OAI import to write in verbose 
>> mode the id of an item before it is indexed.  So, when the OAI import 
>> stops, you know exactly what record caused it to stop.  Then you can fix 
>> the item and rerun the OAI import.  The bad thing is that if you have 
>> multiple "bad" records then you have to keep running the import until you 
>> clean out the records one by one.
>> This is the patch:
>>
>> org.dspace.xoai.app.XOAI.java :
>>
>>
>>  private SolrInputDocument index(Item item) throws SQLException, 
>> MetadataBindException, ParseException, XMLStreamException, 
>> WritingXmlException {
>>
>>      if (verbose) {
>>
>>          System.out.println("Trying to index into oai item with 
>> id:"+item.getID().toString());
>>
>>      }
>>
>>         SolrInputDocument doc = new SolrInputDocument();
>>
>>         doc.addField("item.id", item.getID());
>> Good luck.
>> George Kozak
>> Digital library Specialist
>> 218 Olin Library
>> Cornell University
>> Ithaca, NY 14853
>> [email protected]
>>
>> On Thu, Oct 24, 2019 at 8:42 AM Ramón Cordeiro <[email protected]> 
>> wrote:
>>
>>>
>>> How I mentioned before, in dspace 5 solr indexing running in random way. 
>>> Because IT, become hard to discovery which record is having the problem. 
>>> Someone have some idea ?
>>>
>>> [image: error_solr_import-print.png]
>>>
>>>
>>>
>>>
>>> Em segunda-feira, 21 de outubro de 2019 11:27:26 UTC-3, Ramón Cordeiro 
>>> escreveu:
>>>>
>>>> The dspace is already with xalan 1.7.0. But not work.
>>>> Do you know how do import forcing work in number order ?
>>>>
>>>> Em quinta-feira, 17 de outubro de 2019 17:03:16 UTC-3, Michel Santana 
>>>> escreveu:
>>>>>
>>>>> I  have posted this reply to another question here. Perhaps is the 
>>>>> same:
>>>>> "We had a problem very similar and was because the OAI server has a 
>>>>> bug in one library that causes a server crash when the dataset has an 
>>>>> item 
>>>>> with a non standard UNICODE character in the Metadata.
>>>>> The solution is to change that library (xalan 1.7.1) to a previous one 
>>>>> (xalan 1.7.0) in the pom.xml file.
>>>>> I have done a pull request to solve this.
>>>>> https://github.com/4Science/DSpace/pull/101
>>>>> Take a look and try. Good luck!"
>>>>
>>>> -- 
>>> All messages to this mailing list should adhere to the DuraSpace Code of 
>>> Conduct: https://duraspace.org/about/policies/code-of-conduct/
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "DSpace Technical Support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/dspace-tech/91087dc0-c393-4af9-854b-9dde1d7be1b2%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/dspace-tech/91087dc0-c393-4af9-854b-9dde1d7be1b2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> ***************************
>> George Kozak
>> Digital Library Specialist
>> Cornell University Library - IT
>> 218 Olin Library
>> Cornell University
>> Ithaca, NY 14853
>> 607-255-8924
>> [email protected] 
>>
>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/c2a9114f-9aaa-4f11-8a23-79c81a72a73c%40googlegroups.com.

Reply via email to