Re: [greenstone-devel] greenstone preferences and history in Greek

From Katherine Don
DateFri, 22 Jul 2005 15:30:36 +1200
Subject Re: [greenstone-devel] greenstone preferences and history in Greek
Hi Marios
> Firstly, when I perform a search for something in Greek, the search history
> does not present the Greek characters correctly.

This is a bug. I have fixed it for the next release. If you want to fix
your version and you have a C++ compiler, then here is the fix:
in src/recpt/queryaction.cpp, in method save_search_history

text_t formattedquery =cgi_safe(qstring);
query += "&q="+formattedquery;

query += "&q="+qstring;

then recompile the code.
> Secondly, when I go to the "Preferences" option and choose "ignore lower
> case/ upper case" this function does not appear to work or respond.
Are you clicking the set preferences button? How are you leaving the
preferences page? You can't use the back button, you must use one of the
navigation bar buttons to go to the search page, otherwise preferences
will not be changed.

Does case folding work for other languages, eg english?

> Thirdly, how can the choices I make in the "Preferences" option work by
> default, without having to choose them each time I want to perform a search?
You can set the default values for preferences in etc/main.cfg:
# sets the default value for k (case folding) to 1 (casefolding on)
cgiarg shortname=k argdefault=1

> Finally, at the Librarian Interface when I choose the "Enable Advanced
> Searches" option and then "Form", whatever I try to search for in Greek will
> not produce any results.

What encoding are you entering the query terms in? If it's not utf-8,
then try setting the encoding (on the preferences page) to greek. does
it work now?

Katherine Don
> Thanks
> Marios
> Your immediate response to the above queries would be greatly appreciated.
> Thanking you in advance for your kind cooperation.
> _______________________________________________
> greenstone-devel mailing list