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

(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProviderDetails.vue (+10 lines)
Lines 14-19 Link Here
14
                    {{ usage_data_provider.description }}
14
                    {{ usage_data_provider.description }}
15
                </span>
15
                </span>
16
            </li>
16
            </li>
17
            <li v-if="usage_data_provider.vendor_id">
18
                <label>{{ $__("Vendor") }}:</label>
19
                <span v-if="usage_data_provider.vendor_id">
20
                    <a
21
                        :href="`/cgi-bin/koha/vendors/${usage_data_provider.vendor_id}`"
22
                    >
23
                        {{ usage_data_provider.vendor.name }}
24
                    </a>
25
                </span>
26
            </li>
17
            <li>
27
            <li>
18
                <label>{{ $__("Status") }}:</label>
28
                <label>{{ $__("Status") }}:</label>
19
                <span id="harvester_status">
29
                <span id="harvester_status">
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue (+12 lines)
Lines 95-100 Link Here
95
                                :disabled="!selected_provider && !manual_form"
95
                                :disabled="!selected_provider && !manual_form"
96
                            />
96
                            />
97
                        </li>
97
                        </li>
98
                        <li>
99
                            <label for="usage_data_provider_vendor_id"
100
                                >{{ $__("Vendor") }}:</label
101
                            >
102
                            <FormSelectVendors
103
                                id="usage_data_provider_vendor_id"
104
                                v-model="usage_data_provider.vendor_id"
105
                            />
106
                        </li>
98
                        <li>
107
                        <li>
99
                            <label for="usage_data_provider_status"
108
                            <label for="usage_data_provider_status"
100
                                >{{ $__("Harvester status") }}:</label
109
                                >{{ $__("Harvester status") }}:</label
Lines 385-390 Link Here
385
394
386
<script>
395
<script>
387
import ButtonSubmit from "../ButtonSubmit.vue"
396
import ButtonSubmit from "../ButtonSubmit.vue"
397
import FormSelectVendors from "../FormSelectVendors.vue"
388
import { setMessage, setWarning } from "../../messages"
398
import { setMessage, setWarning } from "../../messages"
389
import { APIClient } from "../../fetch/api-client.js"
399
import { APIClient } from "../../fetch/api-client.js"
390
import { inject } from "vue"
400
import { inject } from "vue"
Lines 405-410 export default { Link Here
405
                erm_usage_data_provider_id: null,
415
                erm_usage_data_provider_id: null,
406
                name: "",
416
                name: "",
407
                description: "",
417
                description: "",
418
                vendor_id: null,
408
                active: 1,
419
                active: 1,
409
                method: "",
420
                method: "",
410
                aggregator: "",
421
                aggregator: "",
Lines 620-625 export default { Link Here
620
    },
631
    },
621
    components: {
632
    components: {
622
        ButtonSubmit,
633
        ButtonSubmit,
634
        FormSelectVendors,
623
    },
635
    },
624
    name: "UsageStatisticsDataProvidersFormAdd",
636
    name: "UsageStatisticsDataProvidersFormAdd",
625
}
637
}
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersShow.vue (+1 lines)
Lines 147-152 export default { Link Here
147
                requestor_name: "",
147
                requestor_name: "",
148
                requestor_email: "",
148
                requestor_email: "",
149
                report_types: [],
149
                report_types: [],
150
                vendor: null,
150
            },
151
            },
151
            initialized: false,
152
            initialized: false,
152
            tab_content: "detail",
153
            tab_content: "detail",
(-)a/koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm-api-client.js (-2 / +3 lines)
Lines 261-272 export class ERMAPIClient extends HttpClient { Link Here
261
            get: id =>
261
            get: id =>
262
                this.get({
262
                this.get({
263
                    endpoint: "usage_data_providers/" + id,
263
                    endpoint: "usage_data_providers/" + id,
264
                    headers: {
265
                        "x-koha-embed": "vendor",
266
                    },
264
                }),
267
                }),
265
            getAll: query =>
268
            getAll: query =>
266
                this.getAll({
269
                this.getAll({
267
                    endpoint: "usage_data_providers",
270
                    endpoint: "usage_data_providers",
268
                    query,
271
                    query,
269
                    query,
270
                }),
272
                }),
271
            delete: id =>
273
            delete: id =>
272
                this.delete({
274
                this.delete({
273
- 

Return to bug 38256