sorry, I haven't worked with DSpace 6 code. The code I posted should work in DSpace 5. For DSpace 6, you probably need to go via the itemService, have a look at the InitialQuestionsStep for how they're setting the metadata value for dc.date.issued: https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/java/org/dspace/submit/step/InitialQuestionsStep.java#L229
something like this might work:
itemService.addMetadata(context, item, MetadataSchema.DC_SCHEMA, "contributor", "author", null, name);
On 08/11/2017 10:35 AM, Saby wrote:
-- Dr Andrea Schweer Lead Software Developer, ITS Information Systems The University of Waikato, Hamilton, New Zealand +64-7-837 9120--
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
- [dspace-tech] assign dc.autor = eperson.lastname in submis... Francisco
- Re: [dspace-tech] assign dc.autor = eperson.lastname i... Andrea Schweer
- Re: [dspace-tech] assign dc.autor = eperson.lastna... Francisco