Browse Source

Use an item_list instead of a table, for the XSLT-less display.

Should add some default CSS.
pull/99/head
Adam Vessey 13 years ago
parent
commit
f7bd67d015
  1. 23
      CollectionClass.inc

23
CollectionClass.inc

@ -689,14 +689,12 @@ class CollectionClass {
$obj_path = "fedora/repository/{$result['object']}"; $obj_path = "fedora/repository/{$result['object']}";
$thumbnail = theme('image', "$obj_path/TN", $title, $title, array(), FALSE); $thumbnail = theme('image', "$obj_path/TN", $title, $title, array(), FALSE);
$results[] = array( $results[] = array(
array( 'data' => l($thumbnail, $obj_path, array(
'data' => l($thumbnail, $obj_path, array( 'html' => TRUE,
'html' => TRUE, 'attributes' => array(
)), 'class' => 'results-image',
), ),
array( )) . l($title, $obj_path, array('attributes' => array('class' => 'results-text'))),
'data' => l($title, $obj_path),
),
); );
} }
if (!$results) { if (!$results) {
@ -707,13 +705,16 @@ class CollectionClass {
$last = (($total - $first) > $per_page)? $last = (($total - $first) > $per_page)?
($first + $per_page): ($first + $per_page):
$total; $total;
$objectList = '<h3>' . t('Results @first to @last of @total', array( $results_range_text = t('Results @first to @last of @total', array(
'@first' => $first + 1, '@first' => $first + 1,
'@last' => $last, '@last' => $last,
'@total' => $total, '@total' => $total,
)) . '</h3>'; ));
//$objectList = '<h3>' . $results_range_text . '</h3>';
$objectList .= theme('pager', array(), $per_page, $pager_name); $objectList .= theme('pager', array(), $per_page, $pager_name);
$objectList .= theme('table', NULL, $results); $objectList .= theme('item_list', $results, $result_range_text, 'ul', array(
'class' => 'islandora-collection-results-list',
));
$objectList .= theme('pager', array(), $per_page, $pager_name); $objectList .= theme('pager', array(), $per_page, $pager_name);
} }
} }

Loading…
Cancel
Save