EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #03150


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Multipart metadata


Hi,

I have tried to add a multipart field to our repository (3.3.12).

I modified eprint_fields.pl et ran epadmin update.
(an "eprint_test_multi" table has been created in the database)

The field declaration :
{
    name => 'test_multi',
    type => 'multipart',
    multiple => 1,
    fields => [
        {
            sub_name => 'motcle',
            type => 'text',
            allow_null => 0,
        },
        {
            sub_name => 'id',
            type => 'int',
            allow_null => 0,
        }
    ],
    input_boxes => 3,
},

But when I try to add the field in the workflow, I get an Apache internal error.
The log contains :
[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
and my addition to ,the workflow is a simple :
<component><field ref="test_multi" /></component>
Does anybody have an idea of what causes the error ?

(I could have used a compound field but I thought that multipart was better as it only creates one table for all the subfields)

Thanks
Gilles