[EP-tech] Re: Print document language on summary page.

John Salter J.Salter at leeds.ac.uk
Wed May 28 14:55:15 BST 2014


Hi,
The summary page is generated here:
~/archives/ARCHIVEID/cfg/citations/eprint/summary_page.xml

In that file, there’s a loop for all documents, which uses:
<epc:print expr="$doc.citation('default')" />

The above will be using: ~/archives/ARCHIVEID/cfg/citations/document/default.xml.
If you edit this file to output the language (assuming the document language is stored in a document metadata field called ‘language’):
<epc:if test="language"><epc:print expr="language" /></epc:if>

Cheers,
John

From: eprints-tech-bounces at ecs.soton.ac.uk [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Jacob Wenzel
Sent: 28 May 2014 13:18
To: 'eprints-tech at ecs.soton.ac.uk'
Subject: [EP-tech] Print document language on summary page.

In my respository I often have multiple language specific versions om the same document in my eprints.

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: http://example.com/22/).

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.
http://wiki.eprints.org/w/Translation#Setting_document_language

[type]
[filename.ext]
Download ([size])<http://energiinstituttet.dk/65/1/LOGO_energiakademiet_21_10_2011_large.jpg> | Preview<http://energiinstituttet.dk/65/1.haslightboxThumbnailVersion/LOGO_energiakademiet_21_10_2011_large.jpg>

The solution I'm looking for could be:

[type] | [language]
[filename.ext]
Download ([size])<http://energiinstituttet.dk/65/1/LOGO_energiakademiet_21_10_2011_large.jpg> | Preview<http://energiinstituttet.dk/65/1.haslightboxThumbnailVersion/LOGO_energiakademiet_21_10_2011_large.jpg>

Which file should I edit? Thanks in advance!
--

Med venlig hilsen/Best regards

JACOB WENZEL
Projektleder

ENERGIAKADEMIET
Strandengen 1
8305 SAMSØ
+45 60 61 15 97
jw at energiakademiet.dk<mailto:jw at energiakademiet.dk>
www.energiakademiet.dk<http://energiakademiet.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20140528/b07a1d0c/attachment.html 


More information about the Eprints-tech mailing list