<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 <timothy.miles-board@ulcc.ac.uk><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: </p>
<blockquote>
<p dir="ltr">{<br>
name => 'title',<br>
type => 'multilang',<br>
multiple => 1,<br>
fields => [ { sub_name => "text", type => "longtext", input_rows => 3, make_single_value_orderkey => 'EPrints::Extras::english_title_orderkey' } ],<br>
input_add_boxes => 1,<br>
},<br>
</p>
</blockquote>
<p dir="ltr"><br>
Tim</p>
<div class="gmail_quote">On 23 Jun 2015 9:09 am, George Mamalakis <mamalos@eng.auth.gr> 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>
> Hello again,<br>
><br>
> I am trying to make my EPrints installation support multilanguage fields<br>
> (eg. title, abstract, etc.). The thing I did that worked (which doesn't<br>
> feel right to me, though) was adding a new Metadata field (eg. title_en)<br>
> and add it to the database and workflow. On the documentation, on the<br>
> other hand, I saw that there is a Multilang field type<br>
> (./perl_lib/EPrints/MetaField/Multilang.pm) which should be used for<br>
> this purpose. The strange thing is that its perldoc DESCRIPTION section<br>
> starts with "not done", probably meaning that it's not implemented?<br>
> Disregarding the last comment, when I changed<br>
> ./archives/myarchive/cfg/cfg.d/eprint_fields.pl title field to read:<br>
><br>
> {<br>
> name => 'title',<br>
> type => 'multilang',<br>
> input_rows => 3,<br>
> make_single_value_orderkey =><br>
> 'EPrints::Extras::english_title_orderkey',<br>
> },<br>
><br>
> and I reloaded epadmin, I got the following error:<br>
><br>
> "Error in field property for eprint.title: fields on a multilang<br>
> metafield can't be undefined"<br>
><br>
> So, which is the proper way for adding multilanguage support in fields<br>
> and display them in workflows?<br>
><br>
> Thanks for all help in advance!<br>
><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 : +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>