@@ -, +, @@ --- .../prog/en/includes/ill-list-table.inc | 1 + koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 21 +++++++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table.inc @@ -30,6 +30,7 @@ Completed on Access URL Cost + Comments OPAC notes Staff notes Backend --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -31,10 +31,14 @@ $(document).ready(function() { prep: function(tableData, oData) { var uniques = {}; tableData.forEach(function(row) { - var resolvedName = getStatusName( - oData[0].capabilities[row.status].name, - row - ); + var resolvedName; + if (row.status_alias) { + resolvedName = row.status_alias.lib; + } else { + resolvedName = getStatusName( + oData[0].capabilities[row.status].name + ); + } uniques[resolvedName] = 1 }); Object.keys(uniques).sort().forEach(function(unique) { @@ -266,7 +270,7 @@ $(document).ready(function() { action: { func: createActionLink }, - patron: { + borrowernumber: { func: createPatronLink }, illrequest_id: { @@ -286,7 +290,7 @@ $(document).ready(function() { name: _("Updated on"), }, patron_cardnumber: { - name: _("Patron barcode") + name: _("Cardnumber") } }; @@ -397,6 +401,11 @@ $(document).ready(function() { // unformatted column 'aTargets': [ 'updated_formatted'], 'iDataSort': 18 + }, + { + 'aTargets': [ 'patron_cardnumber' ], + 'bVisible': false, + 'bSearchable': true } ], 'aaSorting': [[ 18, 'desc' ]], // Default sort, updated descending --