|
Lines 1-5
Link Here
|
| 1 |
<template> |
1 |
<template> |
| 2 |
<div v-if="initialized"> |
2 |
<div v-if="initialized && ERMModule == 1"> |
| 3 |
<div id="sub-header"> |
3 |
<div id="sub-header"> |
| 4 |
<Breadcrumb /> |
4 |
<Breadcrumb /> |
| 5 |
<Help /> |
5 |
<Help /> |
|
Lines 214-223
export default {
Link Here
|
| 214 |
error => {} |
214 |
error => {} |
| 215 |
) |
215 |
) |
| 216 |
) |
216 |
) |
| 217 |
return Promise.all(promises).then(values => { |
217 |
return Promise.all(promises) |
| 218 |
this.loaded() |
|
|
| 219 |
this.initialized = true |
| 220 |
}) |
| 221 |
} |
218 |
} |
| 222 |
|
219 |
|
| 223 |
const sysprefs_client = APIClient.sysprefs |
220 |
const sysprefs_client = APIClient.sysprefs |
|
Lines 225-232
export default {
Link Here
|
| 225 |
.get("ERMModule") |
222 |
.get("ERMModule") |
| 226 |
.then(value => { |
223 |
.then(value => { |
| 227 |
this.ERMModule = value.value |
224 |
this.ERMModule = value.value |
| 228 |
if (this.ERMModule == 0) { |
225 |
if (this.ERMModule != 1) { |
| 229 |
this.loaded() |
|
|
| 230 |
return this.setError( |
226 |
return this.setError( |
| 231 |
this.$__( |
227 |
this.$__( |
| 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' |
228 |
'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' |
|
Lines 236-241
export default {
Link Here
|
| 236 |
} |
232 |
} |
| 237 |
return fetch_config() |
233 |
return fetch_config() |
| 238 |
}) |
234 |
}) |
|
|
235 |
.then(() => { |
| 236 |
this.loaded() |
| 237 |
this.initialized = true |
| 238 |
}) |
| 239 |
}, |
239 |
}, |
| 240 |
components: { |
240 |
components: { |
| 241 |
Breadcrumb, |
241 |
Breadcrumb, |
| 242 |
- |
|
|