You are viewing the PKP Support Forum | PKP Home Wiki

Allowing repetition of OAI base URL

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.

Allowing repetition of OAI base URL

Postby Harold » Wed Feb 06, 2008 9:37 am

This might be a little difficult to explain, but I'll try. We are harvesting from an OAI repository which is shared by several institutions. By default, the OAI data provider appears in the Harvester2 browse list. In this case, however, the institutions which contribute to the central repository would like their names to appear in the Harvester2 browse list, linked to their own subset of content, rather than the name of the single shared OAI data source.

We thought we could do this by registering each institution separately as a content provider in Harvester2 and then using set specs to collect the records on a per institution basis. The problem is that, in order to initiate this, each of the new institutional targets would need first to be registered with the same base OAI URL. Harvester2 Admin disallows registration of new archives with base URLs that are already in use.

Is it possible to override the default and make Harvester2 accept repeated instances of an OAI base URL in its Archives record? (I recognise that this is not an ideal situation, but we'd like to try and keep our content providers happy.)

Posts: 17
Joined: Fri May 18, 2007 6:34 am

Re: Allowing repetition of OAI base URL

Postby asmecher » Wed Feb 06, 2008 4:28 pm

Hi Harold,

The check for duplicate OAI URLs is in plugins/harvesters/oai/OAIHarvesterPlugin.inc.php near line 60:
Code: Select all
$form->addCheck(new FormValidatorCustom($form, 'harvesterUrl', 'required', 'plugins.harvester.oai.archive.form.harvesterUrlDuplicate', array(&$this, 'duplicateHarvesterUrlDoesNotExist'), array(Request::getUserVar('archiveId'))));
You should be able to allow multiple copies of the same OAI URL by commenting out this line.

Alec Smecher
Public Knowledge Project Team
Posts: 9946
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 1 guest