143 lines
4.8 KiB
PHP
143 lines
4.8 KiB
PHP
<?php
|
|
/*
|
|
* This is the template file for the pdf object
|
|
*
|
|
* @TODO: Add documentation about this file and the available variables
|
|
*/
|
|
|
|
//dsm(print_r($variables['islandora_object']['DC']->content,TRUE));
|
|
//dsm($variables['islandora_object']['MODS']->content);
|
|
//dsm(get_class_methods('IslandoraFedoraDatastream'));
|
|
//dsm(print_r($variables['islandora_mods']));
|
|
//dsm(print_r($variables['islandora_dublin_core'],TRUE));
|
|
//dsm($variables['mods_array']);
|
|
//dsm(print_r($variables['islandora_mods'],TRUE));
|
|
//dpm(print $viewer_url);
|
|
//dpm($associated_objects_array);
|
|
|
|
if (isset($variables['islandora_dublin_core']->dc)) : $dc_array = $variables['islandora_dublin_core']->dc; endif;
|
|
|
|
?>
|
|
|
|
|
|
<div class="dos-columnas-adaptativo islandora-object islandora-pdf-object islandora">
|
|
|
|
<div class="izquierda-adaptativo">
|
|
|
|
<div class="panel-pane">
|
|
<div class="pane-title page-title">
|
|
<h3>
|
|
<?php if (isset($parent_collections)): ?>
|
|
<?php foreach ($parent_collections as $collection): ?>
|
|
<?php print l($collection->label, "islandora/object/{$collection->id}"); ?>
|
|
<?php endforeach; ?>
|
|
<?php echo " / "; ?>
|
|
<?php endif; ?>
|
|
<?php if(isset($dc_array['dc:title'][0])) : echo strip_tags($dc_array['dc:title'][0]); endif;?>
|
|
</h3>
|
|
</div>
|
|
<div class="pane-content">
|
|
<div class="dos-columnas-adaptativo">
|
|
<div class="izquierda-adaptativo no-line">
|
|
<div class="islandora-pdf-content">
|
|
|
|
<h2 style="border-bottom:1px solid #000;"><?php if(isset($dc_array['dc:title'][0])) : echo strip_tags($dc_array['dc:title'][0]); endif;?></h2>
|
|
<h3><?php if(isset($dc_array['dc:contributor'][0])) : echo $dc_array['dc:contributor'][0]; endif;?></h3>
|
|
<h3><?php if(isset($dc_array['dc:date'][0])) : echo $dc_array['dc:date'][0]; endif;?></h3>
|
|
<h3><?php if(isset($dc_array['dc:rights'][0])) : echo $dc_array['dc:rights'][0]; endif;?></h3>
|
|
<h3><?php if(isset($dc_array['dc:description'][0])) : echo $dc_array['dc:description'][0]; endif;?></h3>
|
|
|
|
|
|
<?php if (isset($islandora_content)): ?>
|
|
|
|
<div class="islandora-basic-image-content">
|
|
<?php print $islandora_content; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="derecha-adaptativo">
|
|
<div class = "pane-content listado-lineas metadata-record clearfix">
|
|
<?php $row_field = 0; ?>
|
|
<?php //dpm($dc_array) ?>
|
|
<?php echo "<a href=\"$islandora_full_url\">$islandora_full_img</a>"; ?>
|
|
</div>
|
|
</div>
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
<div>
|
|
<?php
|
|
$block = module_invoke('islandora_related', 'block_view', 'related_list');
|
|
print $block['content'];
|
|
?>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- izquierda-adaptativo -->
|
|
<div class="derecha-adaptativo">
|
|
<div id="panel-metadata" class="islandora-pdf-sidebar">
|
|
<div class="panel-pane">
|
|
<div class="pane-title"><h3><?print t('Collection'); ?></h3></div>
|
|
<div class="pane-content">
|
|
<?php if ($parent_collections): ?>
|
|
<?php foreach ($parent_collections as $collection): ?>
|
|
<div><?php print l($collection->label, "islandora/object/{$collection->id}"); ?></div>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="panel-pane" style="display:none;">
|
|
<fieldset class="collapsible collapsed islandora-pdf-metadata pane-title">
|
|
<legend><h3><span class="fieldset-legend"><?php print t('Full metadata record'); ?></span></h3></legend>
|
|
<div class="fieldset-wrapper">
|
|
<div class = "pane-content listado-lineas metadata-record">
|
|
<dl class="islandora-inline-metadata islandora-pdf-fields">
|
|
<?php $row_field = 0; ?>
|
|
<?php //dpm($dc_array) ?>
|
|
<?php //dpm($mods_array) ?>
|
|
<?php foreach ($dc_array as $key => $value): ?>
|
|
<dt class="<?php print $row_field == 0 ? ' first' : ''; ?>">
|
|
<?php print $key; ?>
|
|
</dt>
|
|
<dd class="<?php print $row_field == 0 ? ' first' : ''; ?>">
|
|
<?php print $value; ?>
|
|
</dd>
|
|
<?php $row_field++; ?>
|
|
<?php endforeach; ?>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <div class="islandora-pdf-object islandora">
|
|
<div class="islandora-pdf-content-wrapper clearfix">
|
|
<?php if (isset($islandora_content)): ?>
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
-->
|