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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsShow.vue (-3 / +4 lines)
Lines 262-268 Link Here
262
                                            agreement_package.package.name
262
                                            agreement_package.package.name
263
                                        }}</router-link
263
                                        }}</router-link
264
                                    >
264
                                    >
265
                                    (EBSCO)</span
265
                                    {{ $__("(EBSCO)") }}</span
266
                                >
266
                                >
267
                                <span v-else
267
                                <span v-else
268
                                    ><router-link
268
                                    ><router-link
Lines 278-284 Link Here
278
                                            agreement_package.package.name
278
                                            agreement_package.package.name
279
                                        }}</router-link
279
                                        }}</router-link
280
                                    >
280
                                    >
281
                                    (local)</span
281
                                    {{ $__("(local)") }}</span
282
                                >
282
                                >
283
                            </div>
283
                            </div>
284
                        </div>
284
                        </div>
Lines 303-309 Link Here
303
                                            {{ document.file_name }}
303
                                            {{ document.file_name }}
304
                                            <i class="fa fa-download"></i>
304
                                            <i class="fa fa-download"></i>
305
                                        </a>
305
                                        </a>
306
                                        ({{ document.file_type }}) Uploaded on:
306
                                        ({{ document.file_type }})
307
                                        {{ $__("Uploaded on:") }}
307
                                        {{ format_date(document.uploaded_on) }}
308
                                        {{ format_date(document.uploaded_on) }}
308
                                    </div>
309
                                    </div>
309
                                    <div v-if="document.physical_location">
310
                                    <div v-if="document.physical_location">
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsEBSCOPackagesShow.vue (-3 / +5 lines)
Lines 87-95 Link Here
87
                    </li>
87
                    </li>
88
88
89
                    <li>
89
                    <li>
90
                        <label
90
                        <label>{{
91
                            >Titles ({{ erm_package.resources_count }})</label
91
                            $__("Titles (%s)").format(
92
                        >
92
                                erm_package.resources_count
93
                            )
94
                        }}</label>
93
                    </li>
95
                    </li>
94
                </ol>
96
                </ol>
95
                <div v-if="erm_package.resources_count">
97
                <div v-if="erm_package.resources_count">
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesFormAdd.vue (-2 / +2 lines)
Lines 382-389 Link Here
382
                    <label for="create_linked_biblio"
382
                    <label for="create_linked_biblio"
383
                        >{{
383
                        >{{
384
                            title.title_id
384
                            title.title_id
385
                                ? $__("Update record")
385
                                ? $__("Update bibliographic record")
386
                                : $__("Create record")
386
                                : $__("Create bibliographic record")
387
                        }}:</label
387
                        }}:</label
388
                    >
388
                    >
389
                    <input
389
                    <input
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesShow.vue (-1 / +3 lines)
Lines 240-246 Link Here
240
                        </span>
240
                        </span>
241
                    </li>
241
                    </li>
242
                    <li>
242
                    <li>
243
                        <label>Packages ({{ title.resources.length }})</label>
243
                        <label>{{
244
                            $__("Packages (%s)").format(title.resources.length)
245
                        }}</label>
244
                        <div v-if="title.resources.length">
246
                        <div v-if="title.resources.length">
245
                            <EHoldingsTitlePackagesList
247
                            <EHoldingsTitlePackagesList
246
                                :resources="title.resources"
248
                                :resources="title.resources"
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesShow.vue (-1 / +2 lines)
Lines 117-123 Link Here
117
                                            {{ document.file_name }}
117
                                            {{ document.file_name }}
118
                                            <i class="fa fa-download"></i>
118
                                            <i class="fa fa-download"></i>
119
                                        </a>
119
                                        </a>
120
                                        ({{ document.file_type }}) Uploaded on:
120
                                        ({{ document.file_type }})
121
                                        {{ $__("Uploaded on:") }}
121
                                        {{ format_date(document.uploaded_on) }}
122
                                        {{ format_date(document.uploaded_on) }}
122
                                    </div>
123
                                    </div>
123
                                    <div v-if="document.physical_location">
