ohs oai interface

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.
gnubik
Posts: 5
Joined: Tue Dec 14, 2010 1:33 am

ohs oai interface

Postby gnubik » Mon Jan 10, 2011 1:51 am

dears,
i'm playing with ohs, and works finely harvesting remote repositories.
i want to expose again the harvested records with the ohs oai,
but what i get, (oai_dc or other metadata format),
are simply the identifier, datestamp and setSpec.

there is a way to expose the original harvested oai_dc?
thank you

--- example oai response
<record>
<header>
<identifier>oai:{baseurl}:record/1</identifier>
<datestamp>2011-01-10T08:48:24Z</datestamp>
<setSpec>1</setSpec>
</header>
<metadata>
</metadata>
</record>

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: ohs oai interface

Postby asmecher » Mon Jan 10, 2011 11:13 am

Hi gnubik,

Yes, that should be happening already. Have you modified the harvester software? What version are you using? Did you upgrade it from a previous release, or is it a clean install of the current version?

Regards,
Alec Smecher
Public Knowledge Project Team

Rudi
Posts: 2
Joined: Wed Apr 18, 2012 3:32 am

Re: ohs oai interface

Postby Rudi » Tue Apr 24, 2012 6:05 am

Hi,

I am experiencing the same problem as gnubik (in his post of Jan 2010). Harvesting remote repositories in OHS works fine (so far), as does browsing an archive. However, when accessing the OAI-interface (for OHS itself) with 'verb=ListRecords&metadataPrefix=oai_dc', for example, only OAI Identifier, Datestamp and setSpec are displayed.

My configuration (clean install, no modifications):

Open Harvester Systems 2.3.1.0
OS platform Linux (Ubuntu 10.04.2 LTS 64-bit)
PHP version 5.3.2-1ubuntu4.14
Apache version Apache/2.2.14 (Ubuntu)
Database driver mysql
Database server version 5.1.61-0ubuntu0.10.04.1

Apart from only displaying the three fields stated above, I also get an error message in Apache log:

[Tue Apr 24 11:54:09 2012] [error] [client nnn.nnn.nnn.nnn] harvester2 has produced an error\n Message: WARNING: Parameter 1 to OAIMetadataFormat_DC::toXml() expected to be a reference, value given\n In file: /var/www/harvester2/classes/oai/harvester/ArchiveOAI.inc.php\n At line: 103\n Stacktrace: \n Server info:\n OS: Linux\n PHP Version: 5.3.2-1ubuntu4.14\n Apache Version: Apache/2.2.14 (Ubuntu)\n DB Driver: mysql\n DB server version: 5.1.61-0ubuntu0.10.04.1, referer: [http://xxx.xxx.xxx.xxx/harvester2/index.php/oai]

Am I overlooking something?

Regards,

Rudi

asmecher
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm
Contact:

Re: ohs oai interface

Postby asmecher » Tue Apr 24, 2012 9:23 am

Hi Rudi,

You're probably encountering http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7157; try applying the patch there to see if it corrects the problem.

Regards,
Alec Smecher
Public Knowledge Project Team

Rudi
Posts: 2
Joined: Wed Apr 18, 2012 3:32 am

Re: ohs oai interface

Postby Rudi » Fri Apr 27, 2012 5:00 am

Hi Alec,

That seemed to do the trick. Thanks! I have another issue (probably minor) but I will have to post it at a later moment as I will be out of office the coming week.

Best regards,

Rudi


Return to “Open Harvester Systems Support and Development”

Who is online

Users browsing this forum: No registered users and 1 guest