Explorar o código

Fixed search results to use pub id in link

spficklin %!s(int64=12) %!d(string=hai) anos
pai
achega
2a0682e92f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tripal_pub/includes/pub_search.inc

+ 1 - 1
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 ,'node/' . $pub->nid, array('attributes' => array('target' => '_blank')));
+        $result = l($title ,'pub/' . $pub->pub_id, array('attributes' => array('target' => '_blank')));
       }      
       if ($citation_rec->value) {
         $citation = htmlspecialchars($citation_rec->value);