EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #03079


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

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


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@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Jacob Wenzel
Sent: 28 May 2014 13:18
To: 'eprints-tech@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]) | Preview

The solution I'm looking for could be:

[type] | [language]
[filename.ext]
Download ([size]) | Preview

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@energiakademiet.dk
www.energiakademiet.dk