Re: [Dspace-tech] dropdown on input-forms.xml
Ahh, yes. The dreaded special characters problem with xml. I've been dealing with this one a lot recently. I know for sure you have to replace ANY ampersands, greater-than, less-than, single and double quotes with their equivalent escape sequences, but there are also other special characters like the degree symbol that will give you troubles as well. It also doesn't seem to be consistent, i.e., one time a particular special character will cause a failure and the next time it won't. I'm sure there is something specific that's making the difference, but I'd always rather be safe than sorry and replace them anyway before processing. There are tons of articles on the internet about this that can be easily found with a Google search. Here's one: http://www.techrepublic.com/article/beware-of-the-ampersand-when-using-xml/5032714 Glad your issue is resolved! Best regards, Sue Sue Walker-Thornton Software Developer/Database Administrator NASA Langley Research Center|LITES Contract (757) 224-4074 -Original Message- From: Webshet, Sisay (ILRI) [mailto:s.webs...@cgiar.org] Sent: Monday, February 14, 2011 3:07 AM To: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] dropdown on input-forms.xml Hi All, It works fine after I deleted ' ' between terms and run index-init -Original Message- From: Webshet, Sisay (ILRI) Sent: Monday, February 14, 2011 8:58 AM To: 'dspace-tech@lists.sourceforge.net' Subject: RE: dropdown on input-forms.xml -Original Message- From: Webshet, Sisay (ILRI) Sent: Monday, February 14, 2011 8:55 AM To: 'dspace-tech@lists.sourceforge.net' Subject: RE: DSpace-tech Digest, Vol 58, Issue 48 Hi Friends, Here is what the log file reads 2011-02-14 08:35:47,197 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.DescribeStep': javax.servlet.ServletException: Error creating submission forms: org.xml.sax.SAXParseException: The entity name must immediately follow the '' in the entity reference. at org.dspace.submit.step.DescribeStep.getInputsReader(DescribeStep.java:41 2) at org.dspace.submit.step.DescribeStep.init(DescribeStep.java:116) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java: 126) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionContr oller.java:405) at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionCon troller.java:344) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet. java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnly Filter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebapp ServletFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 74) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 4) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
Re: [Dspace-tech] dropdown on input-forms.xml
]) -- Message: 1 Date: Fri, 11 Feb 2011 13:58:27 -0600 From: Thornton, Susan M. (LARC-B702)[LITES] susan.m.thorn...@nasa.gov Subject: Re: [Dspace-tech] dropdown on input-forms.xml To: Webshet, Sisay (ILRI) s.webs...@cgiar.org, dspace-tech@lists.sourceforge.net dspace-tech@lists.sourceforge.net Message-ID: 03de6124b1f32240b3692ed5e591ed1617a78c9...@ndmsscc07.ndc.nasa.gov Content-Type: text/plain; charset=utf-8 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-elementtype/dc-element dc-qualifier/dc-qualifier !-- An input-type of qualdrop_value MUST be marked as repeatable -- repeatabletrue/repeatable labelDocument Type/label input-type value-pairs-name=doc_typedropdown/input-type hintPlease enter the document type./hint required/required /field . . . form-value-pairs . . . value-pairs value-pairs-name=doc_type dc-term=type pair displayed-valueArticle/displayed-value stored-valueArticle/stored-value /pair pair displayed-valueDocument/displayed-value stored-valueDocument/stored-value /pair pair displayed-valueForm/displayed-value stored-valueForm/stored-value /pair pair displayed-valueLetter/displayed-value stored-valueLetter/stored-value /pair pair displayed-valuePamphlet/displayed-value stored-valuePamphlet/stored-value /pair pair displayed-valuePaper/displayed-value stored-valuePaper/stored-value /pair pair displayed-valuePresentation/displayed-value stored-valuePresentation/stored-value /pair pair displayed-valueRequest/displayed-value stored-valueRequest/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
Re: [Dspace-tech] dropdown on input-forms.xml
On Mon, Feb 14, 2011 at 09:06, Webshet, Sisay (ILRI) s.webs...@cgiar.org wrote: It works fine after I deleted ' ' between terms and run index-init It's an XML file, so if you want to use , you need to use amp; in its place. It's pretty obvious from the error message. But if you have any problems in the future, you can use xmllint to check whether an XML file is valid or not. Regards, ~~helix84 -- 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
Re: [Dspace-tech] dropdown on input-forms.xml
-Original Message- From: Webshet, Sisay (ILRI) Sent: Monday, February 14, 2011 8:55 AM To: 'dspace-tech@lists.sourceforge.net' Subject: RE: DSpace-tech Digest, Vol 58, Issue 48 Hi Friends, Here is what the log file reads 2011-02-14 08:35:47,197 ERROR org.dspace.app.webui.servlet.SubmissionController @ Error loading step class'org.dspace.submit.step.DescribeStep': javax.servlet.ServletException: Error creating submission forms: org.xml.sax.SAXParseException: The entity name must immediately follow the '' in the entity reference. at org.dspace.submit.step.DescribeStep.getInputsReader(DescribeStep.java:41 2) at org.dspace.submit.step.DescribeStep.init(DescribeStep.java:116) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA ccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons tructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.dspace.app.webui.submit.JSPStepManager.loadStep(JSPStepManager.java: 126) at org.dspace.app.webui.servlet.SubmissionController.doStep(SubmissionContr oller.java:405) at org.dspace.app.webui.servlet.SubmissionController.doDSPost(SubmissionCon troller.java:344) at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet. java:147) at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.app.webui.filter.RegisteredOnlyFilter.doFilter(RegisteredOnly Filter.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebapp ServletFilter.java:112) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 74) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 4) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:689) at java.lang.Thread.run(Thread.java:619) Thanks -Original Message- From: dspace-tech-requ...@lists.sourceforge.net [mailto:dspace-tech-requ...@lists.sourceforge.net] Sent: Friday, February 11, 2011 10:59 PM To: dspace-tech@lists.sourceforge.net Subject: DSpace-tech Digest, Vol 58, Issue 48 Send DSpace-tech mailing list submissions to dspace-tech@lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dspace-tech or, via email, send a message with subject or body 'help' to dspace-tech-requ...@lists.sourceforge.net You can reach the person managing the list at dspace-tech-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than Re: Contents of DSpace-tech digest... Today's Topics: 1. Re: dropdown on input-forms.xml (Thornton, Susan M. (LARC-B702)[LITES]) -- Message: 1 Date: Fri, 11 Feb 2011 13:58:27 -0600 From: Thornton, Susan M. (LARC-B702)[LITES] susan.m.thorn...@nasa.gov Subject: Re: [Dspace-tech] dropdown on input-forms.xml To: Webshet, Sisay (ILRI) s.webs...@cgiar.org, dspace-tech
Re: [Dspace-tech] dropdown on input-forms.xml
Hello, what's in your logs. You said you got an internal error, but this is a bit unspecific for further troubleshooting. And best check whether your input-forms.xml is valid xml. Tested this with over a hundred value-pairs and it works fine. Hope that helps Claudia Jürgen Am 11.02.2011 08:07, schrieb Webshet, Sisay (ILRI): 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-elementtype/dc-element dc-qualifier/dc-qualifier !-- An input-type of qualdrop_value MUST be marked as repeatable -- repeatabletrue/repeatable labelDocument Type/label input-type value-pairs-name=doc_typedropdown/input-type hintPlease enter the document type./hint required/required /field . . . form-value-pairs . . . value-pairs value-pairs-name=doc_type dc-term=type pair displayed-valueArticle/displayed-value stored-valueArticle/stored-value /pair pair displayed-valueDocument/displayed-value stored-valueDocument/stored-value /pair pair displayed-valueForm/displayed-value stored-valueForm/stored-value /pair pair displayed-valueLetter/displayed-value stored-valueLetter/stored-value /pair pair displayed-valuePamphlet/displayed-value stored-valuePamphlet/stored-value /pair pair displayed-valuePaper/displayed-value stored-valuePaper/stored-value /pair pair displayed-valuePresentation/displayed-value stored-valuePresentation/stored-value /pair pair displayed-valueRequest/displayed-value stored-valueRequest/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-schemadc/dc-schema dc-elementcplace/dc-element dc-qualifiercountry/dc-qualifier repeatabletrue/repeatable labelILRI Country Focus/label input-type value-pairs-name=countrylistdropdown/input-type hintEnter a country
Re: [Dspace-tech] dropdown on input-forms.xml
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-elementtype/dc-element dc-qualifier/dc-qualifier !-- An input-type of qualdrop_value MUST be marked as repeatable -- repeatabletrue/repeatable labelDocument Type/label input-type value-pairs-name=doc_typedropdown/input-type hintPlease enter the document type./hint required/required /field . . . form-value-pairs . . . value-pairs value-pairs-name=doc_type dc-term=type pair displayed-valueArticle/displayed-value stored-valueArticle/stored-value /pair pair displayed-valueDocument/displayed-value stored-valueDocument/stored-value /pair pair displayed-valueForm/displayed-value stored-valueForm/stored-value /pair pair displayed-valueLetter/displayed-value stored-valueLetter/stored-value /pair pair displayed-valuePamphlet/displayed-value stored-valuePamphlet/stored-value /pair pair displayed-valuePaper/displayed-value stored-valuePaper/stored-value /pair pair displayed-valuePresentation/displayed-value stored-valuePresentation/stored-value /pair pair displayed-valueRequest/displayed-value stored-valueRequest/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-schemadc/dc-schema dc-elementcplace/dc-element dc-qualifiercountry/dc-qualifier repeatabletrue/repeatable labelILRI Country Focus/label input-type value-pairs-name=countrylistdropdown/input-type hintEnter a country or Countries/hint required/required /field value-pairs value-pairs-name=countrylist
Re: [Dspace-tech] 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-elementtype/dc-element dc-qualifier/dc-qualifier !-- An input-type of qualdrop_value MUST be marked as repeatable -- repeatabletrue/repeatable labelDocument Type/label input-type value-pairs-name=doc_typedropdown/input-type hintPlease enter the document type./hint required/required /field . . . form-value-pairs . . . value-pairs value-pairs-name=doc_type dc-term=type pair displayed-valueArticle/displayed-value stored-valueArticle/stored-value /pair pair displayed-valueDocument/displayed-value stored-valueDocument/stored-value /pair pair displayed-valueForm/displayed-value stored-valueForm/stored-value /pair pair displayed-valueLetter/displayed-value stored-valueLetter/stored-value /pair pair displayed-valuePamphlet/displayed-value stored-valuePamphlet/stored-value /pair pair displayed-valuePaper/displayed-value stored-valuePaper/stored-value /pair pair displayed-valuePresentation/displayed-value stored-valuePresentation/stored-value /pair pair displayed-valueRequest/displayed-value stored-valueRequest/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-schemadc/dc-schema dc-elementcplace/dc-element dc-qualifiercountry/dc-qualifier repeatabletrue/repeatable labelILRI Country Focus/label input-type value-pairs-name=countrylistdropdown/input-type hintEnter a country or Countries/hint required/required /field value-pairs value-pairs-name=countrylist dc-term=cplace_country pair displayed-valueAFGHANISTAN/displayed-value stored-valueAFGHANISTAN/stored-value /pair pair displayed-valueALBANIA/displayed-value stored-valueALBANIA/stored-value /pair pair displayed-valueALGERIA/displayed-value stored-valueALGERIA/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
Re: [Dspace-tech] 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-elementtype/dc-element dc-qualifier/dc-qualifier !-- An input-type of qualdrop_value MUST be marked as repeatable -- repeatabletrue/repeatable labelDocument Type/label input-type value-pairs-name=doc_typedropdown/input-type hintPlease enter the document type./hint required/required /field . . . form-value-pairs . . . value-pairs value-pairs-name=doc_type dc-term=type pair displayed-valueArticle/displayed-value stored-valueArticle/stored-value /pair pair displayed-valueDocument/displayed-value stored-valueDocument/stored-value /pair pair displayed-valueForm/displayed-value stored-valueForm/stored-value /pair pair displayed-valueLetter/displayed-value stored-valueLetter/stored-value /pair pair displayed-valuePamphlet/displayed-value stored-valuePamphlet/stored-value /pair pair displayed-valuePaper/displayed-value stored-valuePaper/stored-value /pair pair displayed-valuePresentation/displayed-value stored-valuePresentation/stored-value /pair pair displayed-valueRequest/displayed-value stored-valueRequest/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-schemadc/dc-schema dc-elementcplace/dc-element dc-qualifiercountry/dc-qualifier repeatabletrue/repeatable labelILRI Country Focus/label input-type value-pairs-name=countrylistdropdown/input-type hintEnter a country or Countries/hint required/required /field value-pairs value-pairs-name=countrylist dc-term=cplace_country pair displayed-valueAFGHANISTAN/displayed-value stored-valueAFGHANISTAN/stored-value /pair pair displayed-valueALBANIA/displayed-value stored-valueALBANIA/stored-value /pair pair
Re: [Dspace-tech] 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-elementtype/dc-element dc-qualifier/dc-qualifier !-- An input-type of qualdrop_value MUST be marked as repeatable -- repeatabletrue/repeatable labelDocument Type/label input-type value-pairs-name=doc_typedropdown/input-type hintPlease enter the document type./hint required/required /field . . . form-value-pairs . . . value-pairs value-pairs-name=doc_type dc-term=type pair displayed-valueArticle/displayed-value stored-valueArticle/stored-value /pair pair displayed-valueDocument/displayed-value stored-valueDocument/stored-value /pair pair displayed-valueForm/displayed-value stored-valueForm/stored-value /pair pair displayed-valueLetter/displayed-value stored-valueLetter/stored-value /pair pair displayed-valuePamphlet/displayed-value stored-valuePamphlet/stored-value /pair pair displayed-valuePaper/displayed-value stored-valuePaper/stored-value /pair pair displayed-valuePresentation/displayed-value stored-valuePresentation/stored-value /pair pair displayed-valueRequest/displayed-value stored-valueRequest/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-schemadc/dc-schema dc-elementcplace/dc-element dc-qualifiercountry/dc-qualifier repeatabletrue/repeatable labelILRI Country Focus/label input-type value-pairs-name=countrylistdropdown/input-type hintEnter a country or Countries/hint required/required /field value-pairs value-pairs-name=countrylist dc-term=cplace_country pair displayed-valueAFGHANISTAN/displayed-value stored-valueAFGHANISTAN/stored-value /pair pair displayed-valueALBANIA/displayed-value stored-valueALBANIA/stored-value /pair pair displayed-valueALGERIA/displayed-value stored-valueALGERIA/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