problem with display of enum and flat vocab params

0 views
Skip to first unread message

Emily Greenfest-Allen

unread,
Oct 13, 2011, 4:00:54 PM10/13/11
to strategies...@googlegroups.com
Hi all-

I believe I am experiencing a problem with the display of enum and
flatVocab parameters that have a different "term" and "internal" value.

As an example, for the following parameter:

<enumParam name="organism"
prompt="Organism"
multiPick="false"
displayType="listBox"
quote="false"
default="Homo sapiens (NCBI36/hg18)">
<enumList>
<enumValue>
<term>Danio rerio (danRer6)</term>
<internal>danRer6</internal>
</enumValue>
<enumValue>
<term>Homo sapiens (NCBI36/hg18)</term>
<internal>Hg18</internal>
</enumValue>
<enumValue>
<term>Mus musculus (NCBI37/mm9)</term>
<internal>Mm9</internal>
</enumValue>
<enumValue>
<term>Rattus norvegicus (rn4)</term>
<internal>Rn4</internal>
</enumValue>
</enumList>
<help>
Select an organism.
</help>
</enumParam>


On a question page referencing this parameter on the website, I get the
following:

<divclass="param "name="organism"dependson="">
<selectid="organism"name="array(organism)">
<optionvalue="Danio rerio (danRer6)">Danio rerio (danRer6)</option>
<optionselected="selected"value="Homo sapiens (NCBI36/hg18)">Homo
sapiens (NCBI36/hg18)</option>
<optionvalue="Mus musculus (NCBI37/mm9)">Mus musculus (NCBI37/mm9)</option>
<optionvalue="Rattus norvegicus (rn4)">Rattus norvegicus (rn4)</option>
</select>
</div>

However, I expected to see/need the following:

<divclass="param "name="organism"dependson="">
<selectid="organism"name="array(organism)">
<optionvalue="danRer6">Danio rerio (danRer6)</option>
<optionselected="selected"value="Hg18">Homo sapiens (NCBI36/hg18)</option>
<optionvalue="Mm9">Mus musculus (NCBI37/mm9)</option>
<optionvalue="Rn4">Rattus norvegicus (rn4)</option>
</select>
</div>

I also looked back at the two web applications I currently have built
based on WDK 1.8 and see that the behavior is the same as I am currently
getting on my new WDK 2.2 site (i.e., value and displayed text are the
same, even when term and internal are different); but the name of the
parameter is "myMultiProp(<parameterName>)". See, for example,
http://genomics.betacell.org/gbco/showQuestion.do?questionFullName=RelationshipQuestions.FindRelationshipByBiologicalProcess.

For comparison, on the EuPath sites, I see the parameter lists built as
I expected (e.g., chromosomeOptional parameter on the
http://plasmodb.org/plasmo/showQuestion.do?questionFullName=SpanQuestions.DynSpansBySourceId
page).

This suggests to me that perhaps we are missing some code (javascript?)
from our projects. Any ideas?

Thanks,

Emily

Reply all
Reply to author
Forward
0 new messages