Lines 85-96
Link Here
|
85 |
function(items, bookings){ |
85 |
function(items, bookings){ |
86 |
var itemsSet = new vis.DataSet([{ |
86 |
var itemsSet = new vis.DataSet([{ |
87 |
id: 0, |
87 |
id: 0, |
88 |
content: "Biblio level" |
88 |
content: _("Biblio level") |
89 |
}]); |
89 |
}]); |
90 |
for (item of items[0]) { |
90 |
for (item of items[0]) { |
91 |
itemsSet.add({ |
91 |
itemsSet.add({ |
92 |
id: item.item_id, |
92 |
id: item.item_id, |
93 |
content: "Item " + item.external_id, |
93 |
content: _("Item") + " " + item.external_id, |
94 |
}); |
94 |
}); |
95 |
} |
95 |
} |
96 |
|
96 |
|
Lines 201-215
Link Here
|
201 |
], |
201 |
], |
202 |
"columns": [{ |
202 |
"columns": [{ |
203 |
"data": "booking_id", |
203 |
"data": "booking_id", |
204 |
"title": "Booking ID", |
204 |
"title": _("Booking ID"), |
205 |
"visible": false |
205 |
"visible": false |
206 |
}, |
206 |
}, |
207 |
{ |
207 |
{ |
208 |
"data": "item.external_id", |
208 |
"data": "item.external_id", |
209 |
"title": "Item", |
209 |
"title": _("Item"), |
210 |
"searchable": true, |
210 |
"searchable": true, |
211 |
"orderable": true, |
211 |
"orderable": true, |
212 |
"defaultContent": "Any item", |
212 |
"defaultContent": _("Any item"), |
213 |
"render": function(data,type,row,meta) { |
213 |
"render": function(data,type,row,meta) { |
214 |
if ( row.item ) { |
214 |
if ( row.item ) { |
215 |
return row.item.external_id + " (" + row.booking_id + ")"; |
215 |
return row.item.external_id + " (" + row.booking_id + ")"; |
Lines 220-226
Link Here
|
220 |
}, |
220 |
}, |
221 |
{ |
221 |
{ |
222 |
"data": "patron.firstname:patron.surname", |
222 |
"data": "patron.firstname:patron.surname", |
223 |
"title": "Patron", |
223 |
"title": _("Patron"), |
224 |
"searchable": true, |
224 |
"searchable": true, |
225 |
"orderable": true, |
225 |
"orderable": true, |
226 |
"render": function(data, type, row, meta) { |
226 |
"render": function(data, type, row, meta) { |
Lines 232-238
Link Here
|
232 |
}, |
232 |
}, |
233 |
{ |
233 |
{ |
234 |
"data": "start_date", |
234 |
"data": "start_date", |
235 |
"title": "Start date", |
235 |
"title": _("Start date"), |
236 |
"searchable": true, |
236 |
"searchable": true, |
237 |
"orderable": true, |
237 |
"orderable": true, |
238 |
"render": function(data, type, row, meta) { |
238 |
"render": function(data, type, row, meta) { |
Lines 241-247
Link Here
|
241 |
}, |
241 |
}, |
242 |
{ |
242 |
{ |
243 |
"data": "end_date", |
243 |
"data": "end_date", |
244 |
"title": "End date", |
244 |
"title": _("End date"), |
245 |
"searchable": true, |
245 |
"searchable": true, |
246 |
"orderable": true, |
246 |
"orderable": true, |
247 |
"render": function(data, type, row, meta) { |
247 |
"render": function(data, type, row, meta) { |
Lines 250-256
Link Here
|
250 |
}, |
250 |
}, |
251 |
{ |
251 |
{ |
252 |
"data": "", |
252 |
"data": "", |
253 |
"title": "Actions", |
253 |
"title": _("Actions"), |
254 |
"class": "actions", |
254 |
"class": "actions", |
255 |
"searchable": false, |
255 |
"searchable": false, |
256 |
"orderable": false, |
256 |
"orderable": false, |