|
Lines 1-3
Link Here
|
|
|
1 |
import { markRaw } from "vue"; |
| 2 |
|
| 1 |
import Home from "../components/ERM/Home.vue"; |
3 |
import Home from "../components/ERM/Home.vue"; |
| 2 |
import AgreementsList from "../components/ERM/AgreementsList.vue"; |
4 |
import AgreementsList from "../components/ERM/AgreementsList.vue"; |
| 3 |
import AgreementsShow from "../components/ERM/AgreementsShow.vue"; |
5 |
import AgreementsShow from "../components/ERM/AgreementsShow.vue"; |
|
Lines 19-24
import LicensesList from "../components/ERM/LicensesList.vue";
Link Here
|
| 19 |
import LicensesShow from "../components/ERM/LicensesShow.vue"; |
21 |
import LicensesShow from "../components/ERM/LicensesShow.vue"; |
| 20 |
import LicensesFormAdd from "../components/ERM/LicensesFormAdd.vue"; |
22 |
import LicensesFormAdd from "../components/ERM/LicensesFormAdd.vue"; |
| 21 |
|
23 |
|
|
|
24 |
import { $__ } from "../i18n"; |
| 25 |
|
| 22 |
export const routes = [ |
26 |
export const routes = [ |
| 23 |
{ |
27 |
{ |
| 24 |
path: "/cgi-bin/koha/admin/background_jobs/:id", |
28 |
path: "/cgi-bin/koha/admin/background_jobs/:id", |
|
Lines 31-173
export const routes = [
Link Here
|
| 31 |
}, |
35 |
}, |
| 32 |
{ |
36 |
{ |
| 33 |
path: "/cgi-bin/koha/erm/erm.pl", |
37 |
path: "/cgi-bin/koha/erm/erm.pl", |
| 34 |
component: {template: '<router-view />'}, |
|
|
| 35 |
is_default: true, |
38 |
is_default: true, |
| 36 |
is_base: true, |
39 |
is_base: true, |
| 37 |
title: 'E-resource management', |
40 |
title: $__('E-resource management'), |
| 38 |
children: [ |
41 |
children: [ |
| 39 |
{ |
42 |
{ |
| 40 |
path: "", |
43 |
path: "", |
| 41 |
component: Home, |
44 |
component: markRaw(Home), |
| 42 |
is_navigation_item: false, |
45 |
is_navigation_item: false, |
| 43 |
}, |
46 |
}, |
| 44 |
{ |
47 |
{ |
| 45 |
path: "/cgi-bin/koha/erm/agreements", |
48 |
path: "/cgi-bin/koha/erm/agreements", |
| 46 |
title: 'Agreements', |
49 |
title: $__('Agreements'), |
| 47 |
icon: 'fa-check-circle-o', |
50 |
icon: 'fa-check-circle-o', |
| 48 |
is_end_node: true, |
51 |
is_end_node: true, |
| 49 |
children: [ |
52 |
children: [ |
| 50 |
{ |
53 |
{ |
| 51 |
path: "", |
54 |
path: "", |
| 52 |
component: AgreementsList, |
55 |
component: markRaw(AgreementsList), |
| 53 |
}, |
56 |
}, |
| 54 |
{ |
57 |
{ |
| 55 |
path: ":agreement_id", |
58 |
path: ":agreement_id", |
| 56 |
component: AgreementsShow, |
59 |
component: markRaw(AgreementsShow), |
| 57 |
title: "Show agreement", |
60 |
title: $__('Show agreement'), |
| 58 |
}, |
61 |
}, |
| 59 |
{ |
62 |
{ |
| 60 |
path: "add", |
63 |
path: "add", |
| 61 |
component: AgreementsFormAdd, |
64 |
component: markRaw(AgreementsFormAdd), |
| 62 |
title: "Add agreement", |
65 |
title: $__('Add agreement'), |
| 63 |
}, |
66 |
}, |
| 64 |
{ |
67 |
{ |
| 65 |
path: "edit/:agreement_id", |
68 |
path: "edit/:agreement_id", |
| 66 |
component: AgreementsFormAdd, |
69 |
component: markRaw(AgreementsFormAdd), |
| 67 |
title: "Edit agreement", |
70 |
title: $__('Edit agreement'), |
| 68 |
}, |
71 |
}, |
| 69 |
], |
72 |
], |
| 70 |
}, |
73 |
}, |
| 71 |
{ |
74 |
{ |
| 72 |
path: "/cgi-bin/koha/erm/licenses", |
75 |
path: "/cgi-bin/koha/erm/licenses", |
| 73 |
title: "Licenses", |
76 |
title: $__('Licenses'), |
| 74 |
icon: "fa-gavel", |
77 |
icon: "fa-gavel", |
| 75 |
is_end_node: true, |
78 |
is_end_node: true, |
| 76 |
children: [ |
79 |
children: [ |
| 77 |
{ |
80 |
{ |
| 78 |
path: "", |
81 |
path: "", |
| 79 |
component: LicensesList, |
82 |
component: markRaw(LicensesList), |
| 80 |
}, |
83 |
}, |
| 81 |
{ |
84 |
{ |
| 82 |
path: ":license_id", |
85 |
path: ":license_id", |
| 83 |
component: LicensesShow, |
86 |
component: markRaw(LicensesShow), |
| 84 |
title: "Show license", |
87 |
title: $__('Show license'), |
| 85 |
}, |
88 |
}, |
| 86 |
{ |
89 |
{ |
| 87 |
path: "add", |
90 |
path: "add", |
| 88 |
component: LicensesFormAdd, |
91 |
component: markRaw(LicensesFormAdd), |
| 89 |
title: "Add license", |
92 |
title: $__('Add license'), |
| 90 |
}, |
93 |
}, |
| 91 |
{ |
94 |
{ |
| 92 |
path: "edit/:license_id", |
95 |
path: "edit/:license_id", |
| 93 |
component: LicensesFormAdd, |
96 |
component: markRaw(LicensesFormAdd), |
| 94 |
title: "Edit license", |
97 |
title: $__('Edit license'), |
| 95 |
}, |
98 |
}, |
| 96 |
], |
99 |
], |
| 97 |
}, |
100 |
}, |
| 98 |
{ |
101 |
{ |
| 99 |
path: "/cgi-bin/koha/erm/eholdings", |
102 |
path: "/cgi-bin/koha/erm/eholdings", |
| 100 |
title: "eHoldings", |
103 |
title: $__('eHoldings'), |
| 101 |
icon: 'fa-crosshairs', |
104 |
icon: 'fa-crosshairs', |
| 102 |
disabled: true, |
105 |
disabled: true, |
| 103 |
children: [ |
106 |
children: [ |
| 104 |
{ |
107 |
{ |
| 105 |
path: "local", |
108 |
path: "local", |
| 106 |
title: "Local", |
109 |
title: $__('Local'), |
| 107 |
icon: "fa-map-marker", |
110 |
icon: "fa-map-marker", |
| 108 |
disabled: true, |
111 |
disabled: true, |
| 109 |
children: [ |
112 |
children: [ |
| 110 |
{ |
113 |
{ |
| 111 |
path: "packages", |
114 |
path: "packages", |
| 112 |
title: "Packages", |
115 |
title: $__('Packages'), |
| 113 |
icon: "fa-archive", |
116 |
icon: "fa-archive", |
| 114 |
is_end_node: true, |
117 |
is_end_node: true, |
| 115 |
children: [ |
118 |
children: [ |
| 116 |
{ |
119 |
{ |
| 117 |
path: "", |
120 |
path: "", |
| 118 |
component: EHoldingsLocalPackagesList, |
121 |
component: markRaw(EHoldingsLocalPackagesList), |
| 119 |
}, |
122 |
}, |
| 120 |
{ |
123 |
{ |
| 121 |
path: ":package_id", |
124 |
path: ":package_id", |
| 122 |
component: EHoldingsLocalPackagesShow, |
125 |
component: markRaw(EHoldingsLocalPackagesShow), |
| 123 |
title: "Show package", |
126 |
title: $__('Show package'), |
| 124 |
}, |
127 |
}, |
| 125 |
{ |
128 |
{ |
| 126 |
path: "add", |
129 |
path: "add", |
| 127 |
component: EHoldingsLocalPackagesFormAdd, |
130 |
component: markRaw(EHoldingsLocalPackagesFormAdd), |
| 128 |
title: "Add package", |
131 |
title: $__('Add package'), |
| 129 |
}, |
132 |
}, |
| 130 |
{ |
133 |
{ |
| 131 |
path: "edit/:package_id", |
134 |
path: "edit/:package_id", |
| 132 |
component: EHoldingsLocalPackagesFormAdd, |
135 |
component: markRaw(EHoldingsLocalPackagesFormAdd), |
| 133 |
title: "Edit package", |
136 |
title: $__('Edit package'), |
| 134 |
}, |
137 |
}, |
| 135 |
], |
138 |
], |
| 136 |
}, |
139 |
}, |
| 137 |
{ |
140 |
{ |
| 138 |
path: "titles", |
141 |
path: "titles", |
| 139 |
title: "Titles", |
142 |
title: $__('Titles'), |
| 140 |
icon: "fa-sort-alpha-asc", |
143 |
icon: "fa-sort-alpha-asc", |
| 141 |
is_end_node: true, |
144 |
is_end_node: true, |
| 142 |
children: [ |
145 |
children: [ |
| 143 |
{ |
146 |
{ |
| 144 |
path: "", |
147 |
path: "", |
| 145 |
component: EHoldingsLocalTitlesList, |
148 |
component: markRaw(EHoldingsLocalTitlesList), |
| 146 |
}, |
149 |
}, |
| 147 |
{ |
150 |
{ |
| 148 |
path: ":title_id", |
151 |
path: ":title_id", |
| 149 |
component: EHoldingsLocalTitlesShow, |
152 |
component: markRaw(EHoldingsLocalTitlesShow), |
| 150 |
title: "Show title", |
153 |
title: $__('Show title'), |
| 151 |
}, |
154 |
}, |
| 152 |
{ |
155 |
{ |
| 153 |
path: "add", |
156 |
path: "add", |
| 154 |
component: EHoldingsLocalTitlesFormAdd, |
157 |
component: markRaw(EHoldingsLocalTitlesFormAdd), |
| 155 |
title: "Add title", |
158 |
title: $__('Add title'), |
| 156 |
}, |
159 |
}, |
| 157 |
{ |
160 |
{ |
| 158 |
path: "edit/:title_id", |
161 |
path: "edit/:title_id", |
| 159 |
component: EHoldingsLocalTitlesFormAdd, |
162 |
component: markRaw(EHoldingsLocalTitlesFormAdd), |
| 160 |
title: "Edit title", |
163 |
title: $__('Edit title'), |
| 161 |
}, |
164 |
}, |
| 162 |
{ |
165 |
{ |
| 163 |
path: "import", |
166 |
path: "import", |
| 164 |
component: EHoldingsLocalTitlesFormImport, |
167 |
component: markRaw(EHoldingsLocalTitlesFormImport), |
| 165 |
title: "Import from a list", |
168 |
title: $__('Import from a list'), |
| 166 |
}, |
169 |
}, |
| 167 |
{ |
170 |
{ |
| 168 |
path: "/cgi-bin/koha/erm/eholdings/local/resources/:resource_id", |
171 |
path: "/cgi-bin/koha/erm/eholdings/local/resources/:resource_id", |
| 169 |
component: EHoldingsLocalResourcesShow, |
172 |
component: markRaw(EHoldingsLocalResourcesShow), |
| 170 |
title: "Resource", |
173 |
title: $__('Resource'), |
| 171 |
}, |
174 |
}, |
| 172 |
], |
175 |
], |
| 173 |
}, |
176 |
}, |
|
Lines 175-220
export const routes = [
Link Here
|
| 175 |
}, |
178 |
}, |
| 176 |
{ |
179 |
{ |
| 177 |
path: "ebsco", |
180 |
path: "ebsco", |
| 178 |
title: "EBSCO", |
181 |
title: $__('EBSCO'), |
| 179 |
icon: 'fa-globe', |
182 |
icon: 'fa-globe', |
| 180 |
disabled: true, |
183 |
disabled: true, |
| 181 |
children: [ |
184 |
children: [ |
| 182 |
{ |
185 |
{ |
| 183 |
path: "packages", |
186 |
path: "packages", |
| 184 |
title: "Packages", |
187 |
title: $__('Packages'), |
| 185 |
icon: "fa-archive", |
188 |
icon: "fa-archive", |
| 186 |
is_end_node: true, |
189 |
is_end_node: true, |
| 187 |
children: [ |
190 |
children: [ |
| 188 |
{ |
191 |
{ |
| 189 |
path: "", |
192 |
path: "", |
| 190 |
component: EHoldingsEBSCOPackagesList, |
193 |
component: markRaw(EHoldingsEBSCOPackagesList), |
| 191 |
}, |
194 |
}, |
| 192 |
{ |
195 |
{ |
| 193 |
path: ":package_id", |
196 |
path: ":package_id", |
| 194 |
component: EHoldingsEBSCOPackagesShow, |
197 |
component: markRaw(EHoldingsEBSCOPackagesShow), |
| 195 |
title: "Show package", |
198 |
title: $__('Show package'), |
| 196 |
}, |
199 |
}, |
| 197 |
], |
200 |
], |
| 198 |
}, |
201 |
}, |
| 199 |
{ |
202 |
{ |
| 200 |
path: "titles", |
203 |
path: "titles", |
| 201 |
title: "Titles", |
204 |
title: $__('Titles'), |
| 202 |
icon: "fa-sort-alpha-asc", |
205 |
icon: "fa-sort-alpha-asc", |
| 203 |
is_end_node: true, |
206 |
is_end_node: true, |
| 204 |
children: [ |
207 |
children: [ |
| 205 |
{ |
208 |
{ |
| 206 |
path: "", |
209 |
path: "", |
| 207 |
component: EHoldingsEBSCOTitlesList, |
210 |
component: markRaw(EHoldingsEBSCOTitlesList), |
| 208 |
}, |
211 |
}, |
| 209 |
{ |
212 |
{ |
| 210 |
path: ":title_id", |
213 |
path: ":title_id", |
| 211 |
component: EHoldingsEBSCOTitlesShow, |
214 |
component: markRaw(EHoldingsEBSCOTitlesShow), |
| 212 |
title: "Show title", |
215 |
title: $__('Show title'), |
| 213 |
}, |
216 |
}, |
| 214 |
{ |
217 |
{ |
| 215 |
path: "/cgi-bin/koha/erm/eholdings/ebsco/resources/:resource_id", |
218 |
path: "/cgi-bin/koha/erm/eholdings/ebsco/resources/:resource_id", |
| 216 |
component: EHoldingsEBSCOResourcesShow, |
219 |
component: markRaw(EHoldingsEBSCOResourcesShow), |
| 217 |
title: "Resource", |
220 |
title: $__('Resource'), |
| 218 |
is_navigation_item: false, |
221 |
is_navigation_item: false, |
| 219 |
}, |
222 |
}, |
| 220 |
], |
223 |
], |