Re: [greenstone-users] Need help in user interface part

From Richard Managh
DateThu, 26 Jan 2006 11:55:41 +1300
Subject Re: [greenstone-users] Need help in user interface part
In-Reply-To (20060125055336-48048-qmail-web32205-mail-mud-yahoo-com)
Hi Jasmine,

I'll deal with 2) first.

> 2) I would like the frame (wavy green design) to be removed but i
> couldn't find any solution to it.

Looking at the html for the pages in the collection reveals

<body bgcolor="#ffffff" text="#000000" link="#006666"
alink="#cc9900" vlink="#666633" background="/images/chalk.gif"

The background="/images/chalk.gif" specifies that wavy green design to
be the background image for the page.

using "grep" to search the main macro directory <greenstone install
dir>macros for the pattern chalk.gif


/home/fred/apps/greenstone/macros>grep chalk.gif {/gsdl/web/images/chalk.gif}


C:Program FilesGreenstonemacros>grep chalk.gif {/gsdl/web/images/chalk.gif}

reveals /gsdl/web/images/chalk.gif in

A quick look at to see the package that /gsdl/web/images/chalk.gif is in
shows it is in the Global package.

So, one way of removing this wavy image would be to put the following in
a Global package section of your


package Global

/gsdl/web/images/chalk.gif { }

overiding the httpiconchalk macro to contain nothing.

> 1) I tried shfiting the header image(icon) below the banner but still
> doesn't work. I had also tried refering to the reference given.

> 3) The top navigational bar (help, preference) i tried to shift it
> down together with the navigation bar that is placed after the header
> image. It still stay at the same position (top right corner)

Katherine has already suggested looking at the

macro in

This area of the page is defined in the

macro in
-- you'll need to change this. I recommend you read if you haven't

If you look in <greenstone install dir> you will see
this pagebanner macro, it contains two macros, Greenstone Archives collection and
which are presumably the two images you want to move in
your items 1) and 3)

We care about the navigation bar as well, and another grep of the macros
directory reveals SearchSubjectsFromDates in

In near the macro definition for SearchSubjectsFromDates is

SearchSubjectsFromDates {}

we can also see below that:

# The following is useful if collection specific macro. Override

to be empty if you don't want the navigation bar to
# appear in the standard place, and then specify SearchSubjectsFromDates elsewhere
# in a collection specific macro file(s) to be where you do want it.
{ SearchSubjectsFromDates }

So this gives us another tool to use in changing the relative position
of the navigation bar on pages in the collection.

Remember from my previous email, when I talk about how all of the pages
in greenstone are made up of a GSDL Error

then a


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 then a

Well, if we look at the GSDL Error

macro in <greenstone install

GSDL Error

GSDL Error


we can see the

macro in the GSDL Error
macro. You want the
SearchSubjectsFromDates above this. So lets put it all together:

In your under package Style (as this is where GSDL Error

defined) we need to override the default header with

package Style

GSDL Error

GSDL Error


Now we have a navigation bar above those images, but now we have two
navigation bars. So we use that

macro to remove the default one, with in your under package Global

package Global


Now you should have the navigation bar above those two images. This may
not be exactly what you want, but its a start.

Hope this helps,

DL Consulting
Greenstone Digital Library and Digitisation Specialists

(from previous mail)

I realise that the icon (About,Search, etc) were always at the
> side. But for my design I wanted to shift it down to like this:
> --------------------------
> | Banner |
> --------------------------
> -----------------About <---position of icon
> XXXXXXXXXXXXXXX <--navigation bar
> How do i change the posittion of that icon and will it affect my
> naviation bar as well? My Home, Preference and Help link will be
> shifted to naviation bar as well together with the Search and
> part. How do i do that?

This area of the page is defined in the

macro in
-- you'll need to change this. I recommend you read if you haven't

Thank you

Jasmine (Sorry, I do not have any in-depth knowldge on html and macros)