<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi John,</p>
<p><br>
</p>
<p>Thanks for the tip - much appreciated.</p>
<p><br>
</p>
<p></p>
<div id="divtagdefaultwrapper" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;">
<p>Originally, it was throwing an error that it fails to parse due to a named space error.</p>
<p><br>
</p>
<p></p>
</div>
<blockquote style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px; margin: 0px 0px 0px 40px; border: none; padding: 0px;">
<div style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;">
<p class="p1"><span class="s1"><i>Failed to parse XML file:</i></span></p>
</div>
<div style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;">
<p class="p1"><span class="s1"><i>namespace error : Namespace prefix gcse on search is not defined</i></span></p>
</div>
<div style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif;">
<p class="p1"><span class="s1"><i><gcse:search></gcse:search></i></span></p>
<div><br>
</div>
</div>
</blockquote>
<p></p>
<p>But following your advice, I registered the tag using the following and at least the error has gone away:</p>
<p><br>
</p>
<p></p>
</div>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div><xpage:page xmlns="http://www.w3.org/1999/xhtml" xmlns:xpage="http://eprints.org/ep3/xpage" xmlns:epc="http://eprints.org/ep3/control" xmlns:gcse="google"></div>
</div>
</div>
</blockquote>
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div></div>
<div><br>
</div>
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
Thanks again for the tip! :-)</div>
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<br>
</div>
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
Cheers,</div>
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<br>
Andrew</div>
</div>
<div style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">--</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif"><strong>Andrew Hercules</strong></span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Developer & UX Researcher</span></div>
<div><span style="font-size:12pt">University of London Computer Centre</span><br>
</div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">Senate House, Malet Street, London WC1E 7HU</span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif">+44 (0)20 7863 1342 | </span><span style="font-size:12pt">andrew.hercules@ulcc.ac.uk </span></div>
<div><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:10pt"><em></em></span></div>
<p></p>
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of John Salter <J.Salter@leeds.ac.uk><br>
<b>Sent:</b> 18 October 2016 13:03<br>
<b>To:</b> Dan Watson; eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> Re: [EP-tech] Adding Google Custom Search Engine to EPrints xpage file</font>
<div> </div>
</div>
<div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Hi,</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Apologies, early morning train-based emails... ‘page’ xml is what I meant (i.e. the xpage)…</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Cheers,</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">John</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> Dan Watson [mailto:D.Watson@gold.ac.uk]
<br>
<b>Sent:</b> 18 October 2016 12:23<br>
<b>To:</b> John Salter <J.Salter@leeds.ac.uk>; eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> Re: Adding Google Custom Search Engine to EPrints xpage file</span></p>
</div>
</div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Thanks John.
</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Yes, the error was to do with namespaces. I’m new to eprints, we are reskinning it for our library team, so what/where is cage XML? I think this might be my only possible lead, otherwise
I might have to give up on trying to use GCS. </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black">Cheers</span></p>
</div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black">Dan</span></p>
</div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
<div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Cambria",serif; color:black">___________________________________</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
</div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<b><span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black">Dan Watson</span></b><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black">Web Development Manager</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black">Communications</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black"> </span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black">Goldsmiths, University of London</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black">New Cross, London, SE14 6NW</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black"><a href="http://www.gold.ac.uk/" style="color: blue; text-decoration: underline;" id="LPlnk731024" previewremoved="true">www.gold.ac.uk</a></span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black"> </span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black">+44 (0)207 919 7057</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Georgia",serif; color:black"><a href="mailto:d.watson@gold.ac.uk" style="color: blue; text-decoration: underline;">d.watson@gold.ac.uk</a></span><span lang="EN-US" style="color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Georgia",serif; color:black"> </span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Cambria",serif; color:black">___________________________________</span><span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"></span></p>
</div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:10.5pt; font-family:"Calibri",sans-serif; color:black"> </span></p>
</div>
</div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<b><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">From:
</span></b><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">John Salter <<a href="mailto:J.Salter@leeds.ac.uk" style="color: blue; text-decoration: underline;">J.Salter@leeds.ac.uk</a>><br>
<b>Date: </b>Tuesday, 18 October 2016 at 07:00<br>
<b>To: </b>"<a href="mailto:eprints-tech@ecs.soton.ac.uk" style="color: blue; text-decoration: underline;">eprints-tech@ecs.soton.ac.uk</a>" <<a href="mailto:eprints-tech@ecs.soton.ac.uk" style="color: blue; text-decoration: underline;">eprints-tech@ecs.soton.ac.uk</a>><br>
<b>Cc: </b>Dan Watson <<a href="mailto:D.Watson@gold.ac.uk" style="color: blue; text-decoration: underline;">D.Watson@gold.ac.uk</a>><br>
<b>Subject: </b>Re: Adding Google Custom Search Engine to EPrints xpage file</span></p>
</div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US"> </span></p>
</div>
<div>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US">What is the error that gets thrown?<br>
Anything to do with namespaces?<br>
<br>
I'm guessing you're putting balanced tags in - so my hunch is that the gcse: is an unrecognised name space?<br>
If so, does registering it in the top of the cage XML help?<br>
<br>
(Not tried any of this... - just early-morning guessing!)<br>
<br>
Cheers,<br>
John</span></p>
<div align="center" style="text-align: center; margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">From:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">
<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" style="color: blue; text-decoration: underline;">
eprints-tech-bounces@ecs.soton.ac.uk</a> <<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" style="color: blue; text-decoration: underline;">eprints-tech-bounces@ecs.soton.ac.uk</a>> on behalf of Andrew Hercules <<a href="mailto:Andrew.Hercules@ulcc.ac.uk" style="color: blue; text-decoration: underline;">Andrew.Hercules@ulcc.ac.uk</a>><br>
<b>Sent:</b> 17 October 2016 21:55:19<br>
<b>To:</b> <a href="mailto:eprints-tech@ecs.soton.ac.uk" style="color: blue; text-decoration: underline;">
eprints-tech@ecs.soton.ac.uk</a><br>
<b>Cc:</b> Dan Watson<br>
<b>Subject:</b> [EP-tech] Adding Google Custom Search Engine to EPrints xpage file</span><span lang="EN-US">
</span></p>
<div>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US"> </span></p>
</div>
</div>
<div>
<div id="divtagdefaultwrapper">
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Hi all,</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Just wondering ... has anybody been able to implement a Google Custom Search Engine with EPrints. I noticed that ROAR attempted to do it - <a href="http://roar.eprints.org/content.html" id="LPlnk764674" style="color: blue; text-decoration: underline;" previewremoved="true">http://roar.eprints.org/content.html</a> -
but when I run a search, I get a 403 error.</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">The problem is that when the tag <gcse> is put in an xpage file, EPrints throws an error - I'm assuming it doesn't recognise the tag. Wrapping the tag in cdata tags or using JavaScript
to insert the element don't work.</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Any suggestions/tips would be much appreciated.</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Thank you!</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Cheers,</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Andrew</span></p>
<p><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"> </span></p>
<div id="Signature">
<div id="divtagdefaultwrapper">
<div>
<p style="background: white; margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">--</span></p>
</div>
<div>
<p style="background: white; margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<strong><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Andrew Hercules</span></strong><span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black"></span></p>
</div>
<div>
<p style="background: white; margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Developer & UX Researcher</span></p>
</div>
<div>
<p style="background: white; margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">University of London Computer Centre</span></p>
</div>
<div>
<p style="background: white; margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">Senate House, Malet Street, London WC1E 7HU</span></p>
</div>
<div>
<p style="background: white; margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman", serif;">
<span lang="EN-US" style="font-family:"Calibri",sans-serif; color:black">+44 (0)20 7863 1342 | <a href="mailto:andrew.hercules@ulcc.ac.uk" style="color: blue; text-decoration: underline;">andrew.hercules@ulcc.ac.uk</a> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>