View | Details | Raw Unified | Return to bug 36925
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportsViewer.vue (-23 / +27 lines)
Lines 94-100 export default { Link Here
94
                    this.params,
94
                    this.params,
95
                    this.data_type
95
                    this.data_type
96
                ),
96
                ),
97
                options: { embed: this.embed },
97
                options: {
98
                    embed: this.embed,
99
                    dom: '<"top pager"<"table_entries"ilp>>tr<"bottom pager"ip>',
100
                },
98
                url: () => this.tableURL(this.year, this.params),
101
                url: () => this.tableURL(this.year, this.params),
99
                table_settings: this.report_type.includes("monthly")
102
                table_settings: this.report_type.includes("monthly")
100
                    ? this.monthly_usage_table_settings
103
                    ? this.monthly_usage_table_settings
Lines 130-137 export default { Link Here
130
                        data_type.charAt(0).toUpperCase() + data_type.slice(1)
133
                        data_type.charAt(0).toUpperCase() + data_type.slice(1)
131
                    ),
134
                    ),
132
                    data: data_type,
135
                    data: data_type,
133
                    searchable: true,
136
                    searchable: false,
134
                    orderable: true,
137
                    orderable: false,
135
                })
138
                })
136
139
137
            // Add metric type to each row
140
            // Add metric type to each row
Lines 141-148 export default { Link Here
141
                    column_set.push({
144
                    column_set.push({
142
                        title: __("YOP"),
145
                        title: __("YOP"),
143
                        data: "yop",
146
                        data: "yop",
144
                        searchable: true,
147
                        searchable: false,
145
                        orderable: true,
148
                        orderable: false,
146
                    })
149
                    })
147
                }
150
                }
148
                // Add access type if it is required
151
                // Add access type if it is required
Lines 150-166 export default { Link Here
150
                    column_set.push({
153
                    column_set.push({
151
                        title: __("Access type"),
154
                        title: __("Access type"),
152
                        data: "access_type",
155
                        data: "access_type",
153
                        searchable: true,
156
                        searchable: false,
154
                        orderable: true,
157
                        orderable: false,
155
                    })
158
                    })
156
                }
159
                }
157
                column_set.push({
160
                column_set.push({
158
                    title: __("Metric"),
161
                    title: __("Metric"),
162
                    data: "metric_type",
159
                    render: function (data, type, row, meta) {
163
                    render: function (data, type, row, meta) {
160
                        return row.metric_type
164
                        return row.metric_type
161
                    },
165
                    },
162
                    searchable: true,
166
                    searchable: false,
163
                    orderable: true,
167
                    orderable: false,
164
                })
168
                })
165
            }
169
            }
166
170
Lines 168-181 export default { Link Here
168
                column_set.unshift({
172
                column_set.unshift({
169
                    title: __("Data provider"),
173
                    title: __("Data provider"),
170
                    data: "name",
174
                    data: "name",
171
                    searchable: true,
175
                    searchable: false,
172
                    orderable: true,
176
                    orderable: false,
173
                })
177
                })
174
                column_set.push({
178
                column_set.push({
175
                    title: __("Period total"),
179
                    title: __("Period total"),
176
                    data: "provider_rollup_total",
180
                    data: "provider_rollup_total",
177
                    searchable: true,
181
                    searchable: false,
178
                    orderable: true,
182
                    orderable: false,
179
                })
183
                })
180
                return column_set
184
                return column_set
181
            }
185
            }
Lines 196-203 export default { Link Here
196
                                : "-"
200
                                : "-"
197
                            return usage
201
                            return usage
198
                        },
202
                        },
199
                        searchable: true,
203
                        searchable: false,
200
                        orderable: true,
204
                        orderable: false,
201
                    })
205
                    })
202
                })
206
                })
203
            } else {
207
            } else {
Lines 232-239 export default { Link Here
232
                                            : "-"
236
                                            : "-"
233
                                        return usage
237
                                        return usage
234
                                    },
238
                                    },
235
                                    searchable: true,
239
                                    searchable: false,
236
                                    orderable: true,
240
                                    orderable: false,
237
                                })
241
                                })
238
                            }
242
                            }
239
                        })
243
                        })
Lines 255-262 export default { Link Here
255
                                    : "-"
259
                                    : "-"
256
                                return usage
260
                                return usage
257
                            },
261
                            },
258
                            searchable: true,
262
                            searchable: false,
259
                            orderable: true,
263
                            orderable: false,
260
                        })
264
                        })
261
                    })
265
                    })
262
                }
266
                }
