--- biblio.pages.inc.orig	2008-11-20 12:28:37.000000000 +0100
+++ biblio.pages.inc	2008-11-20 12:40:22.000000000 +0100
@@ -363,6 +363,7 @@
   while ($option = db_fetch_object($pub_types)) {
     $pub_type["$option->tid"] = $option->name;
   }
+  $content = '<div class="biblio-results">';
   if (!$inline) {
     // Search box. Has same permissions as the filter tab.
     if (variable_get('biblio_search',0) && user_access('show filter tab')) {
@@ -371,7 +372,13 @@
     // Add some links to the top of the page to change the sorting/ordering...
     $order = ($attrib['order'] == "desc" || $attrib['order'] == "DESC")?"asc":"desc";
     if ( biblio_access('export')) {
-      $content .= '<div class="biblio-export">'.t('Export @count results', array('@count' => $pager_total_items[0])).':['.l("Tagged","$base/export/tagged"). ']['.l("XML","$base/export/xml"). ']['.l("CSV","$base/export/csv").']['.l("BibTex","$base/export/bibtex").']</div>';
+      $content .= '<div class="biblio-export">'.
+	t('Export @count results', array('@count' => $pager_total_items[0])).': '.
+	'<span class="biblio-export-tagged">['.l("Tagged","$base/export/tagged"). ']</span>'.
+	'<span class="biblio-export-xml">['.l("XML","$base/export/xml"). ']</span>'.
+	'<span class="biblio-export-csv">['.l("CSV","$base/export/csv").']</span>'.
+	'<span class="biblio-export-bibtex">['.l("BibTex","$base/export/bibtex").']</span>'.
+	'</div>';
     }else{
       $content .= '<div class="biblio-export">'.t('Found @count results', array('@count' => $pager_total_items[0])) .'</div><br />';
     }
@@ -538,7 +545,8 @@
     }
   }
 
-  if ($inline === true)       print $content . "</div>";
+  $content .= '</div>'; // biblio-results or bibilo-inline
+  if ($inline === true)       print $content . "</div>"; // closing biblio-results
   if ($inline === false)      print theme('page', $content);
   if ($inline === "profile")  return $content;
 
