@@ -, +, @@
checkouts data tables
---
admin/columns_settings.yml | 4 ++++
koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc | 1 +
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 +
koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 2 ++
svc/checkouts | 3 +++
5 files changed, 11 insertions(+)
--- a/admin/columns_settings.yml
+++ a/admin/columns_settings.yml
@@ -229,6 +229,8 @@ modules:
columnname: title
-
columnname: item_type
+ -
+ columnname: collection_code
-
columnname: location
-
@@ -341,6 +343,8 @@ modules:
columnname: title
-
columnname: item_type
+ -
+ columnname: collection_code
-
columnname: location
-
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc
@@ -16,6 +16,7 @@
Due date |
Title |
Item type |
+ Collection code |
Location |
Home library |
Checked out on |
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -850,6 +850,7 @@ No patron matched [% message | html %]
Due date |
Title |
Item type |
+ Collection code |
Location |
Checked out on |
Checked out from |
--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
+++ a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
@@ -291,6 +291,7 @@ $(document).ready(function() {
"sType": "anti-the"
},
{ "mDataProp": "itemtype_description" },
+ { "mDataProp": "ccode" },
{ "mDataProp": "location" },
{ "mDataProp": "homebranch" },
{ "mDataProp": "issuedate_formatted" },
@@ -589,6 +590,7 @@ $(document).ready(function() {
"sType": "anti-the"
},
{ "mDataProp": "itemtype" },
+ { "mDataProp": "ccode" },
{ "mDataProp": "location" },
{ "mDataProp": "issuedate_formatted" },
{ "mDataProp": "branchname" },
--- a/svc/checkouts
+++ a/svc/checkouts
@@ -90,6 +90,8 @@ my $sql = '
items.itype,
biblioitems.itemtype,
+ items.ccode,
+
borrowernumber,
surname,
firstname,
@@ -171,6 +173,7 @@ while ( my $c = $sth->fetchrow_hashref() ) {
barcode => $c->{barcode},
itemtype => $item_level_itypes ? $c->{itype} : $c->{itemtype},
itemtype_description => $itemtype ? $itemtype->translated_description : q{},
+ ccode => $c->{ccode},
location => $location,
homebranch => $c->{homebranch},
itemnotes => $c->{itemnotes},
--