<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Abstract_page_template</id>
	<title>Abstract page template - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=Abstract_page_template"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Abstract_page_template&amp;action=history"/>
	<updated>2026-04-13T18:08:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=Abstract_page_template&amp;diff=11009&amp;oldid=prev</id>
		<title>Libjlrs: Created page,</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=Abstract_page_template&amp;diff=11009&amp;oldid=prev"/>
		<updated>2014-10-10T10:42:50Z</updated>

		<summary type="html">&lt;p&gt;Created page,&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;If you want to apply a specific template to an item's abstract page (summary page), you can return a template name from the 'eprint_render' function.&lt;br /&gt;
See: https://github.com/eprints/eprints/commit/4656cbc1398f52ddbef7d245795d12f7dc35d8a2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
$c-&amp;gt;{eprint_render} = sub&lt;br /&gt;
{&lt;br /&gt;
# ...&lt;br /&gt;
# all the normal stuff eprint_render stuff&lt;br /&gt;
# ...&lt;br /&gt;
&lt;br /&gt;
    #example shows using a specific template for articles. You can test for &lt;br /&gt;
    # whatever you want - as long as you return a valid template name, or &lt;br /&gt;
    #leave $template undefined - in which case the default template is used.&lt;br /&gt;
    my $template;&lt;br /&gt;
    if( $eprint-&amp;gt;value( &amp;quot;type&amp;quot; ) eq &amp;quot;article&amp;quot; ){&lt;br /&gt;
        $template = &amp;quot;article_template&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    #normally returns just $page, $title, $links, but can return $template too!&lt;br /&gt;
    return ( $page, $title, $links, $template );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tested in EPrints-3.3.10 and EPrints-3.3.12. Probably works on many other versions.&lt;/div&gt;</summary>
		<author><name>Libjlrs</name></author>
		
	</entry>
</feed>