OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Problem Updating Metadata Index of an Archive

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Problem Updating Metadata Index of an Archive

Postby calitom » Wed Jun 03, 2009 9:28 am

Hi,

I've installed PKP successfully, and i have downloaded records in an Archive...

But when i want to update the metadata index, starting from the last indexed date, i have this error :
The metadata index could not be updated. The following error(s) occurred:

* The value '2009-05-26T22:00:00Z' of the argument 'from date' is not valid.


However the value of the last indexed date is loaded in the "From" selects...

I tryed to leave the "Until" selects blanks or to put a value into them, but it didn't work...

How can i debug this?
calitom
 
Posts: 4
Joined: Wed Jun 03, 2009 9:15 am

Re: Problem Updating Metadata Index of an Archive

Postby asmecher » Wed Jun 03, 2009 9:36 am

Hi calitom,

Hmm -- that message is coming back from your data provider. What date granularity does it support?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Problem Updating Metadata Index of an Archive

Postby calitom » Wed Jun 03, 2009 10:10 am

Thank you for your response!

The granularity is date(YYYY-mm-dd)
Here is the url i want to harvest:
http://oai.cairn.info/

I want to harvest the records, this link :
DUBLIN CORE - Liste des notices (records) d’une revue
calitom
 
Posts: 4
Joined: Wed Jun 03, 2009 9:15 am

Re: Problem Updating Metadata Index of an Archive

Postby asmecher » Wed Jun 03, 2009 10:29 am

Hi calitom,

Unfortunately, the harvester doesn't currently support that granularity, though we do have a Bugzilla entry in place as a feature request at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3110. If you have any development resources, please consider contributing this as a feature. Otherwise, it may be possible to add a quick work-around.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Problem Updating Metadata Index of an Archive

Postby calitom » Thu Jun 04, 2009 12:04 am

Ok,

If i want to add the granularity i want (YYYY-mm-dd), which file have to be modified?
calitom
 
Posts: 4
Joined: Wed Jun 03, 2009 9:15 am

Re: Problem Updating Metadata Index of an Archive

Postby calitom » Thu Jun 04, 2009 2:51 am

Ok,

i've riched what i wanted to do...
If someone is interested :
I've modify the file :"plugins/harvester/oai/OAIHarvesterPlugin.inc.php"
I've updated the function : "readUpdateParams" at lines 265 and 266...

Previously the script was :
Code: Select all
if (!empty($dateFrom)) $returner['from'] = OAIHarvester::UTCDate($dateFrom);
if (!empty($dateTo)) $returner['until'] = OAIHarvester::UTCDate($dateTo);


And i change this two lines into :
Code: Select all
if (!empty($dateFrom)) $returner['from'] = substr(OAIHarvester::UTCDate($dateFrom),0,10);
if (!empty($dateTo)) $returner['until'] = substr(OAIHarvester::UTCDate($dateTo),0,10);


Like this the date given is granularity (YYYY-mm-dd)...

Thank you for your help.

calitom
calitom
 
Posts: 4
Joined: Wed Jun 03, 2009 9:15 am


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 1 guest