<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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";
        color:black;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
span.epdocumentcitation
        {mso-style-name:ep_document_citation;}
span.documentformat
        {mso-style-name:document_format;}
span.documentfilename
        {mso-style-name:document_filename;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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 bgcolor=white lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The summary page is generated here: <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>~/archives/ARCHIVEID/cfg/citations/eprint/summary_page.xml<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>In that file, there’s a loop for all documents, which uses:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><epc:print expr="$doc.citation('default')" /><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The above will be using: ~/archives/ARCHIVEID/cfg/citations/document/default.xml.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you edit this file to output the language (assuming the document language is stored in a document metadata field called ‘language’):<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><epc:if test="language"><epc:print expr="language" /></epc:if><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Cheers,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] <b>On Behalf Of </b>Jacob Wenzel<br><b>Sent:</b> 28 May 2014 13:18<br><b>To:</b> 'eprints-tech@ecs.soton.ac.uk'<br><b>Subject:</b> [EP-tech] Print document language on summary page.<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In my respository I often have multiple language specific versions om the same document in my eprints.<br><br>I would like to display the document language on the EPrint summary page (Not sure if the is the correct term, but I pages like: <a href="http://example.com/22/">http://example.com/22/</a>).<br><br>This link explains how to print it on the document preview page, but first of all it does not render correctly on my site, and secondly I would like to display the language without user interaction.<br><a href="http://wiki.eprints.org/w/Translation#Setting_document_language">http://wiki.eprints.org/w/Translation#Setting_document_language</a><br><br><span class=documentformat>[type]</span><span class=epdocumentcitation> </span><br><span class=documentfilename>[filename.ext]</span><br><a href="http://energiinstituttet.dk/65/1/LOGO_energiakademiet_21_10_2011_large.jpg">Download ([size])</a> | <a href="http://energiinstituttet.dk/65/1.haslightboxThumbnailVersion/LOGO_energiakademiet_21_10_2011_large.jpg" title=" <!-- document citation --> <span class="ep_document_citation" xmlns="http://www.w3.org/1999/xhtml" xmlns:cite="http://eprints.org/ep3/citation" xmlns:epc="http://eprints.org/ep3/control"> <a class="ep_document_li">Preview</a><br><br><b>The solution I'm looking for could be:</b><br><br><span class=documentformat>[type] | [language]</span><span class=epdocumentcitation> </span><br><span class=documentfilename>[filename.ext]</span><br><a href="http://energiinstituttet.dk/65/1/LOGO_energiakademiet_21_10_2011_large.jpg">Download ([size])</a> | <a href="http://energiinstituttet.dk/65/1.haslightboxThumbnailVersion/LOGO_energiakademiet_21_10_2011_large.jpg" title=" <!-- document citation --> <span class="ep_document_citation" xmlns="http://www.w3.org/1999/xhtml" xmlns:cite="http://eprints.org/ep3/citation" xmlns:epc="http://eprints.org/ep3/control"> <a class="ep_document_li">Preview</a><br><br>Which file should I edit? Thanks in advance!<o:p></o:p></p><div><p class=MsoNormal>-- <o:p></o:p></p><p><strong><span style='color:#999999'>Med venlig hilsen/Best regards</span></strong><span style='color:#999999'><o:p></o:p></span></p><p><strong><span style='color:#999999'>JACOB WENZEL</span></strong><b><span style='color:#999999'><br><strong>Projektleder</strong></span></b><span style='color:#999999'><o:p></o:p></span></p><p><strong><span style='color:#999999'>ENERGIAKADEMIET</span></strong><span style='color:#999999'><br>Strandengen 1<br>8305 SAMSØ<br>+45 60 61 15 97<br><a href="mailto:jw@energiakademiet.dk"><span style='color:#999999;text-decoration:none'>jw@energiakademiet.dk</span></a><br><a href="http://energiakademiet.dk"><span style='color:#999999;text-decoration:none'>www.energiakademiet.dk</span></a><o:p></o:p></span></p></div></div></body></html>