Hi all,
We are running DSpace 4.1. We are using "Harvesting items from XMLUI via
OAI-PMH" functionality for getting items from another repository.
The granularity of the other repository is "YYYY-MM-DD". So, the datestamp
of the record is defined in this format. For example:
<ListRecords>
<record>
<header>
<identifier>oai:xxxxx:yyyy</identifier>
*<datestamp>2014-05-09</datestamp>*
<setSpec>xxxx</setSpec>
</header>
<metadata>
[...]
The functionality is working ok. But now, we have received a record that
was already imported in the repository (it seems that it has been updated
in the other repository). When processing the record for the second time,
we receive the following Exception:
*ERROR org.dspace.core.Utils @ Error parsing date:java.text.ParseException:
Unparseable date: "2014GMT-05-09"*
at java.text.DateFormat.parse(Unknown Source)
at org.dspace.core.Utils.parseISO8601Date(Utils.java:377)
at org.dspace.harvest.OAIHarvester.processRecord(OAIHarvester.java:469)
at org.dspace.harvest.OAIHarvester.runHarvest(OAIHarvester.java:354)
at
org.dspace.harvest.OAIHarvester$HarvestThread.runHarvest(OAIHarvester.java:1368)
at
org.dspace.harvest.OAIHarvester$HarvestThread.run(OAIHarvester.java:1359)
at java.lang.Thread.run(Unknown Source)
I've been looking in the code, and it seems that the method
*Utils.parseISO8601Date(String
s) *is not processing this format of date.
Is this a normal behavior or is there any error?
Thanks in advance for your help.
Leire
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette