|Date||Sun, 26 Jun 2005 20:33:18 +1200|
|Subject||[greenstone-users] Referencing & querying the search engine|
Thanks for those who have answered my questions – very
helpful and deeply appreciated. I’m quite impressed with how quickly a
collection can be built up in Greenstone, kudos to all you people up there at
I have a few more questions, which I can’t seem to resolve.
(1) I’d like to organize my collection, so the user can see record information either before they look at the record or as a separate link. At present, the only way I can think of to show the information is to edit the DocumentText or DocumentHeader fields so the information is given either at the top or bottom. Is it (easily) possible to make this a separate page?
(2) As part of the above, I’d like to have the author name as a link to a query which gives all titles by that author.
I thought I could do that like this (a section from my DocumentHeader)
<td align=right valign=top width=120><b>Author:</b></td>
<td align=left valign=bottom width=325><a href=/gsdlmod?e=d-00000-00---off-0gsarch--00-0----0-10-0---0---0direct-10---4-----dfr--0-1l--11-en-50---20-about-Sergey+Yevtushenko--00-0-1-00-0--4----0-0-11-10-0utfZz-8-00&a=q&q=[cgisafe:ref.Author]&h=Author>[ref.Author]</a></td>
<td align=left valign=bottom width=325>[ref.Author]</td>,
<td align=right valign=top width=120></td>
<td align=left valign=bottom></td>}
Unfortunately this doesn’t work, it just brings up the search page without doing anything else. I had a look at Katherine’s example of how to do a httpquery in the archives (https://list.scms.waikato.ac.nz/mailman/htdig/greenstone-users/2004-July/001283.html) and this wouldn’t work for me either. Any ideas?
(3) As part of my metadata, I would like to include links to other documents in the collection, by their title. So I’d have a field called references and use an expression similar to the above (if I could get it to work) which I would like to automatically search for that title, and if it brings back a unique record to pull it up directly. Is there any more direct way to refer to other documents or would this be the way to go?
(4) I store the author’s name in a single field as LastName, FirstName. How can I extract that and organize it as I like. Sometimes I’d like to write something like “[Title] by [FirstName] [LastName]”. At present, I have two fields for author, one being FirstName LastName, the other being LastName, FirstName which seems a poor solution.