|
Hi, I think it's as easy as this (5.x code, you may need to adjust for 6.x): public class SubmitterAsAuthor extends AbstractProcessingStep { @Override public int doProcessing(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException { EPerson submitter = context.getCurrentUser(); String name = submitter.getLastName() + ", " + submitter.getFirstName(); Item item = subInfo.getSubmissionItem().getItem(); item.addMetadata("dc", "contributor", "author", null, name); item.update(); } But no promises that will work! cheers, Andrea On 08/09/2017 02:53 AM, Francisco
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 [email protected]. To post to this group, send email to [email protected]. 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 sub... Francisco
- Re: [dspace-tech] assign dc.autor = eperson.lastnam... Andrea Schweer
- Re: [dspace-tech] assign dc.autor = eperson.las... Francisco
- Re: [dspace-tech] assign dc.autor = eperson... Francisco
- Re: [dspace-tech] assign dc.autor = epe... Andrea Schweer
- Re: [dspace-tech] assign dc.autor ... Andrea Schweer
- Re: [dspace-tech] assign dc.au... Andrea Schweer
- Re: [dspace-tech] assign dc.au... Luciano Koenigkan
