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-118
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 |
|
22 |
const breadcrumbs = { |
24 |
import { $__ } from "../i18n"; |
23 |
home: { |
|
|
24 |
text: "Home", // $t("Home") |
25 |
path: "/cgi-bin/koha/mainpage.pl", |
26 |
}, |
27 |
erm_home: { |
28 |
text: "E-resource management", // $t("E-resource management") |
29 |
path: "/cgi-bin/koha/erm/erm.pl", |
30 |
}, |
31 |
agreements: { |
32 |
text: "Agreements", // $t("Agreements") |
33 |
path: "/cgi-bin/koha/erm/agreements", |
34 |
}, |
35 |
eholdings: { |
36 |
home: { |
37 |
text: "eHoldings", // $t("eHoldings") |
38 |
}, |
39 |
local: { |
40 |
home: { |
41 |
text: "Local", // $t("Local") |
42 |
}, |
43 |
titles: { |
44 |
text: "Titles", // $t("Titles") |
45 |
path: "/cgi-bin/koha/erm/eholdings/local/titles", |
46 |
}, |
47 |
packages: { |
48 |
text: "Packages", // $t("Packages") |
49 |
path: "/cgi-bin/koha/erm/eholdings/local/packages", |
50 |
}, |
51 |
}, |
52 |
ebsco: { |
53 |
home: { |
54 |
text: "EBSCO", // $t("EBSCO") |
55 |
}, |
56 |
titles: { |
57 |
text: "Titles", // $t("Titles") |
58 |
path: "/cgi-bin/koha/erm/eholdings/ebsco/titles", |
59 |
}, |
60 |
packages: { |
61 |
text: "Packages", // $t("Packages") |
62 |
path: "/cgi-bin/koha/erm/eholdings/ebsco/packages", |
63 |
}, |
64 |
}, |
65 |
}, |
66 |
licenses: { |
67 |
text: "Licenses", // $t("Licenses") |
68 |
path: "/cgi-bin/koha/erm/licenses", |
69 |
}, |
70 |
}; |
71 |
const breadcrumb_paths = { |
72 |
agreements: [ |
73 |
breadcrumbs.home, |
74 |
breadcrumbs.erm_home, |
75 |
breadcrumbs.agreements, |
76 |
], |
77 |
eholdings: [ |
78 |
breadcrumbs.home, |
79 |
breadcrumbs.erm_home, |
80 |
breadcrumbs.eholdings.home, |
81 |
], |
82 |
eholdings_local: [ |
83 |
breadcrumbs.home, |
84 |
breadcrumbs.erm_home, |
85 |
breadcrumbs.eholdings.home, |
86 |
breadcrumbs.eholdings.local.home, |
87 |
], |
88 |
eholdings_ebsco: [ |
89 |
breadcrumbs.home, |
90 |
breadcrumbs.erm_home, |
91 |
breadcrumbs.eholdings.home, |
92 |
breadcrumbs.eholdings.ebsco.home, |
93 |
], |
94 |
licenses: [breadcrumbs.home, breadcrumbs.erm_home, breadcrumbs.licenses], |
95 |
}; |
96 |
|
97 |
function build_breadcrumb(parent_breadcrumb, current) { |
98 |
let breadcrumb = parent_breadcrumb.flat(Infinity); |
99 |
if (current) { |
100 |
breadcrumb.push({ |
101 |
text: current, |
102 |
}); |
103 |
} |
104 |
return breadcrumb; |
105 |
} |
106 |
|
25 |
|
107 |
export const routes = [ |
26 |
export const routes = [ |
108 |
{ |
|
|
109 |
path: "/cgi-bin/koha/mainpage.pl", |
110 |
beforeEnter(to, from, next) { |
111 |
window.location.href = "/cgi-bin/koha/mainpage.pl"; |
112 |
}, |
113 |
}, |
114 |
{ |
27 |
{ |
115 |
path: "/cgi-bin/koha/admin/background_jobs/:id", |
28 |
path: "/cgi-bin/koha/admin/background_jobs/:id", |
|
|
29 |
is_base: true, |
116 |
beforeEnter(to, from, next) { |
30 |
beforeEnter(to, from, next) { |
117 |
window.location.href = |
31 |
window.location.href = |
118 |
"/cgi-bin/koha/admin/background_jobs.pl?op=view&id=" + |
32 |
"/cgi-bin/koha/admin/background_jobs.pl?op=view&id=" + |
Lines 121-508
export const routes = [
Link Here
|
121 |
}, |
35 |
}, |
122 |
{ |
36 |
{ |
123 |
path: "/cgi-bin/koha/erm/erm.pl", |
37 |
path: "/cgi-bin/koha/erm/erm.pl", |
124 |
name: "Home", |
38 |
is_default: true, |
125 |
component: Home, |
39 |
is_base: true, |
126 |
meta: { |
40 |
title: $__('E-resource management'), |
127 |
breadcrumb: () => [breadcrumbs.home, breadcrumbs.erm_home], |
|
|
128 |
}, |
129 |
}, |
130 |
{ |
131 |
path: "/cgi-bin/koha/erm/agreements", |
132 |
children: [ |
41 |
children: [ |
133 |
{ |
42 |
{ |
134 |
path: "", |
43 |
path: "", |
135 |
name: "AgreementsList", |
44 |
name: "Home", |
136 |
component: AgreementsList, |
45 |
component: markRaw(Home), |
137 |
meta: { |
46 |
is_navigation_item: false, |
138 |
breadcrumb: () => breadcrumb_paths.agreements, |
|
|
139 |
}, |
140 |
}, |
47 |
}, |
141 |
{ |
48 |
{ |
142 |
path: ":agreement_id", |
49 |
path: "/cgi-bin/koha/erm/agreements", |
143 |
name: "AgreementsShow", |
50 |
title: $__('Agreements'), |
144 |
component: AgreementsShow, |
51 |
icon: 'fa-check-circle-o', |
145 |
meta: { |
52 |
is_end_node: true, |
146 |
breadcrumb: () => |
|
|
147 |
build_breadcrumb( |
148 |
breadcrumb_paths.agreements, |
149 |
"Show agreement" // $t("Show agreement") |
150 |
), |
151 |
}, |
152 |
}, |
153 |
{ |
154 |
path: "add", |
155 |
name: "AgreementsFormAdd", |
156 |
component: AgreementsFormAdd, |
157 |
meta: { |
158 |
breadcrumb: () => |
159 |
build_breadcrumb( |
160 |
breadcrumb_paths.agreements, |
161 |
"Add agreement" // $t("Add agreement") |
162 |
), |
163 |
}, |
164 |
}, |
165 |
{ |
166 |
path: "edit/:agreement_id", |
167 |
name: "AgreementsFormAddEdit", |
168 |
component: AgreementsFormAdd, |
169 |
meta: { |
170 |
breadcrumb: () => |
171 |
build_breadcrumb( |
172 |
breadcrumb_paths.agreements, |
173 |
"Edit agreement" // $t("Edit agreement") |
174 |
), |
175 |
}, |
176 |
}, |
177 |
], |
178 |
}, |
179 |
{ |
180 |
path: "/cgi-bin/koha/erm/eholdings", |
181 |
meta: { |
182 |
breadcrumb: () => breadcrumb_paths.eholdings, |
183 |
}, |
184 |
children: [ |
185 |
{ |
186 |
path: "", |
187 |
meta: { |
188 |
breadcrumb: () => breadcrumb_paths.eholdings, |
189 |
}, |
190 |
}, |
191 |
{ |
192 |
path: "local", |
193 |
children: [ |
53 |
children: [ |
194 |
{ |
54 |
{ |
195 |
path: "", |
55 |
path: "", |
196 |
meta: { |
56 |
name: "AgreementsList", |
197 |
breadcrumb: () => breadcrumb_paths.eholdings_local, |
57 |
component: markRaw(AgreementsList), |
198 |
}, |
|
|
199 |
}, |
58 |
}, |
200 |
{ |
59 |
{ |
201 |
path: "packages", |
60 |
path: ":agreement_id", |
202 |
children: [ |
61 |
name: "AgreementsShow", |
203 |
{ |
62 |
component: markRaw(AgreementsShow), |
204 |
path: "", |
63 |
title: $__('Show agreement'), |
205 |
name: "EHoldingsLocalPackagesList", |
|
|
206 |
component: EHoldingsLocalPackagesList, |
207 |
meta: { |
208 |
breadcrumb: () => |
209 |
build_breadcrumb([ |
210 |
breadcrumb_paths.eholdings_local, |
211 |
breadcrumbs.eholdings.local |
212 |
.packages, |
213 |
]), |
214 |
}, |
215 |
}, |
216 |
{ |
217 |
path: ":package_id", |
218 |
name: "EHoldingsLocalPackagesShow", |
219 |
component: EHoldingsLocalPackagesShow, |
220 |
meta: { |
221 |
breadcrumb: () => |
222 |
build_breadcrumb( |
223 |
[ |
224 |
breadcrumb_paths.eholdings_local, |
225 |
breadcrumbs.eholdings.local |
226 |
.packages, |
227 |
], |
228 |
"Show package" // $t("Show package") |
229 |
), |
230 |
}, |
231 |
}, |
232 |
{ |
233 |
path: "add", |
234 |
name: "EHoldingsLocalPackagesFormAdd", |
235 |
component: EHoldingsLocalPackagesFormAdd, |
236 |
meta: { |
237 |
breadcrumb: () => |
238 |
build_breadcrumb( |
239 |
[ |
240 |
breadcrumb_paths.eholdings_local, |
241 |
breadcrumbs.eholdings.local |
242 |
.packages, |
243 |
], |
244 |
"Add package" // $t("Add package") |
245 |
), |
246 |
}, |
247 |
}, |
248 |
{ |
249 |
path: "edit/:package_id", |
250 |
name: "EHoldingsLocalPackagesFormAddEdit", |
251 |
component: EHoldingsLocalPackagesFormAdd, |
252 |
meta: { |
253 |
breadcrumb: () => |
254 |
build_breadcrumb( |
255 |
[ |
256 |
breadcrumb_paths.eholdings_local, |
257 |
breadcrumbs.eholdings.local |
258 |
.packages, |
259 |
], |
260 |
"Edit package" // $t("Edit package") |
261 |
), |
262 |
}, |
263 |
}, |
264 |
], |
265 |
}, |
64 |
}, |
266 |
{ |
65 |
{ |
267 |
path: "titles", |
66 |
path: "add", |
268 |
children: [ |
67 |
name: "AgreementsFormAdd", |
269 |
{ |
68 |
component: markRaw(AgreementsFormAdd), |
270 |
path: "", |
69 |
title: $__('Add agreement'), |
271 |
name: "EHoldingsLocalTitlesList", |
|
|
272 |
component: EHoldingsLocalTitlesList, |
273 |
meta: { |
274 |
breadcrumb: () => |
275 |
build_breadcrumb([ |
276 |
breadcrumb_paths.eholdings_local, |
277 |
breadcrumbs.eholdings.local.titles, |
278 |
]), |
279 |
}, |
280 |
}, |
281 |
{ |
282 |
path: ":title_id", |
283 |
name: "EHoldingsLocalTitlesShow", |
284 |
component: EHoldingsLocalTitlesShow, |
285 |
meta: { |
286 |
breadcrumb: () => |
287 |
build_breadcrumb( |
288 |
[ |
289 |
breadcrumb_paths.eholdings_local, |
290 |
breadcrumbs.eholdings.local |
291 |
.titles, |
292 |
], |
293 |
"Show title" // $t("Show title") |
294 |
), |
295 |
}, |
296 |
}, |
297 |
{ |
298 |
path: "add", |
299 |
name: "EHoldingsLocalTitlesFormAdd", |
300 |
component: EHoldingsLocalTitlesFormAdd, |
301 |
meta: { |
302 |
breadcrumb: () => |
303 |
build_breadcrumb( |
304 |
[ |
305 |
breadcrumb_paths.eholdings_local, |
306 |
breadcrumbs.eholdings.local |
307 |
.titles, |
308 |
], |
309 |
"Add title" // $t("Add title") |
310 |
), |
311 |
}, |
312 |
}, |
313 |
{ |
314 |
path: "edit/:title_id", |
315 |
name: "EHoldingsLocalTitlesFormAddEdit", |
316 |
component: EHoldingsLocalTitlesFormAdd, |
317 |
meta: { |
318 |
breadcrumb: () => |
319 |
build_breadcrumb( |
320 |
[ |
321 |
breadcrumb_paths.eholdings_local, |
322 |
breadcrumbs.eholdings.local |
323 |
.titles, |
324 |
], |
325 |
"Edit title" // $t("Edit title") |
326 |
), |
327 |
}, |
328 |
}, |
329 |
{ |
330 |
path: "import", |
331 |
name: "EHoldingsLocalTitlesFormImport", |
332 |
component: EHoldingsLocalTitlesFormImport, |
333 |
meta: { |
334 |
breadcrumb: () => |
335 |
build_breadcrumb( |
336 |
[ |
337 |
breadcrumb_paths.eholdings_local, |
338 |
breadcrumbs.eholdings.local |
339 |
.titles, |
340 |
], |
341 |
"Import from a list" // $t("Import from a list") |
342 |
), |
343 |
}, |
344 |
}, |
345 |
], |
346 |
}, |
70 |
}, |
347 |
{ |
71 |
{ |
348 |
path: "resources/:resource_id", |
72 |
path: "edit/:agreement_id", |
349 |
name: "EHoldingsLocalResourcesShow", |
73 |
name: "AgreementsFormAddEdit", |
350 |
component: EHoldingsLocalResourcesShow, |
74 |
component: markRaw(AgreementsFormAdd), |
351 |
meta: { |
75 |
title: $__('Edit agreement'), |
352 |
breadcrumb: () => |
|
|
353 |
build_breadcrumb( |
354 |
[ |
355 |
breadcrumb_paths.eholdings_local, |
356 |
breadcrumbs.eholdings.local.titles, |
357 |
], |
358 |
"Resource" // $t("Resource") |
359 |
), |
360 |
}, |
361 |
}, |
76 |
}, |
362 |
], |
77 |
], |
363 |
}, |
78 |
}, |
364 |
{ |
79 |
{ |
365 |
path: "ebsco", |
80 |
path: "/cgi-bin/koha/erm/licenses", |
|
|
81 |
title: $__('Licenses'), |
82 |
icon: "fa-gavel", |
83 |
is_end_node: true, |
366 |
children: [ |
84 |
children: [ |
367 |
{ |
85 |
{ |
368 |
path: "", |
86 |
path: "", |
369 |
meta: { |
87 |
name: "LicensesList", |
370 |
breadcrumb: () => breadcrumb_paths.eholdings_ebsco, |
88 |
component: markRaw(LicensesList), |
371 |
}, |
89 |
}, |
|
|
90 |
{ |
91 |
path: ":license_id", |
92 |
name: "LicensesShow", |
93 |
component: markRaw(LicensesShow), |
94 |
title: $__('Show license'), |
95 |
}, |
96 |
{ |
97 |
path: "add", |
98 |
name: "LicensesFormAdd", |
99 |
component: markRaw(LicensesFormAdd), |
100 |
title: $__('Add license'), |
372 |
}, |
101 |
}, |
373 |
{ |
102 |
{ |
374 |
path: "packages", |
103 |
path: "edit/:license_id", |
|
|
104 |
name: "LicensesFormAddEdit", |
105 |
component: markRaw(LicensesFormAdd), |
106 |
title: $__('Edit license'), |
107 |
}, |
108 |
], |
109 |
}, |
110 |
{ |
111 |
path: "/cgi-bin/koha/erm/eholdings", |
112 |
title: $__('eHoldings'), |
113 |
icon: 'fa-crosshairs', |
114 |
disabled: true, |
115 |
children: [ |
116 |
{ |
117 |
path: "local", |
118 |
title: $__('Local'), |
119 |
icon: "fa-map-marker", |
120 |
disabled: true, |
375 |
children: [ |
121 |
children: [ |
376 |
{ |
122 |
{ |
377 |
path: "", |
123 |
path: "packages", |
378 |
name: "EHoldingsEBSCOPackagesList", |
124 |
title: $__('Packages'), |
379 |
component: EHoldingsEBSCOPackagesList, |
125 |
icon: "fa-archive", |
380 |
meta: { |
126 |
is_end_node: true, |
381 |
breadcrumb: () => |
127 |
children: [ |
382 |
build_breadcrumb([ |
128 |
{ |
383 |
breadcrumb_paths.eholdings_ebsco, |
129 |
path: "", |
384 |
breadcrumbs.eholdings.ebsco |
130 |
name: "EHoldingsLocalPackagesList", |
385 |
.packages, |
131 |
component: markRaw(EHoldingsLocalPackagesList), |
386 |
]), |
132 |
}, |
387 |
}, |
133 |
{ |
|
|
134 |
path: ":package_id", |
135 |
name: "EHoldingsLocalPackagesShow", |
136 |
component: markRaw(EHoldingsLocalPackagesShow), |
137 |
title: $__('Show package'), |
138 |
}, |
139 |
{ |
140 |
path: "add", |
141 |
name: "EHoldingsLocalPackagesFormAdd", |
142 |
component: markRaw(EHoldingsLocalPackagesFormAdd), |
143 |
title: $__('Add package'), |
144 |
}, |
145 |
{ |
146 |
path: "edit/:package_id", |
147 |
name: "EHoldingsLocalPackagesFormAddEdit", |
148 |
component: markRaw(EHoldingsLocalPackagesFormAdd), |
149 |
title: $__('Edit package'), |
150 |
}, |
151 |
], |
388 |
}, |
152 |
}, |
389 |
{ |
153 |
{ |
390 |
path: ":package_id", |
154 |
path: "titles", |
391 |
name: "EHoldingsEBSCOPackagesShow", |
155 |
title: $__('Titles'), |
392 |
component: EHoldingsEBSCOPackagesShow, |
156 |
icon: "fa-sort-alpha-asc", |
393 |
meta: { |
157 |
is_end_node: true, |
394 |
breadcrumb: () => |
158 |
children: [ |
395 |
build_breadcrumb( |
159 |
{ |
396 |
[ |
160 |
path: "", |
397 |
breadcrumb_paths.eholdings_ebsco, |
161 |
name: "EHoldingsLocalTitlesList", |
398 |
breadcrumbs.eholdings.ebsco |
162 |
component: markRaw(EHoldingsLocalTitlesList), |
399 |
.packages, |
163 |
}, |
400 |
], |
164 |
{ |
401 |
"Show package" // $t("Show package") |
165 |
path: ":title_id", |
402 |
), |
166 |
name: "EHoldingsLocalTitlesShow", |
403 |
}, |
167 |
component: markRaw(EHoldingsLocalTitlesShow), |
|
|
168 |
title: $__('Show title'), |
169 |
}, |
170 |
{ |
171 |
path: "add", |
172 |
name: "EHoldingsLocalTitlesFormAdd", |
173 |
component: markRaw(EHoldingsLocalTitlesFormAdd), |
174 |
title: $__('Add title'), |
175 |
}, |
176 |
{ |
177 |
path: "edit/:title_id", |
178 |
name: "EHoldingsLocalTitlesFormAddEdit", |
179 |
component: markRaw(EHoldingsLocalTitlesFormAdd), |
180 |
title: $__('Edit title'), |
181 |
}, |
182 |
{ |
183 |
path: "import", |
184 |
name: "EHoldingsLocalTitlesFormImport", |
185 |
component: markRaw(EHoldingsLocalTitlesFormImport), |
186 |
title: $__('Import from a list'), |
187 |
}, |
188 |
{ |
189 |
path: "/cgi-bin/koha/erm/eholdings/local/resources/:resource_id", |
190 |
name: "EHoldingsLocalResourcesShow", |
191 |
component: markRaw(EHoldingsLocalResourcesShow), |
192 |
title: $__('Resource'), |
193 |
}, |
194 |
], |
404 |
}, |
195 |
}, |
405 |
], |
196 |
], |
406 |
}, |
197 |
}, |
407 |
{ |
198 |
{ |
408 |
path: "titles", |
199 |
path: "ebsco", |
|
|
200 |
title: $__('EBSCO'), |
201 |
icon: 'fa-globe', |
202 |
disabled: true, |
409 |
children: [ |
203 |
children: [ |
410 |
{ |
204 |
{ |
411 |
path: "", |
205 |
path: "packages", |
412 |
name: "EHoldingsEBSCOTitlesList", |
206 |
title: $__('Packages'), |
413 |
component: EHoldingsEBSCOTitlesList, |
207 |
icon: "fa-archive", |
414 |
meta: { |
208 |
is_end_node: true, |
415 |
breadcrumb: () => |
209 |
children: [ |
416 |
build_breadcrumb([ |
210 |
{ |
417 |
breadcrumb_paths.eholdings_ebsco, |
211 |
path: "", |
418 |
breadcrumbs.eholdings.ebsco.titles, |
212 |
name: "EHoldingsEBSCOPackagesList", |
419 |
]), |
213 |
component: markRaw(EHoldingsEBSCOPackagesList), |
420 |
}, |
214 |
}, |
|
|
215 |
{ |
216 |
path: ":package_id", |
217 |
name: "EHoldingsEBSCOPackagesShow", |
218 |
component: markRaw(EHoldingsEBSCOPackagesShow), |
219 |
title: $__('Show package'), |
220 |
}, |
221 |
], |
421 |
}, |
222 |
}, |
422 |
{ |
223 |
{ |
423 |
path: ":title_id", |
224 |
path: "titles", |
424 |
name: "EHoldingsEBSCOTitlesShow", |
225 |
title: $__('Titles'), |
425 |
component: EHoldingsEBSCOTitlesShow, |
226 |
icon: "fa-sort-alpha-asc", |
426 |
meta: { |
227 |
is_end_node: true, |
427 |
breadcrumb: () => |
228 |
children: [ |
428 |
build_breadcrumb( |
229 |
{ |
429 |
[ |
230 |
path: "", |
430 |
breadcrumb_paths.eholdings_ebsco, |
231 |
name: "EHoldingsEBSCOTitlesList", |
431 |
breadcrumbs.eholdings.ebsco |
232 |
component: markRaw(EHoldingsEBSCOTitlesList), |
432 |
.titles, |
233 |
}, |
433 |
], |
234 |
{ |
434 |
"Show title" // $t("Show title") |
235 |
path: ":title_id", |
435 |
), |
236 |
name: "EHoldingsEBSCOTitlesShow", |
436 |
}, |
237 |
component: markRaw(EHoldingsEBSCOTitlesShow), |
|
|
238 |
title: $__('Show title'), |
239 |
}, |
240 |
{ |
241 |
path: "/cgi-bin/koha/erm/eholdings/ebsco/resources/:resource_id", |
242 |
name: "EHoldingsEBSCOResourcesShow", |
243 |
component: markRaw(EHoldingsEBSCOResourcesShow), |
244 |
title: $__('Resource'), |
245 |
is_navigation_item: false, |
246 |
}, |
247 |
], |
437 |
}, |
248 |
}, |
438 |
], |
249 |
], |
439 |
}, |
250 |
}, |
440 |
{ |
|
|
441 |
path: "resources/:resource_id", |
442 |
name: "EHoldingsEBSCOResourcesShow", |
443 |
component: EHoldingsEBSCOResourcesShow, |
444 |
meta: { |
445 |
breadcrumb: () => |
446 |
build_breadcrumb( |
447 |
[ |
448 |
breadcrumb_paths.eholdings_ebsco, |
449 |
breadcrumbs.eholdings.ebsco.titles, |
450 |
], |
451 |
"Resource" // $t("Resource") |
452 |
), |
453 |
}, |
454 |
}, |
455 |
], |
251 |
], |
456 |
}, |
252 |
}, |
457 |
], |
253 |
] |
458 |
}, |
|
|
459 |
{ |
460 |
path: "/cgi-bin/koha/erm/licenses", |
461 |
children: [ |
462 |
{ |
463 |
path: "", |
464 |
name: "LicensesList", |
465 |
component: LicensesList, |
466 |
meta: { |
467 |
breadcrumb: () => breadcrumb_paths.licenses, |
468 |
}, |
469 |
}, |
470 |
{ |
471 |
path: ":license_id", |
472 |
name: "LicensesShow", |
473 |
component: LicensesShow, |
474 |
meta: { |
475 |
breadcrumb: () => |
476 |
build_breadcrumb( |
477 |
breadcrumb_paths.licenses, |
478 |
"Show license" // $t("Show license") |
479 |
), |
480 |
}, |
481 |
}, |
482 |
{ |
483 |
path: "add", |
484 |
name: "LicensesFormAdd", |
485 |
component: LicensesFormAdd, |
486 |
meta: { |
487 |
breadcrumb: () => |
488 |
build_breadcrumb( |
489 |
breadcrumb_paths.licenses, |
490 |
"Add license" // $t("Add license") |
491 |
), |
492 |
}, |
493 |
}, |
494 |
{ |
495 |
path: "edit/:license_id", |
496 |
name: "LicensesFormAddEdit", |
497 |
component: LicensesFormAdd, |
498 |
meta: { |
499 |
breadcrumb: () => |
500 |
build_breadcrumb( |
501 |
breadcrumb_paths.licenses, |
502 |
"Edit license" // $t("Edit license") |
503 |
), |
504 |
}, |
505 |
}, |
506 |
], |
507 |
}, |
254 |
}, |
508 |
]; |
255 |
]; |