Can you post the contents of dspace.log and possibility your web server log 
file so we can see exactly what’s happening?



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


From: Webshet, Sisay (ILRI) [mailto:s.webs...@cgiar.org]
Sent: Friday, February 11, 2011 2:07 AM
To: Thornton, Susan M. (LARC-B702)[LITES]; dspace-tech@lists.sourceforge.net
Subject: RE: dropdown on input-forms.xml

Hi,

For small No of values it works fine but when you add the no values in the 
dropdown list let if you have 20 drop down list
and want to make it 100 it brings internal system error.

Thanks
________________________________
From: Thornton, Susan M. (LARC-B702)[LITES] [mailto:susan.m.thorn...@nasa.gov]
Sent: Thursday, February 10, 2011 10:46 PM
To: Webshet, Sisay (ILRI); dspace-tech@lists.sourceforge.net
Subject: RE: dropdown on input-forms.xml

Is there a fixed number of values it can load into the drop-down and then it 
stops, or does it just not work at all?



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


From: Webshet, Sisay (ILRI) [mailto:s.webs...@cgiar.org]
Sent: Thursday, February 10, 2011 12:31 AM
To: Thornton, Susan M. (LARC-B702)[LITES]; dspace-tech@lists.sourceforge.net
Subject: RE: dropdown on input-forms.xml

Hi sue,

Thanks but this is not my first time. Of course it works for small no of values.
But for long list like countries of the world (1-155 values) Dspace has a 
problem.
Thanks

________________________________
From: Thornton, Susan M. (LARC-B702)[LITES] [mailto:susan.m.thorn...@nasa.gov]
Sent: Wednesday, February 09, 2011 7:56 PM
To: Webshet, Sisay (ILRI); dspace-tech@lists.sourceforge.net
Subject: RE: dropdown on input-forms.xml

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:s.webs...@cgiar.org]
Sent: Wednesday, February 09, 2011 1:13 AM
To: dspace-tech@lists.sourceforge.net
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to