Browse Source

Changed title to citation in pub searcH

spficklin 12 years ago
parent
commit
406a96d809
1 changed files with 4 additions and 4 deletions
  1. 4 4
      tripal_pub/includes/pub_search.inc

+ 4 - 4
tripal_pub/includes/pub_search.inc

@@ -38,15 +38,15 @@ function tripal_pub_search_page() {
     $rows = array();
     $i = $page * $limit + 1;
     while($pub = db_fetch_object($pubs)) {
-      $title =  $pub->title;
+      $citation =  $pub->uniquename;
       if ($pub->nid) {
-        $title = l($pub->title,'node/' . $pub->nid, array('attributes' => array('target' => '_blank')));
+        $citation = l($pub->uniquename,'node/' . $pub->nid, array('attributes' => array('target' => '_blank')));
       }
-      $rows[] = array(number_format($i), $pub->pyear, $title);
+      $rows[] = array(number_format($i), $pub->pyear, $citation);
       $i++;
     }
 
-    $headers = array('', 'Year', 'Title');
+    $headers = array('', 'Year', 'Citation');
     $table = theme('table', $headers, $rows);   
   
     // join all to form the results