Browse Source

change search links to be nodes...

Stephen Ficklin 11 years ago
parent
commit
97a2d4241a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_pub/includes/pub_search.inc

+ 2 - 2
tripal_pub/includes/pub_search.inc

@@ -56,7 +56,7 @@ function tripal_pub_search_page() {
       $title = htmlspecialchars($pub->title);
       $result = $title;
       if ($pub->nid) {
-        $result = l($title ,'pub/' . $pub->pub_id, array('attributes' => array('target' => '_blank')));
+        $result = l($title ,'node/' . $pub->nid, array('attributes' => array('target' => '_blank')));
       }      
       if ($citation_rec->value) {
         $citation = htmlspecialchars($citation_rec->value);
@@ -513,4 +513,4 @@ function tripal_pub_get_search_results($search_array, $limit, $pager_id) {
   $args = array_merge($fargs, $wargs);
   //dpm(array($mode, $sql, $args));
   return chado_pager_query($sql, $limit, $pager_id, $count, $args);
-}
+}