EPrints Technical Mailing List Archive

Message: #03175


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

[EP-tech] Re: Multipart metadata


Hi,

As I have done many tests on my test archive, I tried to create the "multipart" field on a fresh archive.
I get the same Apache error when I load the workflow page containing the field.

I wonder if this field type is fully supported.
Some ideas ?

Thanks
GF


Le 11/06/2014 16:00, Gilles Fournié a écrit :
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







*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/