Since this bug is now dependent on Bug 20600 (Provide the ability for
users to filter ILL requests) we need to make the status filtering aware
of the custom statuses. This patch does that.
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
prep: function(tableData, oData) {
var uniques = {};
tableData.forEach(function(row) {
- var resolvedName = getStatusName(
- oData[0].capabilities[row.status].name
- );
+ 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) {