|
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 |
// Possible prefilters: borrowernumber, batch_id |
67 |
// Possible prefilters: borrowernumber, batch_id |
| 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 316-327
$(document).ready(function() {
Link Here
|
| 316 |
"data": "status", |
329 |
"data": "status", |
| 317 |
"orderable": true, |
330 |
"orderable": true, |
| 318 |
"render": function(data, type, row, meta) { |
331 |
"render": function(data, type, row, meta) { |
| 319 |
let status_label = row._strings.status_av ? |
332 |
return display_request_status(row); |
| 320 |
row._strings.status_av.str ? |
|
|
| 321 |
row._strings.status_av.str : |
| 322 |
row._strings.status_av.code : |
| 323 |
row._strings.status.str |
| 324 |
return escape_str(status_label); |
| 325 |
} |
333 |
} |
| 326 |
}, |
334 |
}, |
| 327 |
{ |
335 |
{ |
| 328 |
- |
|
|