See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
Re: [EP-tech] Condition in the workflow
From: Simone Sacchi <simone AT cib.unibo.it>
Date: Thu, 9 Oct 2008 09:21:39 +0200
| Threading: | ↑ [EP-tech] Condition in the workflow from simone AT cib.unibo.it • This Message |
*** ↵ http://www.eprints.org/tech.php/id/%3CEMEW-k988Lg0be70e4325a5c70b8fd868eeb6057ee3-200810090921.39443.simone%40cib.unibo.it%3E *** EPrints community wiki - http://wiki.eprints.org/ Hi Tim, What I want to achieve is the following situation: 1) An author upload a document, and so he get the field "security" to ↵ be selected. 2) The field "Security" (which is a nameset field) contains a value called "Distribution List" 3) If the author select "Distribution List" I want the page to be ↵ reloaded and a text field called "List name" should appear, to be filled with a ↵ value. I thought that the best way to do it was having some javascript on the select to reload the page and submit the value, and have in the workflow a condition that say 'only display the document field called "List name" if ↵ "security" is set to "Distribution List". So I know that I should modify the InputForm/Upload.pm plugin.... Maybe another solution could be to use javascript simply to hide/unhide that field based on the selected value of "security"... Any hint? Thanks Simone Il Wednesday 08 October 2008 16:37:29 Tim Brody ha scritto: > *** > ↵ http://www.eprints.org/tech.php/id/%3C1223476649.6300.60.camel%40dell-deskt >op.example.com%3E *** EPrints community wiki - http://wiki.eprints.org/ > > Hi, > > I don't think this is possible without modifying the InputForm/Upload.pm > plugin. The document upload screen is a bit special and isn't part of > the normal workflow. > > I could imagine conditionally showing an *eprint* field by performing > some additional work in eprint_validate. > > If you could specify what you want with some more detail perhaps someone > can help? > > All the best, > Tim. > > On Wed, 2008-10-08 at 13:05 +0200, Simone Sacchi wrote: > > *** > > ↵ http://www.eprints.org/tech.php/id/%3CEMEW-k97CLud17f3619394d4851b03eabf6 > >4b64af01-200810081305.42730.simone%40cib.unibo.it%3E *** EPrints ↵ community > > wiki - http://wiki.eprints.org/ > > > > Hi all, > > > > I would like to show conditionally a document field in the Upload > > Component. > > > > The condition is that the document "security" field is set ↵ to "something" > > (obviusly I need to submit the form and recharge the page, but I can ↵ cope > > with it) > > > > How can I express such a condition in the XML workflow? > > > > Thanks a lot > > Simone -- --------------------------------------------- Dott. Simone Sacchi CIB - Centro Inter-Bibliotecario Alma Mater Studiorum - Universita' di Bologna tel: +39 051 209 4276 fax: +39 051 209 4266 e-mail: simone AT cib.unibo.it simone.sacchi AT unibo.it http://www.biblioteche.unibo.it/ http://almadl.cib.unibo.it ---------------------------------------------
[index] [prev] [next] [options] [help]




