-
Notifications
You must be signed in to change notification settings - Fork 4
/
show.php
46 lines (36 loc) · 1.62 KB
/
show.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php echo head(array('title' => metadata('item', array('Dublin Core', 'Title')),'bodyclass' => 'items show')); ?>
<div id="primary">
<h1><?php echo metadata('item', array('Dublin Core','Title')); ?></h1>
<!-- Items metadata -->
<div id="item-metadata">
<?php echo all_element_texts('item'); ?>
</div>
<h3><?php echo __('Files'); ?></h3>
<div id="item-images">
<?php echo files_for_item(); ?>
</div>
<?php if(metadata('item','Collection Name')): ?>
<div id="collection" class="element">
<h3><?php echo __('Collection'); ?></h3>
<div class="element-text"><?php echo link_to_collection_for_item(); ?></div>
</div>
<?php endif; ?>
<!-- The following prints a list of all tags associated with the item -->
<?php if (metadata('item','has tags')): ?>
<div id="item-tags" class="element">
<h3><?php echo __('Tags'); ?></h3>
<div class="element-text"><?php echo tag_string('item'); ?></div>
</div>
<?php endif;?>
<!-- The following prints a global reference for this item -->
<div id="item-citation" class="element">
<h3><?php echo __('Reference'); ?></h3>
<div class="element-text"><?php echo make_citation($item); ?></div>
</div>
<?php fire_plugin_hook('public_items_show', array('view' => $this, 'item' => $item)); ?>
<ul class="item-pagination navigation">
<li id="previous-item" class="previous"><?php echo link_to_previous_item_show(); ?></li>
<li id="next-item" class="next"><?php echo link_to_next_item_show(); ?></li>
</ul>
</div> <!-- End of Primary. -->
<?php echo foot(); ?>