<div class='xoonips_page_title'>
<{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_PAGE_TITLE}>
</div>

<form id='xoonips_oaipmh_metadata_detail_form1'
      action='<{$url_to_back}>'
      method='post'>
<{foreach item=i from=$hidden}>
  <input type='hidden' name='<{$i.name}>' value='<{$i.value}>' />
<{/foreach}>
  <input id='xooinps_oaipmh_metadata_detail_back1' type='submit' value='<{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_BACK}>' />
</form>

<table width="100%" border="0" cellspacing="5">

<{foreach item=i from=$metadata}>
<{if $i.category_name=='TITLE'}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_TITLE}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" ><{$i.value}></td>
  </tr>
<{/if}>
<{/foreach}>

  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_REPOSITORY_NAME}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" ><{$repository_name}></td>
  </tr>

<{foreach item=i from=$metadata}>
<{if $i.category_name=='ID'}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_ID}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" ><{$i.value}></td>
  </tr>
<{/if}>
<{/foreach}>

<{foreach item=i from=$metadata}>
<{if $i.category_name=='LAST_UPDATE_DATE'}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_LAST_UPDATE_DATE}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" ><{$i.value}></td>
  </tr>
<{/if}>
<{/foreach}>

<{foreach item=i from=$metadata}>
<{if $i.category_name=='CREATION_DATE'}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_CREATION_DATE}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" ><{$i.value}></td>
  </tr>
<{/if}>
<{/foreach}>

<{foreach item=i from=$metadata}>
<{if $i.category_name=='DATE'}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_DATE}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" ><{$i.value}></td>
  </tr>
<{/if}>
<{/foreach}>

<{foreach item=i from=$metadata}>
<{if $i.category_name=='CREATOR'}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_CREATOR}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" ><{$i.value}></td>
  </tr>
<{/if}>
<{/foreach}>

<{foreach item=i from=$metadata}>
<{if $i.category_name=='RESOURCE_LINK'}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_RESOURCE_LINK}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" >
<{if 1==preg_match( "/^(s?https?:\\/\\/[-_.!~*'\\(\\)a-zA-Z0-9;\\/?:\\@&=+\$,%#]+)/", $i.value)}>
      <a target="_blank" href='<{$i.value}>'><{$i.value}></a>
<{else}>
      <{$i.value}>
<{/if}>
    </td>
  </tr>
<{/if}>
<{/foreach}>

<{foreach item=i from=$metadata}>
<{if $i.category_name==''}>
  <tr valign="top">
    <td class="<{cycle name="cycle3" values="odd,even"}>"><{$i.name}></td>
    <td class="<{cycle name="cycle4" values="odd,even"}>" >
<{if 1==preg_match( "/^(s?https?:\\/\\/[-_.!~*'\\(\\)a-zA-Z0-9;\\/?:\\@&=+\$,%#]+)/", $i.value)}>
      <a target="_blank" href='<{$i.value}>'><{$i.value}></a>
<{else}>
      <{$i.value}>
<{/if}>
    </td>
  </tr>
<{/if}>
<{/foreach}>

</table>

<form id='xoonips_oaipmh_metadata_detail_form2'
      action='<{$url_to_back}>'
      method='post'>
<{foreach item=i from=$hidden}>
  <input type='hidden' name='<{$i.name}>' value='<{$i.value}>' />
<{/foreach}>
  <input id='xooinps_oaipmh_metadata_detail_back2' type='submit' value='<{$smarty.const._MD_XOONIPS_OAIPMH_METADATA_DETAIL_BACK}>' />
</form>
