Lines 51-56
$(document).ready(function() {
Link Here
|
51 |
return ''; |
51 |
return ''; |
52 |
} |
52 |
} |
53 |
|
53 |
|
|
|
54 |
function display_request_status(row) { |
55 |
let status = row._strings.status.str; |
56 |
let status_alias = row._strings.status_av ? |
57 |
row._strings.status_av.str ? |
58 |
row._strings.status_av.str : |
59 |
row._strings.status_av.code : |
60 |
null; |
61 |
|
62 |
let status_label = status + (status_alias ? " <i><strong>"+status_alias+"</strong></i>" : ""); |
63 |
|
64 |
return status_label; |
65 |
} |
66 |
|
54 |
// At the moment, the only prefilter possible is borrowernumber |
67 |
// At the moment, the only prefilter possible is borrowernumber |
55 |
// see ill/ill-requests.pl and members/ill-requests.pl |
68 |
// see ill/ill-requests.pl and members/ill-requests.pl |
56 |
let additional_prefilters = {}; |
69 |
let additional_prefilters = {}; |
Lines 294-305
$(document).ready(function() {
Link Here
|
294 |
"data": "status", |
307 |
"data": "status", |
295 |
"orderable": true, |
308 |
"orderable": true, |
296 |
"render": function(data, type, row, meta) { |
309 |
"render": function(data, type, row, meta) { |
297 |
let status_label = row._strings.status_av ? |
310 |
return display_request_status(row); |
298 |
row._strings.status_av.str ? |
|
|
299 |
row._strings.status_av.str : |
300 |
row._strings.status_av.code : |
301 |
row._strings.status.str |
302 |
return escape_str(status_label); |
303 |
} |
311 |
} |
304 |
}, |
312 |
}, |
305 |
{ |
313 |
{ |
306 |
- |
|
|