--- biblio.module.orig	2008-02-13 15:15:20.000000000 +0100
+++ biblio.module.new	2008-02-22 16:29:56.000000000 +0100
@@ -1603,12 +1603,24 @@
   
   if ( biblio_access('export',$node)) {
     $base =  variable_get('biblio_base', 'biblio');
+    $output .= '<br/>&nbsp;Export:&nbsp;';
     $output .= '<span class="biblio_export_links">';
     $output .= l("Tagged","$base/export/tagged/$node->nid") . '&nbsp;';
     $output .= l("XML","$base/export/xml/$node->nid") . '&nbsp;';
     $output .= l("BibTex","$base/export/bib/$node->nid") ;
     $output .= '</span>';
   } 
+
+  // add links to attached files (if any)
+  if ( count($node->files) > 0 && user_access('view uploaded files') ) {
+    $output .= '&nbsp;&nbsp;&nbsp;Download:&nbsp;';
+    $output .= '<span class="biblio_export_links">';
+    foreach ($node->files as $file) {
+      $output .= '&nbsp;<a href="' . $file->filepath . '">' . $file->filename . '</a>&nbsp;';
+    }
+    $output .= '</span>';
+  }
+
   return $output;
 } 
 
@@ -1680,6 +1692,11 @@
   }
   if($inline) print '<div class="biblio-inline">';
   while ($node = db_fetch_object($result)) {
+    // to add links to attached files (if any) 
+    // we need the node->files array
+    if ( module_exist("upload") ) {
+      $node->files = upload_load($node);
+    }
     switch ($attrib['sort']) {
       case 'title':
         if ( drupal_substr(drupal_ucfirst(ltrim($node->title)), 0, 1)  != $_char) {
