Re: [greenstone-users] How to apply my formatting function to collection content? Not CSS and GLI Format Fearures-DocumentText[text]

From sw64@cs.waikato.ac.nz
DateWed, 31 Jan 2007 16:43:23 +1300 (NZDT)
Subject Re: [greenstone-users] How to apply my formatting function to collection content? Not CSS and GLI Format Fearures-DocumentText[text]
In-Reply-To (bd531c680701292313r10f6484h68489579bc680b55-mail-gmail-com)
Hello Garmaabazar,

1. The document text is in <div class="documenttext">....</div>, so you
can write javascript to get that block and convert the text into
lowercase.

2. You can put your script in the macro in document.dm,
Search , you will find that it has already got some
script in, just remember you need to escape "{" and "}" by putting ""
before it.

Regards
Shaoqun

> Dears,
>
> I`m wondering weather can I apply my formating specific function
> before displaying all contents of already indexed collection. For
> example: I want to display contents all in lowercase or in uppercase
> just while displaying, which means stored collection remains as stored
> before. Basically I want to run my javascript function like
> document.toLowerCase(); while running document.dm; that allowing to
> convert all collection text into lowercase. I looked document.dm, but
> not understood.
>
> Where should I add my JavaScript on this occasion?
>
> Also I read approaches such as modifying CSS and GLI Format
> Features-DocumentText[text].
> But I want to run some Javascript, not want to add formating html tags
> to [Text].
>
> Could anyone help me?
>
> Thank you in advance,
>
> Garmaabazar
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>