[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Front End/JacaScript



Hello,

It's me again (sorry). I'm trying to get to grips with the EPrints front
end this week.

I've managed to find (hopefully) all of the autoloading JavaScript and CSS
files and managed to make a couple of my own in my repository directories.

I was looking today at how these boxes work (any collapse/expand box in
EPrints):

[image: image.png]

When I inspect the "+" symbol in chrome it takes me to an element with this:

<a class="ep_box_collapse_link" onclick="EPJS_blur(event);
EPJS_toggleSlideScroll('ep_summary_box_5254_content',false,'ep_summary_box_5254');EPJS_toggle('ep_summary_box_5254_colbar',true);EPJS_toggle('ep_summary_box_5254_bar',false);return
false" href="#"><img alt="+" src="/style/images/plus.png" border="0"> CORE
(COnnecting REpositories)</a>

A quick google points me to this file in Eprints:

/opt/eprints3/perl_lib/EPrints/Box.pm

Can anybody advise me, or point me to some guidance, on how I would alter
the behaviour of this piece of JavaScript? I'm not certain, but I'm about
99% sure that I don't edit Box.pm at this location.

This isn't particularly urgent, I'm just trying to learn how it works.

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20180906/2ee01bf6/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 10653 bytes
Desc: not available
Url : http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20180906/2ee01bf6/attachment-0001.png