Lines 129-134
Link Here
|
129 |
let library = $("#library").find(":selected").val(); |
129 |
let library = $("#library").find(":selected").val(); |
130 |
return library; |
130 |
return library; |
131 |
}, |
131 |
}, |
|
|
132 |
status: { '!=': 'waiting' }, |
132 |
}; |
133 |
}; |
133 |
|
134 |
|
134 |
var bookings_table_url = '/api/v1/bookings?'; |
135 |
var bookings_table_url = '/api/v1/bookings?'; |
Lines 138-144
Link Here
|
138 |
}, |
139 |
}, |
139 |
"embed": [ |
140 |
"embed": [ |
140 |
"biblio", |
141 |
"biblio", |
141 |
"item", |
142 |
"item+strings", |
|
|
143 |
"item.checkout", |
142 |
"patron", |
144 |
"patron", |
143 |
"pickup_library" |
145 |
"pickup_library" |
144 |
], |
146 |
], |
Lines 192-197
Link Here
|
192 |
} |
194 |
} |
193 |
} |
195 |
} |
194 |
}, |
196 |
}, |
|
|
197 |
{ |
198 |
"data": "", |
199 |
"title": "Location", |
200 |
"searchable": false, |
201 |
"orderable": true, |
202 |
"render": function(data,type,row,meta) { |
203 |
if ( row.item ) { |
204 |
if ( row.item.checked_out_date ) { |
205 |
return __("On loan, due: ") . $date(row.item.checked_out_date); |
206 |
} else { |
207 |
return row.item._strings.location.str; |
208 |
} |
209 |
} else { |
210 |
return null; |
211 |
} |
212 |
} |
213 |
}, |
195 |
{ |
214 |
{ |
196 |
"data": "patron.firstname:patron.surname", |
215 |
"data": "patron.firstname:patron.surname", |
197 |
"title": "Patron", |
216 |
"title": "Patron", |
198 |
- |
|
|