<?xml version="1.0" ?>

<!-- 
	Full ReCollect "abstract page" (or splash page or summary page, depending on your jargon) for an eprint. 
-->

<cite:citation xmlns="http://www.w3.org/1999/xhtml" xmlns:epc="http://eprints.org/ep3/control" xmlns:cite="http://eprints.org/ep3/citation" >

  <p class="rd_text_center" style="margin-bottom: 1em">
    <epc:print expr="$item.citation('default')" />
  </p>

  <epc:if test="$flags{has_multiple_versions}">
    <div class="rd_text_center" style="margin-bottom: 1em">
      <epc:print expr="$multi_info" />
    </div>
  </epc:if>


  <epc:if test="official_url">
    <div class="rd_text_center" style="margin-bottom: 1em">
      <epc:phrase ref="eprint_fieldname_official_url"/>: <epc:print expr="official_url" />
    </div>
  </epc:if>

  <epc:if test="abstract">
    <h2><epc:phrase ref="eprint_fieldname_abstract"/></h2>
    <p  class="rd_text_center" style="text-align: left; margin: 1em auto 0.5em auto; line-height:1.5em"><epc:print expr="abstract" /></p>
  </epc:if>
  <div class="rd_citation_left">
  <table class="main_meta_table" style="margin-bottom: 1em; margin-top: 1em; width:100%" cellpadding="3">

<epc:comment> 
       The block below loops over a list of field names taken from eprint_render.pl
       Edit the list of metadata to show in the summary page table in eprint_render.pl
    </epc:comment>
    <epc:foreach expr="$config{summary_page_metadata}" iterator="fieldname">
      <epc:if test="is_set($item.property($fieldname))">
        <tr class="main_meta_table_row">
		<th align="right" class="rd_meta_table_th"><epc:phrase ref="eprint_fieldname_{$fieldname}" />:</th>
          <td valign="top" class="rd_metatable_td"><epc:print expr="$item.property($fieldname)" /></td>
        </tr>
      </epc:if>
    </epc:foreach>
    <tr class="main_meta_table_row">
      <th align="right">URI:</th>
      <td valign="top"><a href="{$item.uri()}"><epc:print expr="$item.uri()" /></a></td>
    </tr>
	<epc:comment>
	The next foreach loop generates the extended metadata from eprint_render.pl
    </epc:comment>
<tr>
	<td colspan="2" style="padding:0">
                <div class="ep_summary_box" id="{eprintid}">
                        <div class="ep_summary_box_title">
                                <div class="ep_only_js" id="{eprintid}_colbar" style="display: none">
					<a class="ep_box_collapse_link" onclick ="EPJS_blur(event); EPJS_toggleSlideScroll('{eprintid}_content',true,'{eprintid}');EPJS_toggle('{eprintid}_colbar',true);EPJS_toggle('{eprintid}_bar',false);return false;" href="#"><img src="{$config{base_url}}/style/images/minus.png" border="0" />
					</a> 
					<a class="ep_box_collapse_text" onclick ="EPJS_blur(event); EPJS_toggleSlideScroll('{eprintid}_content',true,'{eprintid}');EPJS_toggle('{eprintid}_colbar',true);EPJS_toggle('{eprintid}_bar',false);return false;" href="#">Additional details</a>
                                </div>
                                                    
                                <div class="ep_only_js" id="{eprintid}_bar">
					<a class="ep_box_collapse_link" onclick ="EPJS_blur(event); EPJS_toggleSlideScroll('{eprintid}_content',false,'{eprintid}');EPJS_toggle('{eprintid}_colbar',false);EPJS_toggle('{eprintid}_bar',true);return false;" href="#"><img src="{$config{base_url}}/style/images/plus.png" border="0" />
					</a> 
					<a class="ep_box_collapse_text" onclick ="EPJS_blur(event); EPJS_toggleSlideScroll('{eprintid}_content',false,'{eprintid}');EPJS_toggle('{eprintid}_colbar',false);EPJS_toggle('{eprintid}_bar',true);return false;" href="#">Additional details</a>
                                </div>
                                    
                        </div>
                        <div class="ep_summary_box_body" id="{eprintid}_content" style="display: none">
                                <div id="{eprintid}_content_inner">         
  <table class="main_meta_table" style="margin-bottom: 1em; margin-top: 1em; width:100%" cellpadding="3">
                    
      <epc:foreach expr="$config{summary_page_metadata_full}" iterator="fieldname">
        <epc:if test="is_set($item.property($fieldname))">
          <tr class="main_meta_table_row">
              <th align="right" class="rd_meta_table_th"><epc:phrase ref="eprint_fieldname_{$fieldname}" />:</th>
              <td valign="top" class="rd_metatable_td">
                  <epc:print expr="$item.property($fieldname)" /></td>
          </tr>
      </epc:if>
</epc:foreach>
        </table>
                                </div>
                        </div>
                </div>              
</td></tr>
<epc:comment>
<tr>
    <epc:if test="!$flags{preview}">
      <td colspan="2">
          <epc:if test="$current_user{usertype} = 'admin'">
          <h3>Actions (login required)</h3>
                <table class="ep_summary_page_actions">
                <epc:foreach expr="action_list('eprint_summary_page_actions',$item)" iterator="action">
                <tr>
                    <td><epc:print expr="$action.action_icon()" /></td>
                    <td><epc:print expr="$action.action_title()" /></td>
                </tr>
                </epc:foreach>
        </table>
    </epc:if>
    </td>
  </epc:if>

</tr>
</epc:comment>
  </table>
</div>	

<epc:comment>
render our file box pulled from eprint_render 
</epc:comment>
<epc:print expr="$rd_sorteddocs" /> 

</cite:citation>