124
                                    <div v-if="document.physical_location">
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Main.vue (-1 / +1 lines)
Lines 135-141 export default { Link Here
135
                if (this.config.settings.ERMModule != 1) {
135
                if (this.config.settings.ERMModule != 1) {
136
                    return this.setError(
136
                    return this.setError(
137
                        this.$__(
137
                        this.$__(
138
                            'The e-resource management module is disabled, turn on <a href="/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ERMModule">ERMModule</a> to use it'
138
                            "The e-resource management module is disabled, turn on <a href='/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=ERMModule'>ERMModule</a> to use it"
139
                        ),
139
                        ),
140
                        false
140
                        false
141
                    )
141
                    )
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProviderDetails.vue (-1 / +5 lines)
Lines 17-23 Link Here
17
            <li>
17
            <li>
18
                <label>{{ $__("Status") }}:</label>
18
                <label>{{ $__("Status") }}:</label>
19
                <span id="harvester_status">
19
                <span id="harvester_status">
20
                    {{ usage_data_provider.active ? "Active" : "Inactive" }}
20
                    {{
21
                        usage_data_provider.active
22
                            ? $__("Active")
23
                            : $__("Inactive")
24
                    }}
21
                </span>
25
                </span>
22
            </li>
26
            </li>
23
            <li>
27
            <li>
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue (-9 / +9 lines)
Lines 177-183 Link Here
177
                        </li>
177
                        </li>
178
                    </ol>
178
                    </ol>
179
                </fieldset>
179
                </fieldset>
180
                <legend>{{ $__("Sushi credentials") }}</legend>
180
                <legend>{{ $__("SUSHI credentials") }}</legend>
181
                <fieldset class="rows credentials">
181
                <fieldset class="rows credentials">
182
                    <ol class="credentials_form">
182
                    <ol class="credentials_form">
183
                        <li>
183
                        <li>
Lines 328-335 Link Here
328
                            </label>
328
                            </label>
329
                            <span id="customer_id_info">{{
329
                            <span id="customer_id_info">{{
330
                                sushi_service.customer_id_info
330
                                sushi_service.customer_id_info
331
                                    ? $__(sushi_service.customer_id_info)
331
                                    ? sushi_service.customer_id_info
332
                                    : "No information provided"
332
                                    : $__("No information provided")
333
                            }}</span>
333
                            }}</span>
334
                        </li>
334
                        </li>
335
                        <li>
335
                        <li>
Lines 338-345 Link Here
338
                            </label>
338
                            </label>
339
                            <span id="requestor_id_info">{{
339
                            <span id="requestor_id_info">{{
340
                                sushi_service.requestor_id_info
340
                                sushi_service.requestor_id_info
341
                                    ? $__(sushi_service.requestor_id_info)
341
                                    ? sushi_service.requestor_id_info
342
                                    : "No information provided"
342
                                    : $__("No information provided")
343
                            }}</span>
343
                            }}</span>
344
                        </li>
344
                        </li>
345
                        <li>
345
                        <li>
Lines 348-355 Link Here
348
                            </label>
348
                            </label>
349
                            <span id="api_key_info">{{
349
                            <span id="api_key_info">{{
350
                                sushi_service.api_key_info
350
                                sushi_service.api_key_info
351
                                    ? $__(sushi_service.api_key_info)
351
                                    ? sushi_service.api_key_info
352
                                    : "No information provided"
352
                                    : $__("No information provided")
353
                            }}</span>
353
                            }}</span>
354
                        </li>
354
                        </li>
355
                        <span
355
                        <span
Lines 421-428 export default { Link Here
421
            initialized: false,
421
            initialized: false,
422
            previous_route: "",
422
            previous_route: "",
423
            statuses: [
423
            statuses: [
424
                { description: "Active", value: 1 },
424
                { description: __("Active"), value: 1 },
425
                { description: "Inactive", value: 0 },
425
                { description: __("Inactive"), value: 0 },
426
            ],
426
            ],
427
            registry_data: [],
427
            registry_data: [],
428
            valid_report_types: [...this.av_report_types],
428
            valid_report_types: [...this.av_report_types],
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersShow.vue (-5 / +17 lines)
Lines 58-64 Link Here
58
                        v-bind:class="
58
                        v-bind:class="
59
                            tab_content === item.data_type ? 'active' : ''
59
                            tab_content === item.data_type ? 'active' : ''
60
                        "
60
                        "
61
                        >{{ $__(item.tab_name) }}</a
61
                        >{{ $item.tab_name }}</a
62
                    >
62
                    >
63
                </li>
63
                </li>
64
                <li class="nav-item">
64
                <li class="nav-item">
Lines 162-171 export default { Link Here
162
            initialized: false,
162
            initialized: false,
163
            tab_content: "detail",
163
            tab_content: "detail",
164
            available_data_types: [
164
            available_data_types: [
165
                { test: "TR", data_type: "title", tab_name: "Titles" },
165
                {
166
                { test: "PR", data_type: "platform", tab_name: "Platforms" },
166
                    test: "TR",
167
                { test: "IR", data_type: "item", tab_name: "Items" },
167
                    data_type: "title",
168
                { test: "DR", data_type: "database", tab_name: "Databases" },
168
                    tab_name: this.$__("Titles"),
169
                },
170
                {
171
                    test: "PR",
172
                    data_type: "platform",
173
                    tab_name: this.$__("Platforms"),
174
                },
175
                { test: "IR", data_type: "item", tab_name: this.$__("Items") },
176
                {
177
                    test: "DR",
178
                    data_type: "database",
179
                    tab_name: this.$__("Databases"),
180
                },
169
            ],
181
            ],
170
        }
182
        }
171
    },
183
    },
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersSummary.vue (-6 / +6 lines)
Lines 100-106 export default { Link Here
100
                        render: function (data, type, row, meta) {
100
                        render: function (data, type, row, meta) {
101
                            const date = row[`earliest_${data_type}`]
101
                            const date = row[`earliest_${data_type}`]
102
                                ? row[`earliest_${data_type}`]
102
                                ? row[`earliest_${data_type}`]
103
                                : "N/A"
103
                                : this.$__("N/A")
104
                            return date
104
                            return date
105
                        },
105
                        },
106
                    },
106
                    },
