Lines 2197-2202
Link Here
|
2197 |
// For host records |
2197 |
// For host records |
2198 |
embed.push('biblio.title'); |
2198 |
embed.push('biblio.title'); |
2199 |
|
2199 |
|
|
|
2200 |
[% IF analyze %] |
2201 |
embed.push('analytics_count'); |
2202 |
[% END %] |
2203 |
|
2200 |
let items_table_settings = { |
2204 |
let items_table_settings = { |
2201 |
holdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], |
2205 |
holdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','holdings_table','json') | $raw %], |
2202 |
otherholdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %], |
2206 |
otherholdings: [% TablesSettings.GetTableSettings('catalogue', 'detail','otherholdings_table','json') | $raw %], |
Lines 2601-2613
Link Here
|
2601 |
return '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=%s">%s</a>'.format(row.biblio_id, row.biblio.title); |
2605 |
return '<a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=%s">%s</a>'.format(row.biblio_id, row.biblio.title); |
2602 |
} |
2606 |
} |
2603 |
}, |
2607 |
}, |
2604 |
[% IF ( analyze ) %] |
2608 |
[% IF analyze %] |
2605 |
{ |
2609 |
{ |
2606 |
data: "", |
2610 |
data: "analytics_count", |
2607 |
searchable: false, // FIXME |
2611 |
searchable: false, |
2608 |
orderable: true, |
2612 |
orderable: false, |
|
|
2613 |
render: function (data, type, row, meta) { |
2614 |
if (row.analytics_count == 0) return "" |
2615 |
return '<a href="/cgi-bin/koha/catalogue/search.pl?idx=hi&q=%s">%s analytics</a>'.format(row.item_id, row.analytics_count); |
2616 |
} |
2617 |
}, |
2618 |
{ |
2619 |
data: "analytics_count", // create analytics link |
2620 |
searchable: false, |
2621 |
orderable: false, |
2609 |
render: function (data, type, row, meta) { |
2622 |
render: function (data, type, row, meta) { |
2610 |
return ""; // FIXME Display analytic count + link |
2623 |
return '<a href="/cgi-bin/koha/cataloguing/addbiblio.pl?hostbiblionumber=%s&hostitemnumber=%s">Create analytics</a>'.format(row.biblio_id, row.item_id); |
2611 |
} |
2624 |
} |
2612 |
}, |
2625 |
}, |
2613 |
[% END %] |
2626 |
[% END %] |
2614 |
- |
|
|