Lines 207-220
Link Here
|
207 |
url: table_url, |
207 |
url: table_url, |
208 |
}, |
208 |
}, |
209 |
order: [], |
209 |
order: [], |
210 |
embed: ['biblio', 'item', 'pickup_library', 'pickup_library.branchname'], |
210 |
embed: ['biblio', 'deleted_biblio', 'item', 'pickup_library', 'pickup_library.branchname'], |
211 |
columns: [ |
211 |
columns: [ |
212 |
{ |
212 |
{ |
213 |
data: "biblio.title:biblio.subtitle:biblio.medium", |
213 |
data: "biblio.title:biblio.subtitle:biblio.medium", |
214 |
searchable: true, |
214 |
searchable: true, |
215 |
orderable: true, |
215 |
orderable: true, |
216 |
render: function (data, type, row, meta) { |
216 |
render: function (data, type, row, meta) { |
217 |
return $biblio_to_html(row.biblio, { link: 1 }); |
217 |
if( row.biblio ){ |
|
|
218 |
return $biblio_to_html(row.biblio, { link: 1 }); |
219 |
} else { |
220 |
return $biblio_to_html(row.deleted_biblio, { link: 0, deleted: 1 }); |
221 |
} |
218 |
} |
222 |
} |
219 |
}, |
223 |
}, |
220 |
{ |
224 |
{ |
Lines 222-228
Link Here
|
222 |
searchable: true, |
226 |
searchable: true, |
223 |
orderable: true, |
227 |
orderable: true, |
224 |
render: function (data, type, row, meta) { |
228 |
render: function (data, type, row, meta) { |
225 |
return row.biblio ? row.biblio.author : "" ; |
229 |
let biblio = row.biblio ? row.biblio : row.deleted_biblio; |
|
|
230 |
return biblio ? biblio.author : ""; |
226 |
} |
231 |
} |
227 |
}, |
232 |
}, |
228 |
{ |
233 |
{ |