Lines 112-118 export default { Link Here
112
                        render: function (data, type, row, meta) {
112
                        render: function (data, type, row, meta) {
113
                            const date = row[`latest_${data_type}`]
113
                            const date = row[`latest_${data_type}`]
114
                                ? row[`latest_${data_type}`]
114
                                ? row[`latest_${data_type}`]
115
                                : "N/A"
115
                                : this.$__("N/A")
116
                            return date
116
                            return date
117
                        },
117
                        },
118
                    }
118
                    }
Lines 132-144 export default { Link Here
132
                    return cell
132
                    return cell
133
                })
133
                })
134
            cellTwo.colSpan = 2
134
            cellTwo.colSpan = 2
135
            cellTwo.innerHTML = "Title reports"
135
            cellTwo.innerHTML = this.$__("Title reports")
136
            cellThree.colSpan = 2
136
            cellThree.colSpan = 2
137
            cellThree.innerHTML = "Platform reports"
137
            cellThree.innerHTML = this.$__("Platform reports")
138
            cellFour.colSpan = 2
138
            cellFour.colSpan = 2
139
            cellFour.innerHTML = "Database reports"
139
            cellFour.innerHTML = this.$__("Database reports")
140
            cellFive.colSpan = 2
140
            cellFive.colSpan = 2
141
            cellFive.innerHTML = "Item reports"
141
            cellFive.innerHTML = this.$__("Item reports")
142
142
143
            this.$refs.table_div.classList.remove("hide-table")
143
            this.$refs.table_div.classList.remove("hide-table")
144
        },
144
        },
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsProviderDataList.vue (-11 / +12 lines)
Lines 6-12 Link Here
6
        </div>
6
        </div>
7
        <div v-else-if="initialized" class="alert alert-info">
7
        <div v-else-if="initialized" class="alert alert-info">
8
            {{
8
            {{
9
                $__(`No ${data_type} data has been harvested for this provider`)
9
                $__("No %s data has been harvested for this provider").format(
10
                    data_type
11
                )
10
            }}
12
            }}
11
        </div>
13
        </div>
12
    </div>
14
    </div>
