Bug 17771: Add link to bibliographic record on spent/ordered lists in acquisitions
authorLuke Honiss <luke.honiss@gmail.com>
Tue, 17 Jan 2017 22:15:28 +0000 (22:15 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 19 Jan 2017 11:44:29 +0000 (11:44 +0000)
==TEST PLAN==
1) Open Acquisitions and click on the ordered link under the fund
2) There will be no link on the title
3) Go back and click on thespent link
4) There will be no link on the title
5) Apply patch
6) Go to Acquisitions and click on ordered
7) There will now be a link that takes the user to the book catelog
page
8) Go back and click on sent
9) There will be a link that takes the user to the book catelog

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Works like a charm!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
acqui/ordered.pl
acqui/spent.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/ordered.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/spent.tt

index 48ac5e7..5c2cc6d 100755 (executable)
@@ -52,7 +52,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
 
 my $query = <<EOQ;
 SELECT
-    aqorders.basketno, aqorders.ordernumber,
+    aqorders.biblionumber, aqorders.basketno, aqorders.ordernumber,
     quantity-quantityreceived AS tleft,
     ecost, budgetdate, entrydate,
     aqbasket.booksellerid,
index d32f0c9..f05c264 100755 (executable)
@@ -54,7 +54,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
 
 my $query = <<EOQ;
 SELECT
-    aqorders.basketno, aqorders.ordernumber,
+    aqorders.biblionumber, aqorders.basketno, aqorders.ordernumber,
     quantity-quantityreceived AS tleft,
     ecost, budgetdate, entrydate,
     aqbasket.booksellerid,
index 022113a..19e9618 100644 (file)
@@ -51,7 +51,9 @@
 [% FOREACH order IN ordered %]
     <tr>
        <td class="cell">
+            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">
            [% order.title %]
+            </a>
        </td>
        <td class="cell">
         [% IF ( CAN_user_acquisition_order_manage ) %]
index bb9485e..d47e5f3 100644 (file)
@@ -54,7 +54,9 @@
 [% FOREACH order IN spent %]
     <tr>
        <td class="cell">
-           [% order.title %]
+            <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber %]">
+        [% order.title %]
+            </a>
        </td>
        <td class="cell">
         [% order.ordernumber %]