Re: [greenstone-users] A double (or triple) whammy.Severalpent up questions!

From Gavin Spomer
DateMon, 07 May 2007 07:38:10 -0700
Subject Re: [greenstone-users] A double (or triple) whammy.Severalpent up questions!
Whoops. My mistake. I found that not only is _homeextra_ hard coded in, but you can't override it. I tried. What I did for my home page is edit the


The requested page could not be found. Please use your browsers 'back' button or the above home button to return to the Greenstone Digital Library. macro. I removed the _homeextra_ macro from it and made my own macro for displaying collections called _collections_.

Glad things are working out for you. I have gotten a lot of help from this list myself, so when I have the opportunity to help someone else I am more than happy to oblige. :) The home preferences thing still makes me wonder why no one (except you and I) have said anything about it on the list. It's perplexing to me.

- Gavin

>>> Julian Fox <> 05/05/07 12:27 PM >>>
Am I right in thinking that _homeextra_ macro is undefined, empty? I
thought I might be looking fpr a macro that indicated what size the
images are etc., but other than the reference to it in I can't
actually find that macro.
The 'preferences' solution worked immediately of course - thanks. I'm
glad I resolved that one.

Gavin Spomer wrote:
> My apologies in advance if this double-posts to the list. I'm guessing it didn't go through the first time as I forgot to
> remove the [SPAM] markings that our university mail server "glues" to certain inbound email subject lines. Sorry!
> (1) I'm running collections in five or six languages - I've got the home
> page with a few lines in each of those languages (en (default), it, es,
> pt, ru, ko) which very quickly explains to people what to do for basic
> things. Why is it they can't go to 'preferences' (the label and the link
> is there of course and goes to the preferences page) from that home page
> and change ot their language? It just doesn't work at that point. If
> they choose a collection (any language) and choose a language (any) once
> they go to preferences from that collection, then it works. I'd prefer
> they could operate their language choice from the home page
> 'preferences' click. Could anyone tell me how we can achieve that? Or
> if not, why not?
> This perplexed me for quite some time too. It's a small bug that I discovered and was at a loss as to why I couldn't find
> anyone else mentioning this in the list archives. I took me a LONG time to figure out what was going on. Following is the
> quick fix. Near the end of the file, change the PREFERENCES macro to:
> preflink_ {PREFERENCES}
> Short answer why this works: The homepreferences page needs to have a qt (query type) cgi argument value passed to
> it. Otherwise, it "breaks" the javascript.
> (3) Oh - just one more, if I may? The images for the 'home' and 'about'
> pages. Can I get the 'home' page image for the collections to be much
> smaller? It seems to default to the larger size even if I try to link
> to the smaller size, and I'd like even smaller ones if I could - can I?
> Where do I make that adjustment?
> Override the _homeextra_ with your own homemade html code. Then you can have the images in any size, position or
> style you please.
> Hope this helps! :)
> Gavin Spomer
> Systems Programmer
> Brooks Library
> Central Washington University