Browse Source

Merge pull request #120 from krisbulman/7.x

template fixes and default collection list view
pull/121/head
Jonathan Green 13 years ago
parent
commit
a99cc68f70
  1. 50
      islandora_basic_collection/css/islandora_basic_collection.theme.css
  2. 2
      islandora_basic_collection/theme/islandora-basic-collection-grid.tpl.php
  3. 32
      islandora_basic_collection/theme/islandora-basic-collection.tpl.php
  4. 4
      islandora_basic_image/islandora-basic-image.tpl.php

50
islandora_basic_collection/css/islandora_basic_collection.theme.css

@ -6,12 +6,16 @@
*/
.islandora-basic-collection {
margin: 1.5em auto;
overflow: hidden;
width: 96%;
width: 100%;
margin: 0 auto;
}
dl.islandora-basic-collection-object
.islandora-basic-collection-object {
margin: 1.5em auto 3em;
}
.islandora-basic-collection-grid dl.islandora-basic-collection-object
{
width: 20%;
min-width: 100px;
@ -25,7 +29,7 @@ dl.islandora-basic-collection-object
_height: 180px;
}
.islandora-basic-collection-object dt img {
.islandora-basic-collection-grid .islandora-basic-collection-object dt img {
max-width: 100%;
*width: 100%;
-webkit-border-radius: 5px;
@ -33,7 +37,7 @@ dl.islandora-basic-collection-object
border-radius: 5px;
}
.islandora-basic-collection-object dd
.islandora-basic-collection-grid .islandora-basic-collection-object dd
{
margin: 0;
padding: 0;
@ -44,3 +48,39 @@ dl.islandora-basic-collection-object
#islandora-collection-migrate-form table th.select-all {
width: 20px;
}
/* the base css for lists is set in islandora, just adding details */
dl.islandora-basic-collection-thumb
{
float: left;
width: 15%;
margin: 0;
}
.islandora-basic-collection-thumb dt,
.islandora-basic-collection-thumb dd
{
margin: 0;
}
dl.islandora-basic-collection-fields
{
float: right;
width: 83%;
border-top: 0px solid #ddd;
padding-left: 10px;
}
.islandora-basic-collection-fields dt,
.islandora-basic-collection-fields dd
{
border-top: 1px solid #ddd;
}
.islandora-basic-collection-fields dt.first,
.islandora-basic-collection-fields dd.first
{
border-top: 1px solid #ddd;
}

2
islandora_basic_collection/theme/islandora-basic-collection-grid.tpl.php

@ -24,7 +24,7 @@
<div class="islandora-basic-collection-wrapper">
<div class="islandora-basic-collection clearfix">
<div class="islandora-basic-collection-grid clearfix">
<?php foreach($associated_objects_array as $key => $value): ?>
<dl class="islandora-basic-collection-object <?php print $value['class']; ?>">
<dt class="islandora-basic-collection-thumb"><?php print $value['thumb_link']; ?></dt>

32
islandora_basic_collection/theme/islandora-basic-collection.tpl.php

@ -23,13 +23,31 @@
?>
<?php drupal_set_title($islandora_object->label); ?>
<div class="islandora-basic-collection-wrapper">
<div class="islandora-basic-collection clearfix">
<?php foreach($associated_objects_array as $key => $value): ?>
<dl class="islandora-basic-collection-object <?php print $value['class']; ?>">
<dt class="islandora-basic-collection-thumb"><?php print $value['thumb_link']; ?></dt>
<dd class="islandora-basic-collection-caption"><?php print $value['title_link']; ?></dd>
<div class="islandora islandora-basic-collection-wrapper">
<?php $row_field = 0; ?>
<?php foreach($associated_objects_array as $associated_object): ?>
<div class="islandora-basic-collection-object clearfix">
<dl class="islandora-basic-collection-thumb <?php print $associated_object['class']; ?>">
<dt><?php print $associated_object['thumb_link']; ?></dt>
<dd></dd>
</dl>
<dl class="islandora-inline-metadata islandora-basic-collection-fields">
<dt class="collection-label <?php print $associated_object['dc_array']['dc:title']['class']; ?> <?php print $row_field == 0 ? ' first' : ''; ?>">
<?php print $associated_object['dc_array']['dc:title']['label']; ?>
</dt>
<dd class="collection-value <?php print $associated_object['dc_array']['dc:title']['class']; ?> <?php print $row_field == 0 ? ' first' : ''; ?>">
<?php print $associated_object['title_link']; ?>
</dd>
<?php if ($associated_object['dc_array']['dc:description']['value']): ?>
<dt class="collection-label <?php print $associated_object['dc_array']['dc:description']['class']; ?>">
<?php print $associated_object['dc_array']['dc:description']['label']; ?>
</dt>
<dd class="collection-value <?php print $associated_object['dc_array']['dc:description']['class']; ?>">
<?php print $associated_object['dc_array']['dc:description']['value']; ?>
</dd>
<?php $row_field++; ?>
<?php endif; ?>
</dl>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>

4
islandora_basic_image/islandora-basic-image.tpl.php

@ -25,7 +25,11 @@
<div class="islandora-basic-image-object islandora">
<div class="islandora-basic-image-content clearfix">
<?php if(isset($islandora_full_url)): ?>
<?php print l($islandora_medium_img, $islandora_full_url, array('html' => TRUE)); ?>
<?php else: ?>
<?php print $islandora_medium_img; ?>
<?php endif; ?>
</div>
<div class="islandora-basic-image-sidebar">
<h1 class="title"><?php print $islandora_object_label; ?></h1>

Loading…
Cancel
Save