Re: [greenstone-users] How to apply my formatting function to collection content?

From Garmaabazar Kh.
DateFri, 2 Feb 2007 14:46:11 +0900
Subject Re: [greenstone-users] How to apply my formatting function to collection content?
In-Reply-To (45C249D1-2010706-cs-waikato-ac-nz)
Dear Katerine,

I,m Sorry. Just installed new version 2.72. Now I can see <div
class="documenttext"> in the document.dm.

Garmaabazar

On 2/2/07, Katherine Don <kjdon@cs.waikato.ac.nz> wrote:
> Hi
>
> What version of Greenstone are you using? The documenttext div should be
> there for 2.71 and 2.72.
>
> Regards,
> Katherine
>
> Garmaabazar Kh. wrote:
> > Dear Shaoqun,
> >
> > I didn't find <div class="documenttext"> in my collection. Please see
> > below source code. Any ideas? Are there any other common <div> tag
> > class for all collection?
> >
> > Thanks,
> >
> > Garmaabazar
> >
> >
> > <!--Section Begins--><br>
> >
> > <div align="justify" style="padding: 0.00mm 0.00mm 0.00mm 0.00mm; ">
> > <p style="text-indent: 0.00mm; text-align: justify; color: Black;
> > background-color: White; ">
> > Sample text
> > </p></div>
> >
> > On 1/31/07, sw64@cs.waikato.ac.nz <sw64@cs.waikato.ac.nz> wrote:
> >
> >> 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
> >> >
> >>
> >>
> >>
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > greenstone-users mailing list
> > greenstone-users@list.scms.waikato.ac.nz
> > https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>