Lines 1-5
Link Here
|
1 |
<template> |
1 |
<template> |
2 |
<div v-if="initialized && sysprefs.ERMModule == 1"> |
2 |
<div v-if="initialized && config.settings.ERMModule == 1"> |
3 |
<div id="sub-header"> |
3 |
<div id="sub-header"> |
4 |
<Breadcrumb /> |
4 |
<Breadcrumb /> |
5 |
<Help /> |
5 |
<Help /> |
Lines 48-54
Link Here
|
48 |
<li> |
48 |
<li> |
49 |
<ul> |
49 |
<ul> |
50 |
<li |
50 |
<li |
51 |
v-for="provider in sysprefs.ERMProviders" |
51 |
v-for="provider in config |
|
|
52 |
.settings.ERMProviders" |
52 |
:key="provider" |
53 |
:key="provider" |
53 |
> |
54 |
> |
54 |
<router-link |
55 |
<router-link |
Lines 138-150
export default {
Link Here
|
138 |
|
139 |
|
139 |
const ERMStore = inject("ERMStore") |
140 |
const ERMStore = inject("ERMStore") |
140 |
|
141 |
|
141 |
const { sysprefs } = storeToRefs(ERMStore) |
142 |
const { config } = storeToRefs(ERMStore) |
142 |
|
143 |
|
143 |
return { |
144 |
return { |
144 |
vendorStore, |
145 |
vendorStore, |
145 |
AVStore, |
146 |
AVStore, |
146 |
ERMStore, |
147 |
ERMStore, |
147 |
sysprefs, |
148 |
config, |
148 |
setError, |
149 |
setError, |
149 |
loading, |
150 |
loading, |
150 |
loaded, |
151 |
loaded, |
Lines 217-239
export default {
Link Here
|
217 |
}) |
218 |
}) |
218 |
) |
219 |
) |
219 |
|
220 |
|
220 |
promises.push( |
|
|
221 |
sysprefs_client.sysprefs.get("ERMProviders").then( |
222 |
providers => { |
223 |
this.sysprefs.ERMProviders = providers.value.split(",") |
224 |
}, |
225 |
error => {} |
226 |
) |
227 |
) |
228 |
return Promise.all(promises) |
221 |
return Promise.all(promises) |
229 |
} |
222 |
} |
230 |
|
223 |
|
231 |
const sysprefs_client = APIClient.sysprefs |
224 |
const client = APIClient.erm |
232 |
sysprefs_client.sysprefs |
225 |
client.config |
233 |
.get("ERMModule") |
226 |
.get() |
234 |
.then(value => { |
227 |
.then(config => { |
235 |
this.sysprefs.ERMModule = value.value |
228 |
this.config = config |
236 |
if (this.sysprefs.ERMModule != 1) { |
229 |
if (this.config.settings.ERMModule != 1) { |
237 |
return this.setError( |
230 |
return this.setError( |
238 |
this.$__( |
231 |
this.$__( |
239 |
'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' |
232 |
'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' |