arteleku_skin/templates/islandora-audio.tpl.php

134 lines
4.6 KiB
PHP
Raw Normal View History

2017-12-15 01:06:00 +01:00
<?php
/**
* @file
* This is the template file for the object page for audio file
*
* @TODO: add documentation about file and available variables
*/
?>
<?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 print strip_tags($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">
<?php //echo $variables['islandora_thumbnail_img']; ?>
<h3><?php if(isset($dc_array['dc:contributor'][0])) : echo $dc_array['dc:contributor'][0]; endif;?></h3>
<h3><?php if(isset($dc_array['dc:description'][0])) : echo $dc_array['dc:description'][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>
</div>
</div>
<div class="derecha-adaptativo">
<h2 class="title"><?php print strip_tags($mods_array['titleInfo']); ?></h2>
<?php if (!empty($mods_array['abstract'])): ?>
<p><?php //print $mods_array['abstract']; ?></p>
<?php endif; ?>
<br/>
<?php if (isset($islandora_content)): ?>
<div class="islandora-audio-content">
<?php print $islandora_content; ?>
</div>
<?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('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">
<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 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 $value; ?>
</dd>
<?php $row_field++; ?>
<?php endforeach; ?>
</dl>
</div>
</div>
</fieldset>
</div>
</div>
</div>
</div>