<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>You should look into input renderers. One example of this is the subject tree input render, but many institutional repositories have them on their creators field to handle unique IDs in a more user-friendly way.</div>
<div><br>
</div>
<div>You can find an example of an input renderer on the Agro Ontology bazaar plugin at <a href="http://bazaar.eprints.org/363/">http://bazaar.eprints.org/363/</a> — see <a href="http://bazaar.eprints.org/363/1/epm/agro_ontology/cfg/cfg.d/zz_agro_ontology_lib.pl">http://bazaar.eprints.org/363/1/epm/agro_ontology/cfg/cfg.d/zz_agro_ontology_lib.pl</a> for
the code that generates the input DOM and the line to configure it in the field config.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="font-family: Calibri;">
<tbody>
<tr>
<td valign="top" style="border-style: solid none none; border-top-color: rgb(44, 56, 65); border-top-width: 1pt; padding: 0cm 0cm 3pt;">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<a href="http://www.jisc.ac.uk/" style="color: rgb(149, 79, 114);"><span style="font-size: 12pt; font-family: 'Times New Roman', serif; color: blue; text-decoration: none;"><img border="0" width="60" height="35" id="Picture_x0020_1" src="cid:AFB89C71-0170-4468-98F2-06B463A3D095" alt="Jisc" type="image/png"></span></a><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="top" style="padding: 7.5pt 0cm 0cm;">
<p class="MsoNormal" style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;">
<b><span style="font-size: 12pt; font-family: Corbel, sans-serif; color: rgb(44, 56, 65);">Adam Field</span></b><span style="font-size: 12pt; font-family: 'Times New Roman', serif;"><br>
</span><span style="font-size: 12pt; font-family: Corbel, sans-serif; color: rgb(44, 56, 65);">SHERPA services analyst developer</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>> on behalf of Jean-Marie Le Bechec <<a href="mailto:Jean-Marie.LeBechec@inp-toulouse.fr">Jean-Marie.LeBechec@inp-toulouse.fr</a>><br>
<span style="font-weight:bold">Organization: </span>INPT<br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>" <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>><br>
<span style="font-weight:bold">Date: </span>Friday, 5 February 2016 15:12<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>" <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>><br>
<span style="font-weight:bold">Subject: </span>[EP-tech] Javascript, workflow question<br>
</div>
<div><br>
</div>
<div>
<div text="#000000" bgcolor="#FFFFFF">Hi all,<br>
<br>
I want to connect my eprint repository with IdRef (French Reference Database of Sudoc's authority records). Abes provides us javascript libraries for it (t<a href="http://documentation.abes.fr/aideidrefdeveloppeur/ch04s01.html">http://documentation.abes.fr/aideidrefdeveloppeur/ch04s01.html</a>)
<br>
<br>
So, i have a question :<br>
<br>
What is the most appropriate and proper way to add a button or url (with an associated action) in the workflow repository?<br>
<br>
Like this :<br>
<img alt="img" src="cid:part1.02000506.08040005@inp-toulouse.fr" height="85" width="834"><br>
<br>
I wish that this button calls a script (javacript) that opens a modal window (which lets you search for people) and return some information to complete the form :<br>
<br>
<img alt="f" src="cid:part2.06060005.06050504@inp-toulouse.fr" height="530" width="1333"><br>
<br>
I can change MetaField.pm but there has to be a better solution?<br>
<br>
Any advice would be welcome !<br>
<br>
Jean-Marie<br>
<pre class="moz-signature" cols="72">--
***********************************************
Jean Marie Le Bechec
Service Commun de la Documentation
Responsable ingenierie documentaire
&
Direction du Systeme d'Information
Referent Etudes
Institut National Polytechnique de Toulouse
6 allee Emile Monso - bp 34038 -
31029 Toulouse cedex 4
Tel : 05 34 32 31 16
Tel Port : 06 40 81 35 68
Mail : <a class="moz-txt-link-abbreviated" href="mailto:lebechec@inp-toulouse.fr">lebechec@inp-toulouse.fr</a>
***********************************************
</pre>
</div>
</div>
</span>
<font size="1"> <font face="Corbel"> <br />
Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.<br /><br />
Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 2881024, VAT number GB 197 0632 86. The registered office is: One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.
</font></font></body>
</html>