|
Lines 62-68
export default {
Link Here
|
| 62 |
searchTerm: null, |
62 |
searchTerm: null, |
| 63 |
tableOptions: { |
63 |
tableOptions: { |
| 64 |
columns: this.getTableColumns(), |
64 |
columns: this.getTableColumns(), |
| 65 |
options: { embed: "aliases,baskets,subscriptions" }, |
65 |
options: { embed: "aliases,baskets,subscriptions+count" }, |
| 66 |
url: () => this.tableURL(), |
66 |
url: () => this.tableURL(), |
| 67 |
add_filters: true, |
67 |
add_filters: true, |
| 68 |
filters_options: { |
68 |
filters_options: { |
|
Lines 85-92
export default {
Link Here
|
| 85 |
should_display: row => |
85 |
should_display: row => |
| 86 |
(!row.baskets || |
86 |
(!row.baskets || |
| 87 |
row.baskets.length === 0) && |
87 |
row.baskets.length === 0) && |
| 88 |
(!row.subscriptions || |
88 |
(!row.subscriptions_count || |
| 89 |
row.subscriptions.length === 0), |
89 |
row.subscriptions_count === 0), |
| 90 |
}, |
90 |
}, |
| 91 |
}, |
91 |
}, |
| 92 |
], |
92 |
], |
|
Lines 234-246
export default {
Link Here
|
| 234 |
searchable: false, |
234 |
searchable: false, |
| 235 |
orderable: false, |
235 |
orderable: false, |
| 236 |
render(data, type, row, meta) { |
236 |
render(data, type, row, meta) { |
| 237 |
return row.subscriptions.length |
237 |
return row.subscriptions_count |
| 238 |
? '<a href="/cgi-bin/koha/serials/serials-search.pl?bookseller_filter=' + |
238 |
? '<a href="/cgi-bin/koha/serials/serials-search.pl?bookseller_filter=' + |
| 239 |
row.name + |
239 |
row.name + |
| 240 |
"&searched=1" + |
240 |
"&searched=1" + |
| 241 |
'" class="show">' + |
241 |
'" class="show">' + |
| 242 |
escape_str( |
242 |
escape_str( |
| 243 |
`${row.subscriptions.length} subscription(s)` |
243 |
`${row.subscriptions_count} subscription(s)` |
| 244 |
) + |
244 |
) + |
| 245 |
"</a>" |
245 |
"</a>" |
| 246 |
: escape_str(__("No subscriptions")); |
246 |
: escape_str(__("No subscriptions")); |