Identifier import

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: 2
Joined: Wed Aug 18, 2004 2:13 pm

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?


Andrew Hankinson

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.


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?

Return to “Open Harvester Systems Support and Development”

Who is online

Users browsing this forum: No registered users and 1 guest