Browse Source

Set a default URL path for all publications to be the Chado pub ID

spficklin 12 years ago
parent
commit
6780b1c208
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tripal_pub/api/tripal_pub.api.inc

+ 1 - 2
tripal_pub/api/tripal_pub.api.inc

@@ -264,8 +264,7 @@ function tripal_pub_import_publications($report_email = FALSE) {
       foreach ($report['inserted'] as $pub) {
         $item = $pub['Title'];
         if ($pub['pub_id']) {
-          $nid = chado_get_node_id('pub', $pub['pub_id']);
-          $item = l($pub['Title'], "$base_url/node/$nid");
+          $item = l($pub['Title'], "$base_url/pub/" . $pub['pub_id']);
         } 
         $HTML_report .= "<li>$item</li>\n";      
       }