@@ -, +, @@ - Apply patch - Check out some items with and without copy number in the item to any patron - In the checkouts table on the Checkouts and Details tabs: - Verify that a new column shows 'copy no' shows after 'call no' - Verify the information displays correctly - Verify that the column configuration settings for the new column works --- admin/columns_settings.yml | 4 ++++ .../intranet-tmpl/prog/en/includes/checkouts-table-footer.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc | 1 + koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 10 ++++++++++ svc/checkouts | 4 +++- 5 files changed, 19 insertions(+), 2 deletions(-) --- a/admin/columns_settings.yml +++ a/admin/columns_settings.yml @@ -786,6 +786,8 @@ modules: - columnname: callno - + columnname: copynumber + - columnname: charge - columnname: fine @@ -1049,6 +1051,8 @@ modules: - columnname: callno - + columnname: copynumber + - columnname: charge - columnname: fine --- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table-footer.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table-footer.inc @@ -1,6 +1,6 @@ - Totals: + Totals: --- a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc @@ -24,6 +24,7 @@ Checked out on Checked out from Call no + Copy no Charge Fine Price --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -392,6 +392,11 @@ $(document).ready(function() { }, { "mDataProp": function ( oObj ) { + return ( oObj.copynumber ? oObj.copynumber.escapeHtml() : '' ); + } + }, + { + "mDataProp": function ( oObj ) { if ( ! oObj.charge ) oObj.charge = 0; return '' + parseFloat(oObj.charge).toFixed(2) + ''; } @@ -761,6 +766,11 @@ $(document).ready(function() { }, { "mDataProp": function ( oObj ) { + return ( oObj.copynumber ? oObj.copynumber.escapeHtml() : '' ); + } + }, + { + "mDataProp": function ( oObj ) { if ( ! oObj.charge ) oObj.charge = 0; return parseFloat(oObj.charge).toFixed(2); } --- a/svc/checkouts +++ a/svc/checkouts @@ -85,6 +85,7 @@ my $sql = ' items.itemnotes, items.itemnotes_nonpublic, items.itemcallnumber, + items.copynumber, items.replacementprice, issues.branchcode, @@ -206,7 +207,8 @@ while ( my $c = $sth->fetchrow_hashref() ) { itemnotes_nonpublic => $c->{itemnotes_nonpublic}, branchcode => $c->{branchcode}, branchname => $c->{branchname}, - itemcallnumber => $c->{itemcallnumber} || q{}, + itemcallnumber => $c->{itemcallnumber} || q{}, + copynumber => $c->{copynumber} || q{}, charge => $charge, fine => $fine, price => $c->{replacementprice} || q{}, --