Ticket #4021 (new defect)
Import / Export plugins must be able to cope with any types of field (single, multiple ...)
| Reported by: | sf03r@… | Owned by: | |
|---|---|---|---|
| Priority: | unset | Milestone: | EPrints 3.4.0 |
| Component: | - | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
A French customer asked for 'title', 'abstracts' and 'keywords' to be multiple fields which breaks most of the Import and Export plugins (as they all expect single values).
We need to add a generic assignement method that will cope with any kind of fields eg:
$epdata->{fieldname} = $self->normalise_field_value( 'fieldname', $fieldvalue);
this method could transform an ARRAY ref into a SCALAR and vice-versa, making the import / export mechanism more robust. I'm happy helping.
Seen on Import/DOI, Import/BibTex?, and most Export plugins.
Change History
Note: See
TracTickets for help on using
tickets.
