[EP-tech] Re: html is shown when user hovers on preview links

Bob Stevens stevens at library.umass.edu
Tue Jul 15 17:53:07 BST 2014

I had this same problem, and fixed it by modifying the render_preview_link subroutine to just not 
display that "title" attribute (which appears when you hover over the "Preview" link.

The file path is:

sub render_preview_link
         if( defined $url )
                 my $link = $self->{session}->make_element( "a",
                                 rel=>"lightbox$set nofollow",
                                 # incorrect html displayed in title attribute
                                 # title=>EPrints::XML::to_string($caption),
                 $link->appendChild( $self->{session}->html_phrase( "lib/document:preview" ) );
                 $f->appendChild( $link );

On 07/15/2014 07:00 AM, eprints-tech-request at ecs.soton.ac.uk wrote:
> ----------------------------------------------------------------------
> Message: 1
> Date: Mon, 14 Jul 2014 20:26:04 +0200
> From: Jacob Wenzel <jw at energiakademiet.dk>
> Subject: [EP-tech]  html is shown when user hovers on preview links
> To: eprints-tech at ecs.soton.ac.uk
> Message-ID: <53C420BC.50509 at energiakademiet.dk>
> Content-Type: text/plain; charset="iso-8859-1"
> I have been trying to solve this problem in my repository for a while
> now, but now I see that the official EPrints demo has the same behaviour.
> Try hovering on the preview link of any eprint in the demo, ie:
> http://demoprints.eprints.org/25/
> You will see the html for some kind of citation, but it is not rendering.
> What is actually supposed to happen, and how do I fix it?

Bob Stevens
Web Database Developer
Center for Hierarchical Manufacturing
University of Massachusetts Amherst
stevens at library.umass.edu

More information about the Eprints-tech mailing list