Lines 68-77 export default { Link Here
68
                {
70
                {
69
                    used_by: ["title", "platform", "item", "database"],
71
                    used_by: ["title", "platform", "item", "database"],
70
                    column: {
72
                    column: {
71
                        title: __(
73
                        title:
72
                            this.data_type.charAt(0).toUpperCase() +
74
                            this.data_type.charAt(0).toUpperCase() +
73
                                this.data_type.slice(1)
75
                            this.data_type.slice(1),
74
                        ),
75
                        data: this.data_type,
76
                        data: this.data_type,
76
                        searchable: true,
77
                        searchable: true,
77
                        orderable: true,
78
                        orderable: true,
Lines 80-86 export default { Link Here
80
                {
81
                {
81
                    used_by: ["item", "database", "platforms"],
82
                    used_by: ["item", "database", "platforms"],
82
                    column: {
83
                    column: {
83
                        title: "Platform",
84
                        title: __("Platform"),
84
                        data: "platform",
85
                        data: "platform",
85
                        searchable: true,
86
                        searchable: true,
86
                        orderable: true,
87
                        orderable: true,
Lines 89-95 export default { Link Here
89
                {
90
                {
90
                    used_by: ["title", "item", "database"],
91
                    used_by: ["title", "item", "database"],
91
                    column: {
92
                    column: {
92
                        title: "Publisher",
93
                        title: __("Publisher"),
93
                        data: "publisher",
94
                        data: "publisher",
94
                        searchable: true,
95
                        searchable: true,
95
                        orderable: true,
96
                        orderable: true,
Lines 98-104 export default { Link Here
98
                {
99
                {
99
                    used_by: ["title", "database"],
100
                    used_by: ["title", "database"],
100
                    column: {
101
                    column: {
101
                        title: "Publisher ID",
102
                        title: __("Publisher ID"),
102
                        data: "publisher_id",
103
                        data: "publisher_id",
103
                        searchable: true,
104
                        searchable: true,
104
                        orderable: true,
105
                        orderable: true,
Lines 107-113 export default { Link Here
107
                {
108
                {
108
                    used_by: ["title"],
109
                    used_by: ["title"],
109
                    column: {
110
                    column: {
110
                        title: "DOI",
111
                        title: __("DOI"),
111
                        data: "title_doi",
112
                        data: "title_doi",
112
                        searchable: true,
113
                        searchable: true,
113
                        orderable: true,
114
                        orderable: true,
Lines 116-122 export default { Link Here
116
                {
117
                {
117
                    used_by: ["title"],
118
                    used_by: ["title"],
118
                    column: {
119
                    column: {
119
                        title: "Print ISSN",
120
                        title: __("Print ISSN"),
120
                        data: "print_issn",
121
                        data: "print_issn",
121
                        searchable: true,
122
                        searchable: true,
122
                        orderable: true,
123
                        orderable: true,
Lines 125-131 export default { Link Here
125
                {
126
                {
126
                    used_by: ["title"],
127
                    used_by: ["title"],
127
                    column: {
128
                    column: {
128
                        title: "Online ISSN",
129
                        title: __("Online ISSN"),
129
                        data: "online_issn",
130
                        data: "online_issn",
130
                        searchable: true,
131
                        searchable: true,
131
                        orderable: true,
132
                        orderable: true,
Lines 134-140 export default { Link Here
134
                {
135
                {
135
                    used_by: ["title"],
136
                    used_by: ["title"],
136
                    column: {
137
                    column: {
137
                        title: "URI",
138
                        title: __("URI"),
138
                        data: "title_uri",
139
                        data: "title_uri",
139
                        searchable: true,
140
                        searchable: true,
140
                        orderable: true,
141
                        orderable: true,
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsReportBuilder.vue (-9 / +14 lines)
Lines 18-38 Link Here
18
                                :options="[
18
                                :options="[
19
                                    {
19
                                    {
20
                                        value: 'monthly',
20
                                        value: 'monthly',
21
                                        description: 'By month',
21
                                        description: __('By month'),
22
                                    },
22
                                    },
23
                                    {
23
                                    {
24
                                        value: 'monthly_with_totals',
24
                                        value: 'monthly_with_totals',
25
                                        description:
25
                                        description: __(
26
                                            'By month with period total',
26
                                            'By month with period total'
27
                                        ),
28
                                    },
29
                                    {
30
                                        value: 'yearly',
31
                                        description: __('By year'),
27
                                    },
32
                                    },
28
                                    { value: 'yearly', description: 'By year' },
29
                                    {
33
                                    {
30
                                        value: 'metric_type',
34
                                        value: 'metric_type',
31
                                        description: 'By metric type',
35
                                        description: __('By metric type'),
32
                                    },
36
                                    },
33
                                    {
37
                                    {
34
                                        value: 'usage_data_provider',
38
                                        value: 'usage_data_provider',
35
                                        description: 'By data provider totals',
39
                                        description: __(
40
                                            'By data provider totals'
41
                                        ),
36
                                    },
42
                                    },
37
                                ]"
43
                                ]"
38
                                :required="!query.data_display"
44
                                :required="!query.data_display"
Lines 219-225 Link Here
219
                            class="checkbox_options"
225
                            class="checkbox_options"
220
                        >
226
                        >
221
                            <label :for="prop.name" class="checkbox"
227
                            <label :for="prop.name" class="checkbox"
222
                                >{{ $__(prop.name) }}:</label
228
                                >{{ $prop.name }}:</label
223
                            >
229
                            >
224
                            <input
230
                            <input
225
                                type="checkbox"
231
                                type="checkbox"
Lines 304-310 Link Here
304
                                class="month_selectors"
310
                                class="month_selectors"
305
                            >
311
                            >
306
                                <label for="month" class="month_labels">
312
                                <label for="month" class="month_labels">
307
                                    {{ $__(month.short) }}
313
                                    {{ $month.short }}
308
                                </label>
314
                                </label>
309
                                <input
315
                                <input
310
                                    type="checkbox"
316
                                    type="checkbox"
311
- 

Return to bug 36836