Re: HTML in Greenstone

From Stefan Boddie
DateTue, 4 Feb 2003 16:04:51 +1300
Subject Re: HTML in Greenstone
In-Reply-To (OFBA3B8568-901BBC83-ON69256CBD-00118FA2-69256CBD-00118FC6-ntu-edu-au)
Hi Stephen,

>
> I am just embarking on editing my macro(.dm) files to customise them for
> our library; I was wondering - do you - like me - edit your .dm files by
> hand taking the html snippets from a page generated in dreamweaver?
>
> I am finding this a frustrating process; has anyone found a quicker/easier
> way to do it?
>

Can't help much with this, sorry. Can't think of any easier way than cutting
and pasting the HTML then editing it to fix all the image URLs etc. Kind of
slow and tedious, as you say.

> I have also tried to replace the graphic navbar with one using CSS; I was
> truing to make it wrap for smaller screens(or just in a smaller window);
> unfortunately some of the HTML is hardcoded and can't be changed from the
> macro files; has anyone been able to do this successfully? or; will the
> hardcoded HTML being moved into the macros for the next version of
> greenstone?
>

This is something we should fix but it won't happen for the next release.
Generally you can work around it though. For example, most pages use a
GSDL Error

, a

oops

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., and a
macro to make up a page. The

oops

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 normally includes SearchSubjectsFromDates which is generated from within the
C++ code. You could avoid using the SearchSubjectsFromDates macro altogether by
removing it from all your

oops

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. macros. It can then be replaced by the
hard-coded html to show your CSS nav bar.

> And finally, will the cd building process cope with long filenames?, our
> users are unlikely to be using win3.1 So I was wondering if GS would cope
> if I tried it with a CD building session?
>

Should be fine I think. Let me know if you have any problems.

> Regards,
>
> Stephen De Gabrielle
>
> AraDA Project
> NTU Library
> Darwin, AUSTRALIA
> +61 8 8946 7009
>
> --
> PS I originally posted the first part of this email to the regular list
but
> got no response - my apologies if greenstone_devl is the wrong place.
>

No, greenstone_devl is probably the right list for this.

regards,
Stefan.