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.
[EP-tech] Re: Conditional fields in workflow
From: Leslie Carr <lac AT ecs.soton.ac.uk>
Date: Wed, 26 Nov 2008 07:40:58 +0000
| Threading: | ↑ [EP-tech] Conditional fields in workflow from d.dickinson AT qut.edu.au • This Message |
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** EPrints community wiki - http://wiki.eprints.org/ --Apple-Mail-15-269955605 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 26 Nov 2008, at 00:16, Duncan Dickinson wrote: > I'm trying to setup our workflow so that some fields are only > visible to editors/admins. Basically, we have some checking fields > we use to document that aspects of a submission have been reviewed. > > So, if I now have: <field ref="refereed_confirmed" ↵ required="yes" /> > I'd like to have something like: <field ↵ ref="refereed_confirmed" > required="yes" role="editor-fields"/> You want to have something like the following: <epc:if test="usertype = 'editor' or usertype = 'admin'"> <field ref="refereed_confirmed" required="yes"/> </epc:if> The conditional tests are defined as part of the EPrints Control format (http://wiki.eprints.org/w/EPrints_Control_Format) which is used in the EPScript language (http://wiki.eprints.org/w/EPScript) - the basis of the workflow files. --- Les --Apple-Mail-15-269955605 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable <html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: ↵ space; = -webkit-line-break: after-white-space; ↵ "><br><div><div>On 26 Nov 2008, = at 00:16, Duncan Dickinson wrote:</div><br = class=3D"Apple-interchange-newline"><blockquote ↵ type=3D"cite"><span = class=3D"Apple-style-span" style=3D"border-collapse: separate; ↵ color: = rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant: normal; font-weight: normal; letter-spacing: = normal; line-height: normal; orphans: 2; text-align: auto; text-indent: = 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: = 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0; "><div lang=3D"EN-AU" ↵ link=3D"blue" = vlink=3D"purple"><div class=3D"Section1"><div ↵ style=3D"margin-top: 0cm; = margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: = 10.5pt; font-family: Consolas; ">I'm trying to setup our workflow so = that some fields are only visible to editors/admins. Basically, we have = some checking fields we use to document that aspects of a submission = have been reviewed. <o:p></o:p></div><div ↵ style=3D"margin-top: 0cm; = margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: = 10.5pt; font-family: Consolas; ↵ "><o:p> </o:p></div><div = style=3D"margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; = margin-bottom: 0.0001pt; font-size: 10.5pt; font-family: Consolas; ↵ ">So, = if I now have: <field ref=3D"refereed_confirmed" ↵ required=3D"yes" /> = I'd like to have something like: <field ↵ ref=3D"refereed_confirmed" = required=3D"yes" = role=3D"editor-fields"/></div></div></div></span></blockquote><br></div><d= iv>You want to have something like the = following:</div><div><br></div><div><div><epc:if test=3D"usertype =3D = 'editor' or usertype =3D 'admin'"></div><div><span = class=3D"Apple-tab-span" ↵ style=3D"white-space:pre"> </span><field = ref=3D"refereed_confirmed" = required=3D"yes"/></div><div></epc:if></div><div><br></div><div><= br></div><div>The conditional tests are defined as part of the ↵ EPrints = Control format (<a = href=3D"http://wiki.eprints.org/w/EPrints_Control_Format)">http://wiki.epr= ints.org/w/EPrints_Control_Format)</a> which is used in the EPScript = language (<a = href=3D"http://wiki.eprints.org/w/EPScript)">http://wiki.eprints.org/w/EPS= cript)</a> - the basis of the workflow = files.</div><div>---</div><div>Les</div></div></body></html>= --Apple-Mail-15-269955605--
[index] [prev] [next] [options] [help]




