EPrints Technical Mailing List Archive

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

Message: #04838


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

[EP-tech] Re: Updating a compound multiple field


Your assumptions are all correct.

--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services
+44 (0)23 8059 8814





On 2 Oct 2015, at 15:37, martin.braendle@id.uzh.ch wrote:

> Hi,
> 
> just a short question: Am I assuming correctly if I update a compound multiple field with 
> 
> $dataobj->set_value( array of hashes ) 
> 
> that the new values overwrite the existing ones and are not appended to the existing values?
> 
> E.g. if I want to keep the existing values, I need to read them out first and create a merged array with the new values that I have to write back?
> 
> Thanks,
> 
> Martin
> 
> --
> Dr. Martin Brändle
> Zentrale Informatik
> Universität Zürich
> Stampfenbachstr. 73
> CH-8006 Zürich
> *** 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/