Re: [greenstone-devel] document link metadata for OAI

From Michael Dewsnip
DateWed, 18 May 2005 10:56:02 +1200
Subject Re: [greenstone-devel] document link metadata for OAI
In-Reply-To (595b9ab205051620542fc0218d-mail-gmail-com)
Hi Stephen,

I can see what you're trying to do, but the problem is that the library
and oaiserver programs are really quite separate.

It is best if you think of the OAI server as a stand-alone program that
just happens to use the Greenstone collection server code. Things like
"_gwcgi_", "_compressedoptions_" and "_cgiargc_" are Greenstone-only
inventions -- they don't mean anything to an OAI server. "_cgiargc_"
doesn't make sense in the context of an OAI server, for example -- OAI
servers don't know about collections.

You'll need to remove all macros from your Identifier^url metadata
value. Something like


should work without being too hard-wired (assuming you know the
collection name at this point).

Hope this makes sense,


>I'm trying to include a url for the document ala
>In I inserted the following at line 709
> $self->set_metadata_element ($self->get_top_section(),
>This works a treat for including the link on the webpage - but
>oaiserver doesn't parse the macros
>Before I go any further -has anyone already done this?
>Stephen De Gabrielle
>greenstone-devel mailing list