OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



ERROR INDEXING 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.

ERROR INDEXING ARCHIVE

Postby jbdj » Thu Sep 15, 2005 2:53 pm

Hi,

Whenever I try to index an archive, I get the following message :

Indexing Site ... done (0 new/updated records indexed)

I have applied the patch mentioned in another post :

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; 


But this does not seem to help. The archive is found as the correct e-mail, repository name, etc. is displayed on the "about page".

Do you have any idea of what could be the problem.

Thanks,

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

Postby kevin » Fri Sep 16, 2005 6:52 pm

If you could post the URL to the OAI archive in question, that might be helpful.
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

Postby jbdj » Sun Sep 18, 2005 2:08 pm

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

Postby kevin » Sun Sep 18, 2005 10:10 pm

If you look at the ListRecords response (or test with the OAI Repository Explorer), you'll see that some of the article abstracts have malformed UTF-8:

Code: Select all
XML Parsing Error: not well-formed
Location: http://calvados.c3sl.ufpr.br/academica/oai/index.php?verb=ListRecords&metadataPrefix=oai_dc
Line Number 632, Column 30:três monoterpenos: a-tujeno, -pineno e mirceno e dez sesquiterpenos: isoledeno, -elemeno, -
-----------------------------^
kevin
 
Posts: 338
Joined: Tue Oct 14, 2003 8:23 pm

Postby jbdj » Mon Sep 19, 2005 7:39 am

Where can I see this code below?

Code: Select all
XML Parsing Error: not well-formed
Location: http://calvados.c3sl.ufpr.br/academica/oai/index.php?verb=ListRecords&metadataPrefix=oai_dc
Line Number 632, Column 30:três monoterpenos: a-tujeno, -pineno e mirceno e dez sesquiterpenos: isoledeno, -elemeno, -


How can I fix it?


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

Postby jbdj » Mon Sep 19, 2005 4:26 pm

I fixed the stranger caracters, but the problem continues.


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 2 guests