Bug 13492: Add the location column to the checkouts tables
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 23 Dec 2014 10:59:07 +0000 (11:59 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 24 Apr 2015 12:41:23 +0000 (09:41 -0300)
Test plan:
1/ Verify that the location column is correctly displayed on the
checkouts tables (circ/circulation.pl and members/moremember.pl).
2/ Verify that you can hide/show this column (using the admin page
and/or the ColVis DT plugin).

Signed-off-by: Aleisha <aleishaamohia@hotmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>

admin/columns_settings.yml
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table-footer.inc
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc
koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
svc/checkouts

index fc972eb..b8c6bfc 100644 (file)
@@ -135,6 +135,8 @@ modules:
         -
           columnname: item_type
         -
+          columnname: location
+        -
           columnname: checkout_on
         -
           columnname: checkout_from
@@ -214,6 +216,8 @@ modules:
         -
           columnname: item_type
         -
+          columnname: location
+        -
           columnname: checkout_on
         -
           columnname: checkout_from
index 549030f..0de211f 100644 (file)
@@ -1,6 +1,6 @@
 <tfoot>
        <tr>
-        <td colspan="9" style="text-align: right; font-weight:bold;">Totals:</td>
+        <td colspan="10" style="text-align: right; font-weight:bold;">Totals:</td>
         <td id="totaldue">[% totaldue %]</td>
         <td id="totalfine">[% finetotal %]</td>
         <td id="totalprice">[% totalprice %]</td>
index dcc0079..7c2e7a9 100644 (file)
@@ -15,6 +15,7 @@
                         <th scope="col">Due date</th>
                         <th scope="col">Title</th>
                         <th scope="col">Item type</th>
+                        <th scope="col">Location</th>
                         <th scope="col">Checked out on</th>
                         <th scope="col">Checked out from</th>
                         <th scope="col">Call no</th>
index b626ece..7607aae 100644 (file)
@@ -259,6 +259,7 @@ $(document).ready(function() {
                     "sType": "anti-the"
                 },
                 { "mDataProp": "itemtype_description" },
+                { "mDataProp": "location" },
                 { "mDataProp": "issuedate_formatted" },
                 { "mDataProp": "branchname" },
                 { "mDataProp": "itemcallnumber" },
@@ -503,6 +504,7 @@ $(document).ready(function() {
                         "sType": "anti-the"
                     },
                     { "mDataProp": "itemtype" },
+                    { "mDataProp": "location" },
                     { "mDataProp": "issuedate_formatted" },
                     { "mDataProp": "branchname" },
                     { "mDataProp": "itemcallnumber" },
index af373aa..d2eb8ee 100755 (executable)
@@ -94,6 +94,7 @@ my $sql = '
 
         itemlost,
         damaged,
+        location,
 
         DATEDIFF( issuedate, CURRENT_DATE() ) AS not_issued_today
     FROM issues
@@ -151,6 +152,7 @@ while ( my $c = $sth->fetchrow_hashref() ) {
         barcode    => $c->{barcode},
         itemtype   => $item_level_itypes ? $c->{itype} : $c->{itemtype},
         itemtype_description => $item_level_itypes ? $c->{itype_description} : $c->{itemtype_description},
+        location   => $c->{location} ? GetAuthorisedValueByCode( 'LOC', $c->{location} ) : q{},
         itemnotes  => $c->{itemnotes},
         branchcode => $c->{branchcode},
         branchname => $c->{branchname},