Re: [greenstone-devel] Related to format SearchVList

From Katherine Don
DateWed, 16 Jun 2004 14:19:51 +1200
Subject Re: [greenstone-devel] Related to format SearchVList
In-Reply-To (4488-202-183-209-10-1087275992-squirrel-webmail-ego-co-th)
Hi Treechada

We have just implemented this. It will be available in the next (2.51)
release, which should be available next week.

You can say things like

{If}{[dc.Type] eq 'Book', format-for-book}
{If}{[dc.Type] eq 'Video', format-for-video}
{If}{[dc.Type] eq 'CDRom', format-for-cdrom}

or

{If}{[dc.Type] eq 'Book', format-for-book,
{If}{[dc.Type] eq 'Video', format-for-video,
{If}{[dc.Type] eq 'CDRom', format-for-cdrom,
format-for-other}}}

Regards,
Katherine Don

Treechada Sirijaroenchai wrote:
> Dear all,
>
> I would like to show the seach result of different resouce types in
> different format. For example, I have book, vedio, and CDRom.
> For now, I check null value for displaying result. I creat new metada
> elements for each resource type eg. dc.Type1 for vedio, dc.Type2 for
> cd-rom.
>
> My SearchVList format may look like this:
> {If} {[dc.type], format-for-book}
> {If} {[dc.type1],format-for-vedio}
> {If} {[dc.type2],format-for-CDRom}
>
> Is it possible to check metadata value which is not NULL, dc.type ?
> Like if [dc.type] eq "Book" do action
> if [dc.type] eq "Vedio" do another-action
> if [dc.type] eq "CDRom" do another-action
>
> Please kindly give me some idea.
>
> With my best regards,
>
> Treechada
>
> _______________________________________________
> greenstone-devel mailing list
> greenstone-devel@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-devel
>