153 lines
5.5 KiB
PHP
153 lines
5.5 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @file
|
|
* This is the template file for the object page for video
|
|
*
|
|
* Available variables:
|
|
* - $islandora_object: The Islandora object rendered in this template file
|
|
* - $islandora_dublin_core: The DC datastream object
|
|
* - $dc_array: The DC datastream object values as a sanitized array. This
|
|
* includes label, value and class name.
|
|
* - $islandora_object_label: The sanitized object label.
|
|
* - $parent_collections: An array containing parent collection(s) info.
|
|
* Includes collection object, label, url and rendered link.
|
|
*
|
|
* @see template_preprocess_islandora_video()
|
|
* @see theme_islandora_video()
|
|
*/
|
|
?>
|
|
<?php //dpm($islandora_object); ?>
|
|
<?php //dpm($variables); ?>
|
|
<?php //dpm($islandora_content); ?>
|
|
<?php //dpm($islandora_object); ?>
|
|
<?php //echo $variables['object']->repository->api->a->listDatastreams($pid); ?>
|
|
|
|
<?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">
|
|
|
|
<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>
|
|
|
|
<div class="islandora-pdf-content">
|
|
<?php //echo "<a href=\"$islandora_full_url\">$islandora_full_img</a>"; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="derecha-adaptativo">
|
|
<div class = "pane-content listado-lineas metadata-record clearfix">
|
|
<?php $row_field = 0; ?>
|
|
<?php //dpm($dc_array) ?>
|
|
<?php //dpm($variables);
|
|
if (isset($islandora_content)): ?>
|
|
<div class="islandora-basic-image-content">
|
|
<?php print $islandora_content; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
</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>
|
|
|
|
|