[EP-tech] Re: How to make related URLs appear as text links and not bare URLs?
Alex Birchall
A.Birchall at mdx.ac.uk
Fri Apr 27 11:40:05 BST 2012
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 at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Sebastien Francois
Sent: 26 April 2012 14:13
To: eprints-tech at 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.
On 24/04/12 16:36, Alex Birchall wrote:
> Hi,
>
> I would like to configure Eprints so that related URLs in an item record appear to the user as regular textual hyperlinks, not as bare URLs. So, for instance, I would like this URL http://www.mdx.ac.uk/aboutus/staffdirectory/Stewart_Anthony.aspx to appear as the hyperlinked text "Middlesex University Staff Profile".
>
> I am sure the above is not that difficult to do, but I should be most grateful if anyone could let me know how to achieve the effect.
>
> Many thanks.
>
> Alex
>
> Alexander J Birchall
> Library Systems Manager
> The Sheppard Library
> Middlesex University
> The Burroughs
> London NW4 4BT
>
> Tel +44 (0) 208 411 5235
> Mob 07765 237 570
>
>
> *** 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/
*** 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/
More information about the Eprints-tech
mailing list