Bugzilla – Attachment 72773 Details for
Bug 19719
Add a new column for collection in the patron checkouts data table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19719 - Add a ‘Collection’ column in the patron loans data table.
Bug-19719---Add-a-Collection-column-in-the-patron-.patch (text/plain), 4.49 KB, created by
Jesse Maseto
on 2018-03-13 13:24:40 UTC
(
hide
)
Description:
Bug 19719 - Add a ‘Collection’ column in the patron loans data table.
Filename:
MIME Type:
Creator:
Jesse Maseto
Created:
2018-03-13 13:24:40 UTC
Size:
4.49 KB
patch
obsolete
>From cb6ca59c7d8f24a799cc5f5c65e8bad79e0b3711 Mon Sep 17 00:00:00 2001 >From: Jesse Maseto <jesse@bywatersolutions.com> >Date: Fri, 2 Mar 2018 13:11:44 +0000 >Subject: [PATCH] =?UTF-8?q?Bug=2019719=20-=20Add=20a=20=E2=80=98Collection?= > =?UTF-8?q?=E2=80=99=20column=20in=20the=20patron=20loans=20data=20table.?= >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >--- > 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(+) > >diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml >index f56a745..5371eff 100644 >--- a/admin/columns_settings.yml >+++ b/admin/columns_settings.yml >@@ -230,6 +230,8 @@ modules: > - > columnname: item_type > - >+ columnname: collection_code >+ - > columnname: location > - > columnname: homebranch >@@ -342,6 +344,8 @@ modules: > - > columnname: item_type > - >+ columnname: collection_code >+ - > columnname: location > - > columnname: homebranch >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >index b34089d..aa38cc8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc >@@ -16,6 +16,7 @@ > <th scope="col">Due date</th> > <th scope="col">Title</th> > <th scope="col">Item type</th> >+ <th scope="col">Collection code</th> > <th scope="col">Location</th> > <th scope="col">Home library</th> > <th scope="col">Checked out on</th> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index 4c66feb..f1f9cac 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -851,6 +851,7 @@ No patron matched <span class="ex">[% message | html %]</span> > <th scope="col">Due date</th> > <th scope="col">Title</th> > <th scope="col">Item type</th> >+ <th scope="col">Collection code</th> > <th scope="col">Location</th> > <th scope="col">Checked out on</th> > <th scope="col">Checked out from</th> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >index 5167ee1..d4c063e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js >+++ b/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" }, >diff --git a/svc/checkouts b/svc/checkouts >index fefadee..d1fb8d3 100755 >--- a/svc/checkouts >+++ b/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}, >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19719
:
72773
|
72829
|
73510
|
73511
|
74538
|
74539
|
76199
|
77559
|
77560
|
77561