Re: [greenstone-devel] Bug in macrofiles, macros map, and CSS

From Stefan Boddie
DateTue, 03 Jun 2003 16:18:13 +1200
Subject Re: [greenstone-devel] Bug in macrofiles, macros map, and CSS
In-Reply-To (OF53779696-7A334BC1-ON69256D21-000B5015-69256D21-000B502B-ntu-edu-au)
Hi Stephen,

I'm just going over some old emails. Sorry it's taken so long.

Stephen.DeGabrielle@ntu.edu.au wrote:
> Hi,
> We just found a bug; in document.dm and 'package document' sections of new
> classifier definitions the html generated is incorrect; it lacks a closing
> angle bracket for the image element:
>
>>>_iconTitlepage_ {<img src="_httpiconhtitle_" width=_widthhtitle_
>>>height=_heighthtitle_}
>>>
>>>>from document.dm
>

You're right. Looks like every browser we've ever tried has managed to
sort this out for us and we've never noticed it. I've updated
document.dm in CVS.

>
> Does GS generate this macro code automatically ('translate.dm'?)
> OR do I need to edit this by hand to create valid html?
>

You'll need to edit it manually (or update your code using CVS if you
have the CVS version). The only automatic macro updating magic is for
translating the language specific files (english.dm, french.dm, etc.).

> It still works in IE but I don't know about other browsers.
>
> We are working on the interface and macrofiles; does anyone have 'map' of
> marcofiles and their dependencies? we currently make heavy use of searching
> the macros folder as a way of finding things.
>

Various projects are underway to help with editing the interface more
easily. For the moment you're stuck with searching through and editing
macro files by hand though.


Stefan.


> Stephen & Iwona
> NTU Library
>
> Example in document.dm
> #######################################################################
> # icons
> #######################################################################
>
> # title images - there should be one of these for each classification
> # supported by this receptionist
>
> _iconTitlepage_ {<img src="_httpiconhtitle_" width=_widthhtitle_
> height=_heighthtitle_}
> _iconTitlepage_ [v=1] {<h2>_texticonhtitle_</h2>}
>
> _iconListpage_ {<img src="_httpiconhlist_" width=_widthhlist_
> height=_heighthlist_}
> _iconListpage_ [v=1] {<h2>_texticonhlist_</h2>}
>
> _iconCreatorpage_ {<img src="_httpiconhauth_" width=_widthhauth_
> height=_heighthauth_}
> _iconCreatorpage_ [v=1] {<h2>_texticonhauth_</h2>}
>
> _iconSubjectpage_ {<img src="_httpiconhsubj_" width=_widthhsubj_
> height=_heighthsubj_}
>
>
>
> _________________________________________________
> Stephen De Gabrielle
> Digitisation Officer
> AraDA Project
>
> Northern Territory University Library
> http://www.ntu.edu.au/library
> Tel: (08) 8946 7009 from overseas: 61 8 8946 7009
> Postal address: P.O.Box 41246, Casuarina, NT, 0811, Australia
> CRICOS Provider No: 00300K
>
>
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel