Bug 13962: Add link to the vendor detail page
authorJonathan Druart <jonathan.druart@koha-community.org>
Tue, 16 Jun 2015 16:16:27 +0000 (18:16 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 23 Jun 2015 13:20:34 +0000 (10:20 -0300)
This patch 1/ uses the class of the th to filter the columns and 2/ adds
a link on the vendor name to the vendor detail page.

Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt

index 4f9478f..41730f5 100644 (file)
@@ -297,7 +297,7 @@ function verify_images() {
                 'bAutoWidth': false,
                 "aaSorting": [[ 4, "desc" ]],
                 "aoColumnDefs": [
-                    { "aTargets": [ 4, 5 ], "sType": "title-string" }
+                    { "aTargets": "title-string", "sType": "title-string" }
                 ]
             }));
 
@@ -936,8 +936,8 @@ function verify_images() {
           <th>Basket group</th>
           <th>Basket</th>
           <th>Order number</th>
-          <th>Creation date</th>
-          <th>Receive date</th>
+          <th class="title-string">Creation date</th>
+          <th class="title-string">Receive date</th>
           <th>Status</th>
           <th>Quantity</th>
         </tr>
@@ -947,7 +947,7 @@ function verify_images() {
           <tr>
             <td>
             [% IF (order.id) %]
-                [% order.name %]
+                <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.id %]" title="Vendor detail page">[% order.name %]</a>
             [% END %]
             </td>
             <td>