OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



nothing to harvest

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.

nothing to harvest

Postby kim » Thu Apr 08, 2004 5:08 am

I download the PKP Open Archives Harvester 1.0.1 , on a Linux Redhat 9.0 distrib.

Install is good, I configure correctly the harvester by menu admin, but when I launch "update metadata index" for indexing my archive repository , it take few minutes and nothing.....
and there is results : Update Metadata Index Indexing Thèses en Lignes - Université Lyon 2 ... done (0 new/updated records indexed)

What's happen..???? I don't undestand why pkp oah don't running better....
kim
 

Postby kevin » Thu Apr 08, 2004 12:03 pm

This patch should resolve the problem with your archive:

Code: Select all
Index: include/harvester.inc.php
===================================================================
RCS file: /cvs/harvester/include/harvester.inc.php,v
retrieving revision 1.12
diff -u -r1.12 harvester.inc.php
--- a/include/harvester.inc.php 23 Feb 2004 00:50:03 -0000      1.12
+++ b/include/harvester.inc.php 8 Apr 2004 19:02:39 -0000
@@ -160,11 +160,11 @@
 
        if($protocol == 2) {
                // OAI 2.0
-               $dc_metadata = $record[metadata]['oai_dc:dc'];
-
-               if(!is_array($dc_metadata)) {
-                       $dc_metadata = $record[metadata]['oaidc:dc'];
-               }
+               $dc_metadata = isset($record[metadata]['oai_dc:dc'])
+                       ? $record[metadata]['oai_dc:dc']
+                       : (isset($record[metadata]['oaidc:dc'])
+                               ? $record[metadata]['oaidc:dc']
+                               : $record[metadata]['dc']);
 
                if(!is_array($dc_metadata)) {
                        return false;
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

Postby Guest » Fri Apr 09, 2004 12:42 am

Thank for your answer, but what I do with this patch ?? how or what file I must change his code.? ? ?


kevin wrote:This patch should resolve the problem with your archive:

Code: Select all
Index: include/harvester.inc.php
===================================================================
RCS file: /cvs/harvester/include/harvester.inc.php,v
retrieving revision 1.12
diff -u -r1.12 harvester.inc.php
--- a/include/harvester.inc.php 23 Feb 2004 00:50:03 -0000      1.12
+++ b/include/harvester.inc.php 8 Apr 2004 19:02:39 -0000
@@ -160,11 +160,11 @@
 
        if($protocol == 2) {
                // OAI 2.0
-               $dc_metadata = $record[metadata]['oai_dc:dc'];
-
-               if(!is_array($dc_metadata)) {
-                       $dc_metadata = $record[metadata]['oaidc:dc'];
-               }
+               $dc_metadata = isset($record[metadata]['oai_dc:dc'])
+                       ? $record[metadata]['oai_dc:dc']
+                       : (isset($record[metadata]['oaidc:dc'])
+                               ? $record[metadata]['oaidc:dc']
+                               : $record[metadata]['dc']);
 
                if(!is_array($dc_metadata)) {
                        return false;
Guest
 

Postby Guest » Fri Apr 09, 2004 1:14 am

Thank

I modify the harvester.inc.php and it's better, the harvest run now !!!

thank
Guest
 

Postby jbdj » Sat Sep 10, 2005 5:26 pm

Hi,

I'm with same problem, what did you do for correct the problem?



JBDJ
jbdj
 
Posts: 16
Joined: Sat Feb 05, 2005 7:29 pm


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 0 guests