Browse Source

added conditionals to default object

pull/125/head
krisbulman 13 years ago
parent
commit
278b61c856
  1. 18
      theme/islandora-object.tpl.php

18
theme/islandora-object.tpl.php

@ -74,9 +74,11 @@
* } * }
* *
*/ */
drupal_set_title($islandora_object->label);
?> ?>
<?php if(isset($islandora_object_label)): ?>
<?php drupal_set_title("$islandora_object_label"); ?>
<?php endif; ?>
<div class="islandora-object islandora"> <div class="islandora-object islandora">
<h2>Details</h2> <h2>Details</h2>
<dl class="islandora-object-tn"> <dl class="islandora-object-tn">
@ -97,12 +99,14 @@ drupal_set_title($islandora_object->label);
</dd> </dd>
<?php $row_field++; ?> <?php $row_field++; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php if($parent_collections): ?>
<dt>Collections</dt> <dt>Collections</dt>
<dd> <dd>
<?php foreach($parent_collections as $key => $value): ?> <?php foreach($parent_collections as $key => $value): ?>
<div><?php print $value['label_link'] ?></div> <div><?php print $value['label_link'] ?></div>
<?php endforeach; ?> <?php endforeach; ?>
</dd> </dd>
<?php endif; ?>
</dl> </dl>
</div> </div>
<fieldset class="collapsible collapsed" style="display: block; clear:both"> <fieldset class="collapsible collapsed" style="display: block; clear:both">
@ -118,11 +122,11 @@ drupal_set_title($islandora_object->label);
</tr> </tr>
<?php foreach($datastreams as $key => $value): ?> <?php foreach($datastreams as $key => $value): ?>
<tr> <tr>
<td><?php print $value['id']; ?></td> <td><?php if(isset($value['id'])): ?><?php print $value['id']; ?><?php endif; ?></td>
<td><?php print $value['label_link']; ?></td> <td><?php if(isset($value['label_link'])): ?><?php print $value['label_link']; ?><?php endif; ?></td>
<td><?php print $value['size']; ?></td> <td><?php if(isset($value['size'])): ?><?php print $value['size']; ?><?php endif; ?></td>
<td><?php print $value['mimetype']; ?></td> <td><?php if(isset($value['mimetype'])): ?><?php print $value['mimetype']; ?><?php endif; ?></td>
<td><?php print $value['created_date']; ?></td> <td><?php if(isset($value['created_date'])): ?><?php print $value['created_date']; ?><?php endif; ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>

Loading…
Cancel
Save