Allowing repetition of OAI base URL

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

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.
Posts: 17
Joined: Fri May 18, 2007 6:34 am

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: 10015
Joined: Wed Aug 10, 2005 12:56 pm

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/ 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

Return to “Open Harvester Systems Support and Development”

Who is online

Users browsing this forum: No registered users and 3 guests