[greenstone-devel] Related to format SearchVList

From Treechada Sirijaroenchai
DateTue, 15 Jun 2004 12:06:32 +0700 (ICT)
Subject [greenstone-devel] Related to format SearchVList
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