DateList will automatically put years across the top if there are enough
documents - there need to be at least 40 documents for this to occur. I think
that it will make one link for each year to start with, but will try and compact
the lists under each year - so years that only have a few documents in each will
get squashed together into eg 1990-1995 type list.
for the second point, you will need to edit the C++ source in order to use your
function to process the querystring before submitting the query form - look at
query.dm in gsdl/macros.
otherwise, you should call it from queryaction.cpp or in one of the methods in
querytools.cpp that is used by queryaction.cpp. (in gsdl/src/recpt)
hope this helps,
> As shown on the computists' weekly's demo on www.nzdl.org I am just
> wondering how could I make a hList of years on the top of the page. Right
> now, I only have a VList sort of arrangement on display. Is it that I only
> need to change the format string to make the HList type of display. Or I need
> to do something else to make that become possible?
> My second questions is that I write a little program that would process
> all the input by the user. For example, if the user types socialism in the
> textbox for searching. My program would add the word "anti-". so now, the
> search will be actually on the word: anti-socialism, instead of socialism, the
> word the user input. How could I add this program into Greenstone, so it
> would run in the background without user's notice? I don't think I can achieve
> this by changing some macro files, can I? or do I have to do something with
> the original C++ source code?
> thanks for the advice,
> Kim Hsieh
> greenstone-users mailing list