<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p dir="ltr">---------- Forwarded message ----------<br>
From: Timothy Miles-Board &lt;timothy.miles-board@ulcc.ac.uk&gt;<br>
Date: 18 Jun 2015 11:30 pm<br>
Subject: Re: [EP-tech] How to set a field to be multilang<br>
To: eprints-tech@ecs.soton.ac.uk<br>
Cc:&nbsp;</p>
<blockquote>
<p dir="ltr">{<br>
&nbsp;&nbsp;&nbsp;&nbsp; name =&gt; 'title',<br>
&nbsp;&nbsp;&nbsp;&nbsp; type =&gt; 'multilang',<br>
&nbsp;&nbsp;&nbsp;&nbsp; multiple =&gt; 1,<br>
&nbsp;&nbsp;&nbsp;&nbsp; fields =&gt; [ { sub_name =&gt; &quot;text&quot;, type =&gt; &quot;longtext&quot;, input_rows =&gt; 3, make_single_value_orderkey =&gt; 'EPrints::Extras::english_title_orderkey' } ],<br>
&nbsp;&nbsp;&nbsp;&nbsp; input_add_boxes =&gt; 1,<br>
},<br>
</p>
</blockquote>
<p dir="ltr"><br>
Tim</p>
<div class="gmail_quote">On 23 Jun 2015 9:09 am, George Mamalakis &lt;mamalos@eng.auth.gr&gt; wrote:<br type="attribution">
<blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font size="2"><span style="font-size:10pt"></span></font>
<div>Guys (and girls),<br>
<br>
Any news on multilingual fields? Anybody using them?<br>
<br>
Thanks!<br>
<br>
George<br>
<br>
On 18/06/2015 06:31 μμ, George Mamalakis wrote:<br>
&gt; Hello again,<br>
&gt;<br>
&gt; I am trying to make my EPrints installation support multilanguage fields<br>
&gt; (eg. title, abstract, etc.). The thing I did that worked (which doesn't<br>
&gt; feel right to me, though) was adding a new Metadata field (eg. title_en)<br>
&gt; and add it to the database and workflow. On the documentation, on the<br>
&gt; other hand, I saw that there is a Multilang field type<br>
&gt; (./perl_lib/EPrints/MetaField/Multilang.pm) which should be used for<br>
&gt; this purpose. The strange thing is that its perldoc DESCRIPTION section<br>
&gt; starts with &quot;not done&quot;, probably meaning that it's not implemented?<br>
&gt; Disregarding the last comment, when I changed<br>
&gt; ./archives/myarchive/cfg/cfg.d/eprint_fields.pl title field to read:<br>
&gt;<br>
&gt; {<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name =&gt; 'title',<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type =&gt; 'multilang',<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input_rows =&gt; 3,<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; make_single_value_orderkey =&gt;<br>
&gt; 'EPrints::Extras::english_title_orderkey',<br>
&gt; },<br>
&gt;<br>
&gt; and I reloaded epadmin, I got the following error:<br>
&gt;<br>
&gt; &quot;Error in field property for eprint.title: fields on a multilang<br>
&gt; metafield can't be undefined&quot;<br>
&gt;<br>
&gt; So, which is the proper way for adding multilanguage support in fields<br>
&gt; and display them in workflows?<br>
&gt;<br>
&gt; Thanks for all help in advance!<br>
&gt;<br>
<br>
<br>
-- <br>
George Mamalakis<br>
<br>
IT and Security Officer,<br>
Electrical and Computer Engineer (Aristotle Univ. of Thessaloniki),<br>
PhD (Aristotle Univ. of Thessaloniki),<br>
MSc (Imperial College of London)<br>
<br>
School of Electrical and Computer Engineering<br>
Aristotle University of Thessaloniki<br>
<br>
phone number : &#43;30 (2310) 994379<br>
<br>
<br>
<br>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/">http://forum.eprints.org/</a><br>
</div>
</div>
</blockquote>
</div>
</body>
</html>