Re: [greenstone-users] Subcollections & Preferences

From Katherine Don
DateFri, 25 Jun 2004 11:46:54 +1200
Subject Re: [greenstone-users] Subcollections & Preferences
In-Reply-To (s0d6e14a-014-apps-niwi-knaw-nl)
Hi Rene

You can edit the gsdl/macros/ file to get rid of that annoying bug:

In javascript functions updatel(), updatev(), updatew(), add the line

while (href.match(/&cc=[\w]+/)) href = href.replace(/&cc=[\w]+/, "");

just before the last line of each function:
location.href = href + getargs();

And this should fix it. Let me know if it doesn't.

As for question 2, I don't know. Search history uses the z arg (user id)
as the key to look up previous history - I am not sure how that gets
set. But if you get a new z value each time you log on to the
collection, then you will have no search history by default because it
can't find the old stuff.
If you explicity want to clear the history, you can use
delete_all_history_info (const text_t &userid, const text_t &gsdlhome);
from src/recpt/historydb.h
But I am not sure where you would want to call it from.

Katherine Don
Rene Schrama wrote:
> Hi,
> I am currently running a Greenstone 2.41 collection under Windows XP
> (local library) and the same collection under Windows 2000/IIS (web
> library). There are 2 subcollections, srmv1 and srmv2. Problem is that,
> whenever I change a preference (any preference), the string
> "&cc=srmv1&cc=srmv2" is appended to the URL, making it bigger and bigger
> until the browser finally stops responding. The online vesion can be
> found here:
> Question number 2 is about the search history. I have seen several
> collections that seem to clear the history at logon (i.e. whenever I
> reopen the collection) but I can't figure out how this was done. Any
> ideas? (btw these collections were running under Unix/Apache)
> Rene
> _______________________________________________
> greenstone-users mailing list