EPrints Technical Mailing List Archive
Message: #00451
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- Date: Fri, 27 Apr 2012 14:02:27 +0100
Yes Alex, if you want to create your own rendering method, do something like:
'name' => 'related_url', ... 'render_value' => 'alex_render_related_url', ...etc... Then at the end of that file, or better, in its own .pl file: sub alex_render_related_url {# copy content from EPrints::Extras::render_related_url and tweak it accordingly.
} Seb On 27/04/12 11:40, Alex Birchall wrote:
Thanks, Seb. In eprint_fields.pl, there is this stanza: {'name' => 'related_url', 'type' => 'compound', 'multiple' => 1, 'render_value' => 'EPrints::Extras::render_related_url', 'fields' => [ { 'sub_name' => 'url', 'type' => 'url', 'input_cols' => 40, }, { 'sub_name' => 'type', 'type' => 'set', 'options' => [ 'pub', 'author', 'org', ], } ], 'input_boxes' => 1, 'input_ordered' => 0, },Is the above what I need to tweak? Regards, Alex -----Original Message----- From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Sebastien Francois Sent: 26 April 2012 14:13 To: eprints-tech@ecs.soton.ac.uk Subject: [EP-tech] Re: How to make related URLs appear as text links and not bare URLs? While somewhat outdated, this still applies: http://wiki.eprints.org/w/Metadata#Rendering_Properties Also check EPrints::Extras::render_related_url() which seems to do something similar to what you want. Seb.
- References:
- [EP-tech] How to make related URLs appear as text links and not bare URLs?
- From: Alex Birchall <a.birchall@mdx.ac.uk>
- [EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
- From: Alex Birchall <A.Birchall@mdx.ac.uk>
- [EP-tech] How to make related URLs appear as text links and not bare URLs?
- Prev by Date: [EP-tech] {Disarmed} Re: Re: Branding on EPrints 3.3.6
- Next by Date: [EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
- Previous by thread: [EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
- Next by thread: [EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
- Index(es):