<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<link href="chrome://translator/skin/floatingPanel.css"
type="text/css" rel="stylesheet">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I have tried to add a multipart field to our repository (3.3.12).<br>
<br>
I modified eprint_fields.pl et ran epadmin update.<br>
(an "eprint_test_multi" table has been created in the database)<br>
<br>
The field declaration :<br>
<blockquote><tt>{</tt><tt><br>
</tt><tt> name => 'test_multi',</tt><tt><br>
</tt><tt> type => 'multipart',</tt><tt><br>
</tt><tt> multiple => 1,</tt><tt><br>
</tt><tt> fields => [</tt><tt><br>
</tt><tt> {</tt><tt><br>
</tt><tt> sub_name => 'motcle',</tt><tt><br>
</tt><tt> type => 'text',</tt><tt><br>
</tt><tt> allow_null => 0,</tt><tt><br>
</tt><tt> },</tt><tt><br>
</tt><tt> {</tt><tt><br>
</tt><tt> sub_name => 'id',</tt><tt><br>
</tt><tt> type => 'int',</tt><tt><br>
</tt><tt> allow_null => 0,</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> ],</tt><tt><br>
</tt><tt> input_boxes => 3,</tt><tt><br>
</tt><tt>},</tt><tt><br>
</tt></blockquote>
<br>
But when I try to add the field in the workflow, I get an Apache
internal error.<br>
The log contains :<br>
<blockquote><tt>[Wed Jun 11 15:52:23 2014] [error]
XML::LibXML::Node::appendChild() -- nNode is not a blessed SV
reference at
/opt/www/eprints-3.3.12/perl_lib/EPrints/MetaField.pm line
1268.\n</tt><br>
</blockquote>
and my addition to ,the workflow is a simple :<br>
<blockquote><tt><component><field ref="test_multi"
/></component></tt><br>
</blockquote>
Does anybody have an idea of what causes the error ?<br>
<br>
(I could have used a compound field but I thought that multipart was
better as it only creates one table for all the subfields)<br>
<br>
Thanks<br>
Gilles<br>
<br>
<br>
<br>
<br>
<br>
<div style="bottom: auto; left: 279px; right: auto; top: 344px;
display: none;" class="translator-theme-default"
id="translator-floating-panel">
<div title="Cliquer pour traduire"
id="translator-floating-panel-button"></div>
</div>
</body>
</html>