You are viewing the PKP Support Forum | PKP Home Wiki

SRW/U, OAI-PMH output Plugins

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.

SRW/U, OAI-PMH output Plugins

Postby thornleyk » Tue Nov 07, 2006 1:35 pm


Our project http://www.oarinz.ac.nz are devloping a number of plugins for the PKP Harvester

OAI-PMH data provider (an OAI stream out of the harvester)

SRW/U web service for searching the harvester

and some more...

To aid our devlopment we could do with some additions to the current schema objects.

Addition of some extra vars

metaDataPrefix (e.g oai_dc for the DublinCore Schema)
namespace (e.g. http://purl.org/dc/elements/1.1/ for the DublinCore Schema)
namespacePrefix (e.g. dc for the DublinCore Schema)

And some methods to return them


I suppose these extra vars could be stored in the local file for ease of update? or in the Database?

If I could get some information on how I should proceed so as to not conflict with the core devlopment and have these accepted with the PKP project it would be very much appreciated.

On another note it would be really useful if i could get a XMLoutput method accepted to the Record Object that outputs the Record as XML with associated namespace etc... I am devloping a reusable object that does this for the SRW/U and OAI plugin

Kristian thornley
Posts: 9
Joined: Tue Oct 03, 2006 1:00 pm
Location: CPIT, New Zealand

Postby asmecher » Wed Nov 08, 2006 4:40 am

Hi Kristian,

Schemas are mapped to metadata prefixes using the Schema Map -- see registry/schemaMap.xml. This is done because the Harvester isn't wedded to OAI/XML as a delivery method. In the same spirit, I'd suggest using a PHP approach, such as storing this sort of information in archive_settings, rather than adding this information directly to the database.

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

SearchDAO Change Request

Postby thornleyk » Mon Nov 13, 2006 8:15 pm

Hi Alec,

Cheers for that. I was digging around for ages this will do just fine.

Another question would it be possible to modify SearchDAO at line 88?

In order for us to adhear to CQL level 1 we need to be able to query missing letters "?" in CQL "_" in MySQL so I have added to the conditional at line 88:

Condition was

if (ststr($phrase[$i], '%') === false)

Condition is now:

if ((ststr($phrase[$i], '%') === false)&&(ststr($phrase[$i], '_') === false))

Would it be possible to have this included in the main project?

Posts: 9
Joined: Tue Oct 03, 2006 1:00 pm
Location: CPIT, New Zealand

OARINZ Harvester

Postby thornleyk » Tue Feb 27, 2007 9:59 pm

Hi All

The OARINZ Harvester has been implemented and is currently harvesting available New Zealand Research.

The Harvester uses the PKP Harvester project along with plugins developed by the OARINZ project

The harvester can be accessed via http://harvester.oarinz.ac.nz

The following plugins were developed for interoperability

SRW/SRU Service

SRW/SRU Clients

OAI Provider


Fedora Bridge

These are all available from the site via: http://harvester.oarinz.ac.nz/index.php/about

Let me know if you have any issues or questions
Posts: 9
Joined: Tue Oct 03, 2006 1:00 pm
Location: CPIT, New Zealand

Postby asmecher » Wed Feb 28, 2007 11:02 am

Hi Kris,


We're hard at work on OCS at the moment, but I'll make a note to assess these plugins when I have a chance. Perhaps we can discuss including them in the next release of the Harvester.

Alec Smecher
Public Knowledge Project Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 0 guests