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
"/gsdlmod", "d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-jens+wille--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00" and "gsarch" are Greenstone-only
inventions -- they don't mean anything to an OAI server. "gsarch"
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

"/cgi-bin/library?a=d&c=$collection&d=$OID"

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

Hope this makes sense,

Michael

>I'm trying to include a url for the document ala
>http://www.openarchives.org/OAI/openarchivesprotocol.html#dublincore
>
>In doc.pm I inserted the following at line 709
> $self->set_metadata_element ($self->get_top_section(),
>"Identifier^url",
>"/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-jens+wille--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=d&c=gsarch&d=$OID");
>
>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
>greenstone-devel@list.scms.waikato.ac.nz
>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>
>
>