Re: [greenstone-users] Adding hyperlink to ISIS record

From Michael Dewsnip
DateThu, 06 May 2004 12:15:50 +1200
Subject Re: [greenstone-users] Adding hyperlink to ISIS record
In-Reply-To (6-1-0-6-0-20040505090838-025c55c8-10-250-1-3)
Hi Renate,

> After a lot of testing and trying I was able to get my CD/ISIS database
> into Greenstone. All of the records have a Web address, I want theses to
> be clickable when the record is displayed.
> I tried to edit a record in doc.xml, and then rebuilt it. However, the
> record still does not display the link. How and where should this be done.

To start with, you need to know what metadata element the web address has
been put in. This will be the field name in your CDS/ISIS database, but with
spaces removed -- so, if your field is called "Web Address" then the ISIS
plugin will add "WebAddress" metadata. You can check this by looking at a
doc.xml file after importing your collection -- you should see Metadata
elements with this name.

Once you know this, it is fairly simple to get what you want using format
statements. If you have a very basic VList format like:

<td valign=top>[link][icon][/link]</td><td>[Title]</td>

you can add a link to the web address by adding something like
Here is a <a href="[WebAddress]">link</a> to the thesis

<td valign=top>[link][icon][/link]</td><td>[Title]<br>Here is a <a
href="[WebAddress]">link</a> to the thesis</td>

> I also notice that the keyword and language fields which hold multiple
> occurrences, are not displayed, but when I have a look at the ISIS records
> these are present. What should the format for Greenstone be?

For each metadata element the ISIS plugin also adds [Element.all] metadata,
which contains all of the values for that metadata element joined together.
For example, if you have two pieces of Keyword metadata, [Keyword.all] will
be both of these concatenated together (and separated by <br>, or whatever
you have set the "-entry_separator" option to).

Or, you can use Greenstone's general, but ugly, method for doing
this: [sibling(All'<br>'):Keyword]

Hope this helps.