<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>&nbsp;&nbsp;&nbsp; name =&gt; 'test_multi',</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; type =&gt; 'multipart',</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; multiple =&gt; 1,</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; fields =&gt; [</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sub_name =&gt; 'motcle',</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; type =&gt; 'text',</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; allow_null =&gt; 0,</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; },</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; sub_name =&gt; 'id',</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; type =&gt; 'int',</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; allow_null =&gt; 0,</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; ],</tt><tt><br>
      </tt><tt>&nbsp;&nbsp;&nbsp; input_boxes =&gt; 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>&lt;component&gt;&lt;field ref="test_multi"
        /&gt;&lt;/component&gt;</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>