Lines 2495-2500
Link Here
|
2495 |
[% IF Koha.Preference('LocalCoverImages') %] |
2495 |
[% IF Koha.Preference('LocalCoverImages') %] |
2496 |
embed.push('cover_image_ids'); |
2496 |
embed.push('cover_image_ids'); |
2497 |
[% END %] |
2497 |
[% END %] |
|
|
2498 |
[% IF Koha.Preference('EnableItemGroups') %] |
2499 |
embed.push('item_group_item.item_group.description'); |
2500 |
[% END %] |
2498 |
let table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %]; |
2501 |
let table_settings = [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %]; |
2499 |
var items_table = $("#table_items").kohaTable({ |
2502 |
var items_table = $("#table_items").kohaTable({ |
2500 |
ajax: { url: table_url }, |
2503 |
ajax: { url: table_url }, |
Lines 2605-2616
Link Here
|
2605 |
}, |
2608 |
}, |
2606 |
[% IF Koha.Preference('EnableItemGroups') %] |
2609 |
[% IF Koha.Preference('EnableItemGroups') %] |
2607 |
{ |
2610 |
{ |
2608 |
data: "", |
2611 |
data: "item_group_item.item_group.description", |
2609 |
className: "item_group", |
2612 |
className: "item_group", |
2610 |
searchable: false, // FIXME |
2613 |
searchable: true, |
2611 |
orderable: true, |
2614 |
orderable: true, |
2612 |
render: function (data, type, row, meta) { |
2615 |
render: function (data, type, row, meta) { |
2613 |
return "item.item_group.description";// FIXME item.item_group.description |
2616 |
if ( row.item_group_item ) { |
|
|
2617 |
return row.item_group_item.item_group.description; |
2618 |
} else { |
2619 |
return ""; |
2620 |
} |
2614 |
} |
2621 |
} |
2615 |
}, |
2622 |
}, |
2616 |
[% END %] |
2623 |
[% END %] |
2617 |
- |
|
|