I don’t see anything obviously incorrect about your code.  I’m not sure if this 
is a result of extra spaces in the email, and it’s really just an idea, but I 
would try removing any blank lines between your <value-pairs></value-pairs> 
entries.  Here is an example of some customizing we did in input-forms.xml that 
works great:

<input-forms>
.
.
.
<field>
         <dc-element>type</dc-element>
         <dc-qualifier></dc-qualifier>
         <!-- An input-type of qualdrop_value MUST be marked as repeatable -->
         <repeatable>true</repeatable>
         <label>Document Type</label>
         <input-type value-pairs-name="doc_type">dropdown</input-type>
         <hint>Please enter the document type.</hint>
         <required></required>
</field>
.
.
.
<form-value-pairs>
.
.
.
  <value-pairs value-pairs-name="doc_type" dc-term="type">
     <pair>
       <displayed-value>Article</displayed-value>
       <stored-value>Article</stored-value>
     </pair>
     <pair>
       <displayed-value>Document</displayed-value>
       <stored-value>Document</stored-value>
     </pair>
     <pair>
       <displayed-value>Form</displayed-value>
       <stored-value>Form</stored-value>
     </pair>
     <pair>
       <displayed-value>Letter</displayed-value>
       <stored-value>Letter</stored-value>
     </pair>
     <pair>
       <displayed-value>Pamphlet</displayed-value>
       <stored-value>Pamphlet</stored-value>
     </pair>
     <pair>
       <displayed-value>Paper</displayed-value>
       <stored-value>Paper</stored-value>
     </pair>
     <pair>
       <displayed-value>Presentation</displayed-value>
       <stored-value>Presentation</stored-value>
     </pair>
     <pair>
       <displayed-value>Request</displayed-value>
       <stored-value>Request</stored-value>
     </pair>
  </value-pairs>
.
.
.
</form-value-pairs>
.
.
.
</input-forms>

Hope this helps.
Sue


Sue Walker-Thornton
Software Developer/Database Administrator
NASA Langley Research Center|LITES Contract
(757) 224-4074


From: Webshet, Sisay (ILRI) [mailto:[email protected]]
Sent: Wednesday, February 09, 2011 1:13 AM
To: [email protected]
Subject: [Dspace-tech] dropdown on input-forms.xml



Hi everyone,

I'm using dspace 1.6.2 with jspui and I'm trying to use the input-type

drop down_value in input-forms.xml, but it works for some fields with

Small no of values how ever when I try to make a long list for countries of the 
world

It doesn’t work. Internal system error.I checked several times to make sure 
there exist syntax error

in the code. Does dspace has a limit on the dropdown values.



I wonder if someone assists me

ØDspace.cfg dc.cplace.country at webui.itemdisplay.default

Ømetadata.dc.cplace.country  at Messages.properties file

ØI just add the  field to the metadata registry 
(cplace(Element),country(Qualifier)

Here is my entry in input-forms.xml:



          <field>

         <dc-schema>dc</dc-schema>

         <dc-element>cplace</dc-element>

         <dc-qualifier>country</dc-qualifier>

         <repeatable>true</repeatable>

         <label>ILRI Country Focus</label>

         <input-type value-pairs-name="countrylist">dropdown</input-type>

         <hint>Enter a country or Countries</hint>

         <required></required>

         </field>





   <value-pairs value-pairs-name="countrylist" dc-term="cplace_country">



          <pair>

       <displayed-value>AFGHANISTAN</displayed-value>

       <stored-value>AFGHANISTAN</stored-value>

     </pair>





          <pair>

       <displayed-value>ALBANIA</displayed-value>

       <stored-value>ALBANIA</stored-value>

     </pair>





          <pair>

       <displayed-value>ALGERIA</displayed-value>

       <stored-value>ALGERIA</stored-value>

     </pair>





   </value-pairs>





    </form-value-pairs>



</input-forms>



Thanks

sisay
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to