<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Andrew,<br>
<br>
i use the options "render_input" and "fromform" to populate my
dynamic field (from Oracle database).<br>
<span id="result_box" class="" lang="en"><span class="">you should</span>
<span class="">write some</span> <span>perl</span> <span>code</span>
<span class="">but once you do</span> <span class="">you'll get</span>
<span class="">satisfaction<br>
<br>
Yo can check this options in eprints wiki
<a class="moz-txt-link-freetext" href="http://wiki.eprints.org/w/Category:EPrints_Metadata_Fields">http://wiki.eprints.org/w/Category:EPrints_Metadata_Fields</a><br>
<br>
Enio<br>
</span></span>Il 12/05/2016 13:31, Andrew Collington ha scritto:<br>
</div>
<blockquote
cite="mid:EMEW3|75bf90e1a12a5e702f421ab05d3ecc7ds4BCVd14eprints-tech-bounces|ecs.soton.ac.uk|89F1698F3BBE1E4D960C14A1DEDD1F6827D774D2@EX-PEV-MBX1.ad.susx.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is it possible to have a simple,
multi-select list as a new metadata field but have the values
populated by a files? What I’ve got is a list of research
units that may dynamically change (they’re stored in an Oracle
database). The simplest thing I thought would be possible is
to just generate an alphabetical list of those units into a
file and use that file as the options in the select list.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">What I thought I could try first was a
namedset, so I added to eprints_fields.pl the following:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:Consolas"> {<br>
allow_null => 1,<br>
multiple => 1,<br>
name => 'research_units',<br>
required => 0,<br>
set_name => 'research_units',<br>
type => 'namedset',<br>
},</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">And added the namedsets/research_units file
with the list of units (one per line). Naturally that didn’t
work – clearly I misunderstood the namedsets a bit as it still
required a phrase set up for each entry.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I could possibly use the ‘subjects’ file
and set up a new group within that. Ideally, though, I’d like
to avoid touching that file altogether as the units may change
over time and I’d like to automate the process of getting the
new list into eprints.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If it’s not possible to populate from a
simple file, then are there any other options? Would it come
down to writing my own dataset object (or something like
that?), or could the result be taken from a remote web service
or something like that?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks for any hints in the right
direction!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Andy<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<br>
</body>
</html>