<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Emilian,</p>
<p> <span id="result_box" class="" lang="en"><span class="">you
should adjust the <head> ... </head> section of
your template to the new version of eprints eliminating almost
everything as you see in
<a class="moz-txt-link-freetext" href="https://github.com/eprints/eprints/blob/3.3/lib/templates/default.xml">https://github.com/eprints/eprints/blob/3.3/lib/templates/default.xml</a>.</span>
<br>
</span></p>
<p><span id="result_box" class="" lang="en"><span>In the new version
js and css files as many <meta> tags are added via
TRIGGER (see
<a class="moz-txt-link-freetext" href="https://github.com/eprints/eprints/blob/3.3/lib/cfg.d/template_core.pl">https://github.com/eprints/eprints/blob/3.3/lib/cfg.d/template_core.pl</a>)</span></span></p>
<p><span id="result_box" class="" lang="en"><span> Enio<br>
</span></span></p>
<br>
<div class="moz-cite-prefix">Il 28/09/2017 09:21, Mitocariu Emilian
ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:EMEW3|243507e65f8fe6b687bd5f6a2b7e4a60y8R8Lm14eprints-tech-bounces|ecs.soton.ac.uk|CA+rSDaTzP9B=NywkLUDWk_ftO-mC8rUfDB=wXmP5FpMUcWi2fQ@mail.gmail.com">
<div dir="ltr">In secure.xml and default.xml, there is only this
line with a <script> tag:
<div><script
src="{$config{secure_url}}/javascript/secure_auto.js"
type="text/javascript"><!-- nope --></script><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Sep 28, 2017 at 10:11 AM, John
Salter <span dir="ltr"><<a
href="mailto:J.Salter@leeds.ac.uk" target="_blank"
moz-do-not-send="true">J.Salter@leeds.ac.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
What <script>tags are there in your template for
javascript/xxx files?
<hr style="display:inline-block;width:98%">
<div id="m_-6944391500813582330divRplyFwdMsg" dir="ltr"><font
style="font-size:11pt" color="#000000" face="Calibri,
sans-serif"><b>From:</b> <a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
target="_blank" moz-do-not-send="true">eprints-tech-bounces@ecs.<wbr>soton.ac.uk</a>
<<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
target="_blank" moz-do-not-send="true">eprints-tech-bounces@ecs.<wbr>soton.ac.uk</a>>
on behalf of Mitocariu Emilian <<a
href="mailto:mitocariu.emilian@gmail.com"
target="_blank" moz-do-not-send="true">mitocariu.emilian@gmail.com</a>><br>
<b>Sent:</b> 28 September 2017 06:53:10
<div>
<div class="h5"><br>
<b>To:</b> <a
href="mailto:eprints-tech@ecs.soton.ac.uk"
target="_blank" moz-do-not-send="true">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> Re: [EP-tech] Black overlay covers
half of the webpage</div>
</div>
</font>
<div> </div>
</div>
<div>
<div class="h5">
<div>
<div dir="ltr">I have a template secure.xml, it's
exactly the same as default.xml. I renamed it to
secure.xml.old, deleted the content
of [EPRINTS_ROOT]/archives/[<wbr>ARCHIVEID]/html/
and generated the pages again, but same problem.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Sep 27, 2017 at
6:49 PM, John Salter <span dir="ltr">
<<a href="mailto:J.Salter@leeds.ac.uk"
target="_blank" moz-do-not-send="true">J.Salter@leeds.ac.uk</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB">
<div
class="m_-6944391500813582330m_-8200844350416943973WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi,</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">[Hopefully
Peter or someone will confirm whether
'secure.xml' is needed any more!]</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Do
you have a template file called
'secure.xml' in your install?</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">How
does it compare with the 'default.xml'
template?</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Looking
at the code in the
bin/generate_apacheconf, the default
template might get copied (but not all
cases are covered - e.g. templates in
a theme).</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The
javascript variables that differ
between secure_auto.js and
auto-3.3.15.js are now dynamically
generated in [EPRINTS_ROOT]/lib/cfg.d/<a
href="http://template_core.pl"
target="_blank"
moz-do-not-send="true">templ<wbr>ate_core.pl</a></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">So
I *<b>think</b>* the secure template
isn't needed any more.</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">If
secure.xml exists, and you
remove/rename it, does it all work OK?</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Cheers,</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">John</span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">
<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech-bounces@ecs.soton<wbr>.ac.uk</a>
[mailto:<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech-bounces@e<wbr>cs.soton.ac.uk</a>]
<b>On Behalf Of </b>Mitocariu Emilian<br>
<b>Sent:</b> 27 September 2017 15:36<br>
<b>To:</b> <a
href="mailto:eprints-tech@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech@ecs.soton.ac.uk</a><br>
<b>Subject:</b> Re: [EP-tech] Black
overlay covers half of the webpage</span></p>
<div>
<div class="m_-6944391500813582330h5">
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Every
index.html file from <span
style="font-size:9.5pt">[EPRINTS_ROOT]/archives/[<wbr>ARCHIVEID]/html/en
and other subdirectories
contains these two lines:</span></p>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt"><script
src="<a
href="https://eprints.domain.com/javascript/secure_auto.js"
target="_blank"
moz-do-not-send="true">https://eprints.domain.co<wbr>m/javascript/secure_auto.js</a>"
type="text/javascript"><!-- nope --></script></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt"><script
type="text/javascript"
src="/javascript/auto-3.3.15.j<wbr>s"><!--padder--></script></span></p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt">I
assume it should contain just
one of the lines.</span></p>
</div>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal"><span
style="font-size:9.5pt">Are
these files generated with a
template? Or what could make
eprints to generate these
files containing both those
lines? </span></p>
</div>
</div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On Wed, Sep
27, 2017 at 2:43 PM, Mitocariu
Emilian <<a
href="mailto:mitocariu.emilian@gmail.com"
target="_blank"
moz-do-not-send="true">mitocariu.emilian@gmail.com</a>>
wrote:</p>
<blockquote
style="border:none;border-left:solid
#cccccc 1.0pt;padding:0cm 0cm
0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">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'<wbr>,
function () { new
Lightbox(); });".</p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On
Wed, Sep 27, 2017 at
1:05 PM, Peter West
<<a
href="mailto:pjw@repositoryservices.co.uk"
target="_blank"
moz-do-not-send="true">pjw@repositoryservices.co.uk</a>>
wrote:</p>
<blockquote
style="border:none;border-left:solid
#cccccc
1.0pt;padding:0cm 0cm
0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Hi
John<br>
is this caused by a
secure.xml template
causing a duplicate
call?<br>
<br>
Thanks<br>
Peter<br>
<br>
On 27/09/17 10:38,
John Salter wrote:<br>
> OK - there is
something else
making the
duplicated lightbox.<br>
><br>
> I'm sure this
has come up
previously on the
tech list, but I
can't find<br>
> any mention of
it now.<br>
><br>
><br>
><br>
> In the
javascript/auto-3.3.15.js
file, the following
line initiates the<br>
> lightbox:<br>
><br>
>
document.observe('dom:loaded',
function () { new
Lightbox(); });<br>
><br>
><br>
><br>
> Either there is
another line also
adding a 'new
Lightbox();', or
somehow<br>
> the
'dom:loaded' event
is being triggered
twice.<br>
><br>
><br>
><br>
> In the
screenshot you have
the browser
development tools
open. Do you<br>
> know how to use
this to debug
javascript?<br>
><br>
> If so, you
could try and see
what is calling the
Lightbox code.<br>
><br>
><br>
><br>
> Cheers,<br>
><br>
> John<br>
><br>
><br>
><br>
> *From:*<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech-bounces@ec<wbr>s.soton.ac.uk</a><br>
> [mailto:<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech-bounces@e<wbr>cs.soton.ac.uk</a>]
*On Behalf Of
*Mitocariu<br>
> Emilian<br>
> *Sent:* 27
September 2017 09:59<br>
> *To:* <a
href="mailto:eprints-tech@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech@ecs.soton.ac.uk</a><br>
> *Subject:* Re:
[EP-tech] Black
overlay covers half
of the webpage<br>
><br>
><br>
><br>
> I have one<br>
> file
[EPRINTS_ROOT]/archives/[ARCHI<wbr>VEID]/cfg/static/javascript/<wbr>auto/90_local.js,<br>
> but I'm
guessing that comes
with eprints, plus
the file only
contains a<br>
> comment with
some instructions.<br>
><br>
><br>
><br>
> On Wed, Sep 27,
2017 at 11:30 AM,
John Salter <<a
href="mailto:J.Salter@leeds.ac.uk"
target="_blank"
moz-do-not-send="true">J.Salter@leeds.ac.uk</a><br>
> <mailto:<a
href="mailto:J.Salter@leeds.ac.uk"
target="_blank"
moz-do-not-send="true">J.Salter@leeds.ac.uk</a>>>
wrote:<br>
><br>
> Hi,<br>
><br>
> I think
what you're seeing
is part of the
'lightbox'
functionality.<br>
><br>
> You can see
the repeated<br>
><br>
> <div
id="overlay"…><br>
><br>
> <div
id="lightbox"…><br>
><br>
> <div
id="overlay"…><br>
><br>
> <div
id="lightbox"…><br>
><br>
> in the
screenshot you sent.<br>
><br>
> For some
reason, the lightbox
is being set up
twice, but only the<br>
> first
overlay (which is
the black box) is
being hidden.<br>
><br>
><br>
><br>
> Do you have
any custom
javascript in<br>
>
[EPRINTS_ROOT]/archives/[ARCH<wbr>IVEID]/cfg/static/javascript/?<br>
><br>
><br>
><br>
> Cheers,<br>
><br>
> John<br>
><br>
><br>
><br>
> *From:*<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech-bounces@e<wbr>cs.soton.ac.uk</a><br>
> <mailto:<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank"
moz-do-not-send="true">eprints-tech-bounces@<wbr>ecs.soton.ac.uk</a>><br>
> [mailto:<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank"
moz-do-not-send="true">eprints-tech-bounces@<wbr>ecs.soton.ac.uk</a><br>
> <mailto:<a
href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank"
moz-do-not-send="true">eprints-tech-bounces@<wbr>ecs.soton.ac.uk</a>>]
*On Behalf Of<br>
> *Mitocariu
Emilian<br>
> *Sent:* 27
September 2017 09:07<br>
> *To:* <a
href="mailto:eprints-tech@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech@ecs.soton.ac.uk</a>
<mailto:<a
href="mailto:eprints-tech@ecs.soton.ac.uk"
target="_blank"
moz-do-not-send="true">eprints-tech@ecs.soton<wbr>.ac.uk</a>><br>
> *Subject:*
[EP-tech] Black
overlay covers half
of the webpage<br>
><br>
><br>
><br>
> Hi,<br>
><br>
><br>
><br>
> I'm trying
to migrate eprints
from a server with
ubuntu 10.04.4 and<br>
> eprints
3.3.7 to a new
server with ubuntu
16.04.03 and eprints<br>
> 3.3.15. I
did the migration as
described<br>
> here: <a
href="https://wiki.eprints.org/w/Moving_a_repository"
target="_blank"
moz-do-not-send="true">
https://wiki.eprints.org/w/Mov<wbr>ing_a_repository</a>, but i also ran<br>
> this
command
"./bin/epadmin
update myrepo" after
"./bin/epadmin<br>
> upgrade
myrepo".<br>
><br>
><br>
><br>
> I set up a
temporary domain to
test the migration
and when I visited<br>
> the
webpage, about half
of the page was
black. I realised
that the<br>
> eprints
configuration file
(cfg/cfg.d/<a
href="http://10_core.pl"
target="_blank"
moz-do-not-send="true">10_core.pl</a><br>
> <<a
href="http://10_core.pl"
target="_blank"
moz-do-not-send="true">http://10_core.pl</a>>)
still had the
original domain set,
not the</p>
<div>
<div>
<p
class="MsoNormal">>
temporary
one, so I
changed it with
"./bin/epadmin<br>
>
config_core<archivename>",
generated the
new webpages and
the black<br>
> overlay
disappeared.<br>
><br>
><br>
><br>
> The
server is behind
a proxy, so I
generated a
certificate on
the<br>
> proxy
and enabled
HTTPS. Now the
black overlay
reappeared and I<br>
> can't
get rid of it. I
attached a print
screen to this
email for<br>
> more
details.<br>
><br>
><br>
><br>
> Does
anyone know what
causes the black
overlay to
appear and how
can<br>
> i get
rid of it?<br>
><br>
><br>
> ***
Options:<br>
> <a
href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"
target="_blank" moz-do-not-send="true">http://mailman.ecs.soton.ac.u<wbr>k/mailman/listinfo/eprints-tec<wbr>h</a><br>
> ***
Archive: <a
href="http://www.eprints.org/tech.php/"
target="_blank" moz-do-not-send="true">http://www.eprints.org/tech.ph<wbr>p/</a><br>
> ***
EPrints
community wiki:
<a
href="http://wiki.eprints.org/"
target="_blank" moz-do-not-send="true">
http://wiki.eprints.org/</a><br>
> ***
EPrints
developers
Forum: <a
href="http://forum.eprints.org/"
target="_blank" moz-do-not-send="true">
http://forum.eprints.org/</a><br>
><br>
><br>
><br>
><br>
><br>
> ***
Options: <a
href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"
target="_blank" moz-do-not-send="true">
http://mailman.ecs.soton.ac.uk<wbr>/mailman/listinfo/eprints-tech</a><br>
> ***
Archive: <a
href="http://www.eprints.org/tech.php/"
target="_blank" moz-do-not-send="true">http://www.eprints.org/tech.ph<wbr>p/</a><br>
> *** EPrints
community wiki:
<a
href="http://wiki.eprints.org/"
target="_blank" moz-do-not-send="true">
http://wiki.eprints.org/</a><br>
> *** EPrints
developers
Forum: <a
href="http://forum.eprints.org/"
target="_blank" moz-do-not-send="true">
http://forum.eprints.org/</a><br>
><br>
<br>
*** Options: <a
href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"
target="_blank"
moz-do-not-send="true">
http://mailman.ecs.soton.ac.uk<wbr>/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a
href="http://www.eprints.org/tech.php/" target="_blank"
moz-do-not-send="true">http://www.eprints.org/tech.ph<wbr>p/</a><br>
*** EPrints
community wiki:
<a
href="http://wiki.eprints.org/"
target="_blank" moz-do-not-send="true">http://wiki.eprints.org/</a><br>
*** EPrints
developers
Forum: <a
href="http://forum.eprints.org/"
target="_blank" moz-do-not-send="true">
http://forum.eprints.org/</a></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</div>
<br>
*** Options: <a
href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"
rel="noreferrer" target="_blank"
moz-do-not-send="true">
http://mailman.ecs.soton.ac.uk<wbr>/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a
href="http://www.eprints.org/tech.php/"
rel="noreferrer" target="_blank"
moz-do-not-send="true">
http://www.eprints.org/tech.ph<wbr>p/</a><br>
*** EPrints community wiki: <a
href="http://wiki.eprints.org/"
rel="noreferrer" target="_blank"
moz-do-not-send="true">
http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a
href="http://forum.eprints.org/"
rel="noreferrer" target="_blank"
moz-do-not-send="true">
http://forum.eprints.org/</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
*** Options: <a
href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/eprints-<wbr>tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.eprints.org/tech.<wbr>php/</a><br>
*** EPrints community wiki: <a
href="http://wiki.eprints.org/" rel="noreferrer"
target="_blank" moz-do-not-send="true">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a
href="http://forum.eprints.org/" rel="noreferrer"
target="_blank" moz-do-not-send="true">http://forum.eprints.org/</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="http://www.eprints.org/tech.php/">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="http://wiki.eprints.org/">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="moz-txt-link-freetext" href="http://forum.eprints.org/">http://forum.eprints.org/</a>
</pre>
</blockquote>
<br>
</body>
</html>