EPrints Technical Mailing List Archive
Message: #06867
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Black overlay covers half of the webpage
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] Black overlay covers half of the webpage
- From: Mitocariu Emilian <mitocariu.emilian@gmail.com>
- Date: Wed, 27 Sep 2017 17:35:58 +0300
Every index.html file from [EPRINTS_ROOT]/archives/[ARCHIVEID]/html/en and other subdirectories contains these two lines:
<script src="" href="https://eprints.domain.com/_javascript_/secure_auto.js">https://eprints.domain.com/_javascript_/secure_auto.js" type="text/_javascript_"><!-- nope --></script>
<script type="text/_javascript_" src="">
I assume it should contain just one of the lines.
Are these files generated with a template? Or what could make eprints to generate these files containing both those lines?
On Wed, Sep 27, 2017 at 2:43 PM, Mitocariu Emilian <mitocariu.emilian@gmail.com> wrote:
After a little investigation it seems that two _javascript_ files are loaded: _javascript_/auto-3.3.15.js and _javascript_/secure_auto.js. Both contain the line "document.observe('dom:loaded', function () { new Lightbox(); });". On Wed, Sep 27, 2017 at 1:05 PM, Peter West <pjw@repositoryservices.co.uk> wrote:Hi John
is this caused by a secure.xml template causing a duplicate call?
Thanks
Peter
On 27/09/17 10:38, John Salter wrote:
> OK - there is something else making the duplicated lightbox.
>
> I'm sure this has come up previously on the tech list, but I can't find
> any mention of it now.
>
>
>
> In the _javascript_/auto-3.3.15.js file, the following line initiates the
> lightbox:
>
> document.observe('dom:loaded', function () { new Lightbox(); });
>
>
>
> Either there is another line also adding a 'new Lightbox();', or somehow
> the 'dom:loaded' event is being triggered twice.
>
>
>
> In the screenshot you have the browser development tools open. Do you
> know how to use this to debug _javascript_?
>
> If so, you could try and see what is calling the Lightbox code.
>
>
>
> Cheers,
>
> John
>
>
>
> *From:*eprints-tech-bounces@ecs.soton.ac.uk
> [mailto:eprints-tech-bounces@ecs.soton.ac.uk ] *On Behalf Of *Mitocariu
> Emilian
> *Sent:* 27 September 2017 09:59
> *To:* eprints-tech@ecs.soton.ac.uk
> *Subject:* Re: [EP-tech] Black overlay covers half of the webpage
>
>
>
> I have one
> file [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/static/_javascript_/ > <mailto:J.Salter@leeds.ac.uk>> wrote:auto/90_local.js,
> but I'm guessing that comes with eprints, plus the file only contains a
> comment with some instructions.
>
>
>
> On Wed, Sep 27, 2017 at 11:30 AM, John Salter <J.Salter@leeds.ac.uk
>
> Hi,
>
> I think what you're seeing is part of the 'lightbox' functionality.
>
> You can see the repeated
>
> <div id="overlay"…>
>
> <div id="lightbox"…>
>
> <div id="overlay"…>
>
> <div id="lightbox"…>
>
> in the screenshot you sent.
>
> For some reason, the lightbox is being set up twice, but only the
> first overlay (which is the black box) is being hidden.
>
>
>
> Do you have any custom _javascript_ in
> [EPRINTS_ROOT]/archives/[ARCHIVEID]/cfg/static/_javascript_/? > *From:*eprints-tech-bounces@e
>
>
>
> Cheers,
>
> John
>
>
>
cs.soton.ac.uk
> <mailto:eprints-tech-bounces@ecs.soton.ac.uk >
> [mailto:eprints-tech-bounces@ecs.soton.ac.uk
> <mailto:eprints-tech-bounces@ecs.soton.ac.uk >] *On Behalf Of
> *Mitocariu Emilian
> *Sent:* 27 September 2017 09:07
> *To:* eprints-tech@ecs.soton.ac.uk <mailto:eprints-tech@ecs.soton.ac.uk >
> *Subject:* [EP-tech] Black overlay covers half of the webpage
>
>
>
> Hi,
>
>
>
> I'm trying to migrate eprints from a server with ubuntu 10.04.4 and
> eprints 3.3.7 to a new server with ubuntu 16.04.03 and eprints
> 3.3.15. I did the migration as described
> here: https://wiki.eprints.org/w/Moving_a_repository , but i also ran
> this command "./bin/epadmin update myrepo" after "./bin/epadmin
> upgrade myrepo".
>
>
>
> I set up a temporary domain to test the migration and when I visited
> the webpage, about half of the page was black. I realised that the
> eprints configuration file (cfg/cfg.d/10_core.pl
> <http://10_core.pl>) still had the original domain set, not the
> temporary one, so I changed it with "./bin/epadmin
> config_core<archivename>", generated the new webpages and the black
> overlay disappeared.
>
>
>
> The server is behind a proxy, so I generated a certificate on the
> proxy and enabled HTTPS. Now the black overlay reappeared and I
> can't get rid of it. I attached a print screen to this email for
> more details.
>
>
>
> Does anyone know what causes the black overlay to appear and how can
> i get rid of it?
>
>
> *** Options:
> http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tec h
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.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/
> *** EPrints developers Forum: http://forum.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/
*** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] Black overlay covers half of the webpage
- From: Mitocariu Emilian <mitocariu.emilian@gmail.com>
- Re: [EP-tech] Black overlay covers half of the webpage
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Black overlay covers half of the webpage
- From: Mitocariu Emilian <mitocariu.emilian@gmail.com>
- Re: [EP-tech] Black overlay covers half of the webpage
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Black overlay covers half of the webpage
- From: Peter West <pjw@repositoryservices.co.uk>
- Re: [EP-tech] Black overlay covers half of the webpage
- From: Mitocariu Emilian <mitocariu.emilian@gmail.com>
- [EP-tech] Black overlay covers half of the webpage
- Prev by Date: Re: [EP-tech] Black overlay covers half of the webpage
- Next by Date: Re: [EP-tech] Black overlay covers half of the webpage
- Previous by thread: Re: [EP-tech] Black overlay covers half of the webpage
- Next by thread: Re: [EP-tech] Black overlay covers half of the webpage
- Index(es):