OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Does OHS Download XML Files?

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.

Does OHS Download XML Files?

Postby professionalspring » Fri May 31, 2013 12:55 pm

Where are they located?

I'm on the Windows Version 2.3.2.

Thank you!

Tommy
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby asmecher » Fri May 31, 2013 1:08 pm

Hi Tommy,

Do you mean OAI Static Repositories? Or something else? Please describe what you need in more detail and I'll see if I can provide some guidance.

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

Re: Does OHS Download XML Files?

Postby professionalspring » Fri May 31, 2013 1:22 pm

Hi Alex,

Thanks for the response.

I am looking to have the harvester retrieve metadata records in xml format. One record per file. I am also using jOAI Harvester, which does download these files.

Thanks for you help.

Tommy
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby asmecher » Fri May 31, 2013 1:39 pm

Hi Tommy,

What you're describing *almost* sounds like an OAI Static Repository, which is a repository of records stored in an XML file. However, I've never heard of one that contains one record per file; they typically contain numerous records together in one file. OHS does support OAI Static Repositories. If there are multiple files to fetch, how are they specified to the harvester? If there's a single file, it can be given to OHS as a URL.

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

Re: Does OHS Download XML Files?

Postby professionalspring » Fri May 31, 2013 1:56 pm

So does that mean simply select the option checkbox 'This is an OAI Static Repository' under Edit Archive?

When doing that I notice that it doesn't like my base URL.
Errors occurred processing this form:

Not well-formed (invalid token)


Any ideas?

Thanks,

Tommy
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby professionalspring » Fri May 31, 2013 2:01 pm

To answer your question " If there are multiple files to fetch, how are they specified to the harvester?"

It isn't necessary for individual files as I stated before, but that is how jOAI works.
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby asmecher » Fri May 31, 2013 2:06 pm

Hi Tommy,

I suspect that isn't a valid OAI static repository. If the file is public, you could post a link here so I can check.

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

Re: Does OHS Download XML Files?

Postby professionalspring » Fri May 31, 2013 2:18 pm

By 'that' what do you mean?

Is a static repository something I download and install from PKP?
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby asmecher » Fri May 31, 2013 2:34 pm

Hi Tommy,

By "that" I mean the OAI URL you're giving to OHS that leads to the "Not well-formed (invalid token)" message you quoted above when you submit the form.

Static repositories are explained at the URL I linked above.

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

Re: Does OHS Download XML Files?

Postby professionalspring » Fri May 31, 2013 3:45 pm

Thanks, Alec.

Also, how can I separate the different sets that I have in one archive? Under Records, they are all shown under the archive, not separated or grouped.

-Tommy
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby asmecher » Fri May 31, 2013 3:56 pm

Hi Tommy,

You can register the same archive several times, each time harvesting a different set (or several sets).

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

Re: Does OHS Download XML Files?

Postby professionalspring » Mon Jun 03, 2013 2:33 pm

Hi Alec,

When I try to register the same archive and hit 'save' I receive this message:

" Errors occurred processing this form:

The specified OAI URL is already in use by another archive."

I have one base url and several different collections with different set IDs.

Thanks,

Tommy
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby asmecher » Mon Jun 03, 2013 2:45 pm

Hi Tommy,

Ah, good point. You can disable this check by editing plugins/harvesters/oai/OAIHarvesterPlugin.inc.php and commenting out the line...
Code: Select all
$form->addCheck(new FormValidatorCustom($form, 'harvesterUrl', 'required', 'plugins.harvester.oai.archive.form.harvesterUrlDuplicate', array(&$this, 'duplicateHarvesterUrlDoesNotExist'), array(Request::getUserVar('archiveId'))));
Note that you'll probably run into trouble if you harvest the same record in multiple places. Note that I haven't tried this myself, but OTOH it should be fine.

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

Re: Does OHS Download XML Files?

Postby professionalspring » Mon Jun 03, 2013 2:46 pm

Thanks, I'll give it a go.
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Re: Does OHS Download XML Files?

Postby professionalspring » Wed Jun 05, 2013 12:29 pm

Hi Alec,

A couple questions...

Does OHS handle deleted records?

Does OHS count each page as a record/item? So a book item with 300 pages result in 300 records?

Thanks,

Tommy
professionalspring
 
Posts: 13
Joined: Fri May 31, 2013 10:12 am

Next

Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron