RE: [greenstone-users] heirarchy ifor documents not sections

From Don Gourley
DateTue, 18 Jul 2006 09:33:52 -0400 (EDT)
Subject RE: [greenstone-users] heirarchy ifor documents not sections
In-Reply-To (20060718022036-0DFB54AC4B-mail-wrlc-org)
On Tue, July 18, 2006 12:20 pm, Cao Minh Kiem wrote:
> Hi, Don Gourley,
> I have looked at your collections and found that it is very nice. Your
> appoarch is very interesting. Could you let us know how can we access others
> documents in side the collection through a hyperlink?

I'm not sure if this answers your question, but the basic form
of a link to a document is:

If you have the HASHidentifier of the other document in a metadata
field, say DC.Relation.ispartof, then you can put something like
this in your DocumentText format:

<a href=library?a=d&c=collection&d=[DC.Relation.ispartof]>Parent doc</a>

However, this will lose any preferences and settings that the user
has specified for this session. To avoid that, you can include a
macro that is replaced with the current e= option string...something
like this:

<a href=library?a=d&e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-preferences-Don+Gourley--00-0-1-00-0-0-11----0-0-&d=[DC.Relation.ispartof]...