Author: david
Date: Thu Oct 13 17:05:02 2011
New Revision: 10086

Log:
Display thumbnails in item list

Modified:
   trunk/apps/qubit/modules/informationobject/templates/itemListSuccess.php
   trunk/css/print.css

Modified: 
trunk/apps/qubit/modules/informationobject/templates/itemListSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/itemListSuccess.php    
Thu Oct 13 16:47:36 2011        (r10085)
+++ trunk/apps/qubit/modules/informationobject/templates/itemListSuccess.php    
Thu Oct 13 17:05:02 2011        (r10086)
@@ -18,7 +18,7 @@
     </ul>
   </div>
 
-  <table>
+  <table class="item-list">
     <thead>
       <tr>
         <th><?php echo __('#') ?></th>
@@ -35,7 +35,12 @@
       <tr>
         <td class="row-number"><?php echo $row++ ?></td>
         <td><?php echo $item['referenceCode'] ?></td>
-        <td><?php echo $item['title'] ?></td>
+        <td>
+          <?php if (null != ($do = $item['resource']->getDigitalObject())):  ?>
+          <?php echo image_tag($do->thumbnail->getFullPath()) ?>
+          <?php endif; ?>
+          <?php echo $item['title'] ?>
+        </td>
         <td><?php echo $item['dates'] ?></td>
         <td><?php echo isset($item['accessConditions']) ? 
$item['accessConditions'] : __('None') ?></td>
       <?php if ($sf_user->isAuthenticated()): ?>

Modified: trunk/css/print.css
==============================================================================
--- trunk/css/print.css Thu Oct 13 16:47:36 2011        (r10085)
+++ trunk/css/print.css Thu Oct 13 17:05:02 2011        (r10086)
@@ -368,3 +368,9 @@
 {
   margin: auto;
 }
+
+table.item-list img
+{
+  float: left;
+  margin: 2px 4px;
+}

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to