OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Identifier import

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.

Identifier import

Postby ahankins » Wed Aug 18, 2004 2:15 pm

I have Dspace set up and working properly. However, I have a custom "Identifier" ( identifier.other ) that Harvester seems to be looking at, instead of looking at ( identifier.uri ) Is there any way to fix it?

Is there anybody on this board?

Thanks,

Andrew Hankinson
ahankins
 
Posts: 2
Joined: Wed Aug 18, 2004 2:13 pm

Fix / Hack

Postby ahankins » Fri Aug 20, 2004 8:42 am

I've hacked a fix together for this - it's not pretty, but it should do the job.

in harvester.inc.php:

Code: Select all
// record identifier
        if(is_array($dc_metadata[identifier])) {
                // $metadata[identifier] = $dc_metadata[identifier][0];
                $txt = 'http';
                $metadata[identifier] = strstr(join("; ", $dc_metadata[identifier]), $txt);
        } else {
                $metadata[identifier] = $dc_metadata[identifier];
        }


This code will only accept identifiers starting with 'http', which should make the links display properly on the record pages.

Anyone have a better way to do this?
ahankins
 
Posts: 2
Joined: Wed Aug 18, 2004 2:13 pm


Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 4 guests