135 lines
4.4 KiB
PHP
135 lines
4.4 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);
|
||
|
?>
|
||
|
|
||
|
|
||
|
<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[0])): ?>
|
||
|
<?php print l($parent_collections[0]->label, "islandora/object/{$parent_collections[0]->id}"); ?>
|
||
|
<?php echo "/"; ?>
|
||
|
<?php print $mods_array['titleInfo']; ?>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
<?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 //print $mods_array['titleInfo']; ?>
|
||
|
</h3>
|
||
|
</div>
|
||
|
<div class="pane-content">
|
||
|
<div class="dos-columnas-adaptativo">
|
||
|
<div class="izquierda-adaptativo no-line">
|
||
|
<div class="islandora-pdf-content">
|
||
|
<a href="<?php print $viewer_url ?>"><?php print $islandora_thumbnail_img ?></a>
|
||
|
<?php print $islandora_download_link; ?>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="derecha-adaptativo">
|
||
|
<h2 class="title"><?php print $mods_array['titleInfo']; ?></h2>
|
||
|
<?php if (!empty($mods_array['abstract'])): ?>
|
||
|
<p><?php print $mods_array['abstract']; ?></p>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
</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('Collections'); ?></h3></div>
|
||
|
<div class="pane-content">
|
||
|
<?php if ($parent_collections): ?>
|
||
|
<ul>
|
||
|
<?php foreach ($parent_collections as $collection): ?>
|
||
|
<li style="margin-left:20px;"><?php print l($collection->label, "islandora/object/{$collection->id}"); ?></li>
|
||
|
<?php endforeach; ?>
|
||
|
</ul>
|
||
|
<?php endif; ?>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="panel-pane">
|
||
|
<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 ($mods_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 str_replace('- http://artxibo.arteleku.net/autoridades/ - autoridades - http://artxibo.arteleku.net/ - arteleku','',$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>
|
||
|
-->
|