EPrints Technical Mailing List Archive

Message: #06698

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

Re: [EP-tech] Tweaking the "creators" section on the workflow

Hi Andrew


                What you need is an input renderer.  See https://wiki.eprints.org/w/Category:EPrints_Metadata_Fields#Input_and_Validation_Properties


                render_input is a function that can be added to the configuration of a field in the .pl configuration file.  Something like this:




                                ‘name’ => ‘foo’,

                                ‘type’ => ‘int’,

                                ‘render_input’ => ‘wibbly_renderer’



…and then:


                $c->{wibbly_renderer} = sub


                                my ($field, $repo, $value, $dataset, $staff, $hidden_field, $obj, $basename) = @_;


                                my $frag = $repo->xml->create_document_fragment;


                                #build DOM here, explore the code-base for how to do that.  Here’s your jumping-off point:

                                # https://github.com/eprints/eprints/blob/392474eec1b8125a66ed2d3e12b02aeb67dc07c4/perl_lib/EPrints/MetaField.pm#L499


                                return $frag;







From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk>
Reply-To: <eprints-tech@ecs.soton.ac.uk>
Date: Wednesday, 12 July 2017 10:28
To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Tweaking the "creators" section on the workflow


Hello all,


I’m trying to alter the output on the “Creators” section on the EPrints workflow however I’m not sure how to go about doing this. I’ve added, to my new installation, a field for Internal ID to handle a lookup for the new LDAP based user management. This appears at the end of the available fields in the Creator View which is comprised of:


Family Name

Given Name

Unique ID (I think that this a field added by some previous system alterations)

Role (Dropdown)

Internal ID (New field)



What I’d like to do is get rid of the Unique ID field and move the Internal ID field so that it looks like:


Family Name

Given Name

Internal ID




Any thoughts?



The University of Lincoln, located in the heart of the city of Lincoln, has established an international reputation based on high student satisfaction, excellent graduate employment and world-class research.

The information in this e-mail and any attachments may be confidential. If you have received this email in error please notify the sender immediately and remove it from your system. Do not disclose the contents to another person or take copies.

Email is not secure and may contain viruses. The University of Lincoln makes every effort to ensure email is sent without viruses, but cannot guarantee this and recommends recipients take appropriate precautions.

The University may monitor email traffic data and content in accordance with its policies and English law. Further information can be found at: http://www.lincoln.ac.uk/legal.

*** 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/