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
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Tweaking the "creators" section on the workflow
- From: Adam Field <adam@adamfield.net>
- Date: Wed, 12 Jul 2017 11:07:53 +0100
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; } -- Adam From: <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Andrew Beeken <anbeeken@lincoln.ac.uk> 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 Role Any thoughts? Andrew
*** 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/ |
- Prev by Date: [EP-tech] FW: Issues uploading files
- Next by Date: Re: [EP-tech] FW: Issues uploading files
- Previous by thread: [EP-tech] Tweaking the "creators" section on the workflow
- Next by thread: Re: [EP-tech] Tweaking the "creators" section on the workflow
- Index(es):