[greenstone-devel] Reproducing drop down navigation menus in Greenstone

From Daniel Paul O'Donnell
DateFri, 08 Jul 2005 00:51:44 -0600
Subject [greenstone-devel] Reproducing drop down navigation menus in Greenstone
I've gone through the archives and documentation, and while I can find
a number of almost similar examples to this problem, I can't find
anything that does the crucial thing I need to answer the problem.
Please excuse me if that's because the answer is so obvious nobody's
ever asked. I have gone over it with a real expert, though.
Basically, the issue is that in an HTML document set, I use drop down
menus with javascript to navigate between different "views" of a text.
There can be as many as 12 different "views" so a list of links is
inefficient; it also doesn't get the idea across that all 5 to 12
documents are actually the same text with different features emphasised.
Here is the code I use in my HTML:

<form action="" class="changeView">
<select name="choices" size="1"
<option value="index.htm">Reading text</option>
<option selected="selected" value="significant.htm">Significant
<option value="substantive.htm">Substantive variants</option>
<option value="orthographic.htm">Orthographic variants</option>
<option value="analytic.htm">All readings (analytic)</option>
<option value="parallel.htm">All readings (parallel)</option>

The trouble in Greenstone is that these URLs on option@value are not
converted to hash addresses. It appears that what I need to do is write
a macro for the Javascript, but I confess I'm not sure how to do it so
the values are correctly converted to Greenstone hashes (if that's the
right term). There are a fair number of examples of almost identical
code in the archives, but none that seem to be used for arbitrary
addresses like this. Any suggestions?

Dr. Daniel Paul O'Donnell
Associate Professor of English
Director, Digital Medievalist Project
University of Lethbridge
Lethbridge AB T1K 3M4

vox: +1 (403) 329-2377
fax: +1 (403) 382-7191

URL: http://people.uleth.ca/~daniel.odonnell/

Digital Medievalist Project: http://www.digitalmedievalist.org/