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
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

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: 8676
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: 8676
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: Bing [Bot] and 2 guests