<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hi James,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">How are you including the tags in the index.xpage?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">If you're adding them to the &lt;xpage:body&gt;, then this might be useful:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FAPI%3AEPrints%2FApache%2FTemplate%23Static_HTML_Pages&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36b9e03bc98641dddb0908d69d9cda6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=pb69wmbO1vu30wMaWMFDbqRhfJXBRo0TzlkS%2FAptXDM%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/API:EPrints/Apache/Template#Static_HTML_Pages" shash="E+cSlG1rZFnC/zHvhlKuVhQj3aK3uX3Pg6LBUqakPCxJO374m5oApqgZswtqKmvphX27LzaPT6VSblkiHWpES78gw5Ft3zYOBPtTYYcaud5UMmTwfzxWLDNGUoKlpfXXnOSWHIaLOSC4FFJXWTBfU+/ucTHiYucd7nqA7/wN2S4=">https://wiki.eprints.org/w/API:EPrints/Apache/Template#Static_HTML_Pages</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">There's an &lt;xpage:head&gt; which will get added to the template in the &lt;head&gt; area - which might be what you need?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">John<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
<b>On Behalf Of </b>James Kerwin via Eprints-tech<br>
<b>Sent:</b> 28 February 2019 16:33<br>
<b>To:</b> eprints-tech@ecs.soton.ac.uk<br>
<b>Subject:</b> [EP-tech] Open graph Tags<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Has anybody attempted to use Open Graph tags in EPrints to facilitate sharing links on social media?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I'm attempting it now and I can get it to work on EPrint abstracts, but not on the repository home page. On the latter I'm getting a title different to my test title and an image that isn't the one I stipulate.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">For example, my Test versions of the og tags are:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;meta property=&quot;og:title&quot;&nbsp; content=&quot;zebra&quot;/&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">&lt;meta property=&quot;og:image&quot; content=&quot;<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.liverpool.ac.uk%2Fmedia%2Flivacuk%2Fliverpool-advantage.jpg&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C36b9e03bc98641dddb0908d69d9cda6a%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=0QhENSwwA5MpUFKrZH2jEOV6j7UQ8wiTa5W9fFzqxH0%3D&amp;reserved=0" originalSrc="https://www.liverpool.ac.uk/media/livacuk/liverpool-advantage.jpg" shash="C7U6SgabEMRXNSgx12hdXt07QtCORwn18HEOOd+od5uJTg+XiP6yoloKMtvZoZqgG8uToALU61idiwiG5jJNu4eyOOWcIvThpZdvZBi0iae7Vjl7XNeS6VDEyg+NS6QtqQyu4gyVpTaQLlLFmAcZiMpCqKRxIe4gjbOgrRkLYGQ=">https://www.liverpool.ac.uk/media/livacuk/liverpool-advantage.jpg</a>&quot;/&gt;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I have included these in my default.xml template. This allows the link to be shown with the correct title and image for abstracts. Unfortunately it doesn't work for the home page, so I inserted these tags into my index.xpage which doesn't
 seem to have worked either. When sharing a link to the home page it shows me the title of the page that exists between the &lt;title&gt;&lt;/title&gt; tags in default.xml and the first image that occurs in index.xpage.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I've tried putting the OG tags in different places, restarting the server after changes and removing the previously mentioned &lt;title&gt;&lt;/title&gt; tags to see what happens and no success so I'm assuming it might be a quirk of EPrints? Or am
 I putting these in the wrong place? I appreciate it's a broad question as we all have different tags etc in our various files, but if anybody can shed any light on this I would be really grateful.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">When I started this earlier I thought it wouldn't take long as it's not particularly difficult, how wrong I was!<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">James<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>