Lines 268-275 export default { Link Here
268
                        column_set.push({
272
                        column_set.push({
269
                            title: __("YOP"),
273
                            title: __("YOP"),
270
                            data: "yop",
274
                            data: "yop",
271
                            searchable: true,
275
                            searchable: false,
272
                            orderable: true,
276
                            orderable: false,
273
                        })
277
                        })
274
                    }
278
                    }
275
                    metric_types.forEach(metric => {
279
                    metric_types.forEach(metric => {
Lines 331-338 export default { Link Here
331
                column_set.push({
335
                column_set.push({
332
                    title: __("Period total"),
336
                    title: __("Period total"),
333
                    data: "usage_total",
337
                    data: "usage_total",
334
                    searchable: true,
338
                    searchable: false,
335
                    orderable: true,
339
                    orderable: false,
336
                })
340
                })
337
            }
341
            }
338
            return column_set
342
            return column_set
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/stores/usage-reports.js (-17 / +16 lines)
Lines 26-33 export const useReportsStore = defineStore("reports", { Link Here
26
                column: {
26
                column: {
27
                    title: __("Data provider"),
27
                    title: __("Data provider"),
28
                    data: "provider_name",
28
                    data: "provider_name",
29
                    searchable: true,
29
                    searchable: false,
30
                    orderable: true,
30
                    orderable: false,
31
                },
31
                },
32
            },
32
            },
33
            2: {
33
            2: {
Lines 38-45 export const useReportsStore = defineStore("reports", { Link Here
38
                column: {
38
                column: {
39
                    title: __("Publisher"),
39
                    title: __("Publisher"),
40
                    data: "publisher",
40
                    data: "publisher",
41
                    searchable: true,
41
                    searchable: false,
42
                    orderable: true,
42
                    orderable: false,
43
                },
43
                },
44
            },
44
            },
45
            3: {
45
            3: {
Lines 50-57 export const useReportsStore = defineStore("reports", { Link Here
50
                column: {
50
                column: {
51
                    title: __("Platform"),
51
                    title: __("Platform"),
52
                    data: "platform",
52
                    data: "platform",
53
                    searchable: true,
53
                    searchable: false,
54
                    orderable: true,
54
                    orderable: false,
55
                },
55
                },
56
            },
56
            },
57
            4: {
57
            4: {
Lines 62-69 export const useReportsStore = defineStore("reports", { Link Here
62
                column: {
62
                column: {
63
                    title: __("Publisher ID"),
63
                    title: __("Publisher ID"),
64
                    data: "publisher_id",
64
                    data: "publisher_id",
65
                    searchable: true,
65
                    searchable: false,
66
                    orderable: true,
66
                    orderable: false,
67
                },
67
                },
68
            },
68
            },
69
            5: {
69
            5: {
Lines 74-81 export const useReportsStore = defineStore("reports", { Link Here
74
                column: {
74
                column: {
75
                    title: __("Online ISSN"),
75
                    title: __("Online ISSN"),
76
                    data: "online_issn",
76
                    data: "online_issn",
77
                    searchable: true,
77
                    searchable: false,
78
                    orderable: true,
78
                    orderable: false,
79
                },
79
                },
80
            },
80
            },
81
            6: {
81
            6: {
Lines 86-93 export const useReportsStore = defineStore("reports", { Link Here
86
                column: {
86
                column: {
87
                    title: __("Print ISSN"),
87
                    title: __("Print ISSN"),
88
                    data: "print_issn",
88
                    data: "print_issn",
89
                    searchable: true,
89
                    searchable: false,
90
                    orderable: true,
90
                    orderable: false,
91
                },
91
                },
92
            },
92
            },
93
            7: {
93
            7: {
Lines 98-105 export const useReportsStore = defineStore("reports", { Link Here
98
                column: {
98
                column: {
99
                    title: __("DOI"),
99
                    title: __("DOI"),
100
                    data: "title_doi",
100
                    data: "title_doi",
101
                    searchable: true,
101
                    searchable: false,
102
                    orderable: true,
102
                    orderable: false,
103
                },
103
                },
104
            },
104
            },
105
            8: {
105
            8: {
Lines 110-117 export const useReportsStore = defineStore("reports", { Link Here
110
                column: {
110
                column: {
111
                    title: __("URI"),
111
                    title: __("URI"),
112
                    data: "title_uri",
112
                    data: "title_uri",
113
                    searchable: true,
113
                    searchable: false,
114
                    orderable: true,
114
                    orderable: false,
115
                },
115
                },
116
            },
116
            },
117
        },
117
        },
118
- 

Return to bug 36925