Bug 32030: ERM - Add eHoldings home page

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-05-26 09:50:54 +02:00 committed by Tomas Cohen Arazi
parent 74be73121e
commit 9a151c5113
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
3 changed files with 88 additions and 12 deletions

View file

@ -0,0 +1,30 @@
<template>
<ul>
<li>
<router-link to="/cgi-bin/koha/erm/eholdings/packages">
<i class="fa fa-file-text-o"></i>
{{ $t("Packages") }}</router-link
>
</li>
<li>
<router-link to="/cgi-bin/koha/erm/eholdings/titles">
<i class="fa fa-file-text-o"></i>
{{ $t("Titles") }}</router-link
>
</li>
</ul>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
},
components: {
},
};
</script>

View file

@ -25,19 +25,35 @@
</li>
<li>
<router-link
to="/cgi-bin/koha/erm/eholdings/packages"
to="/cgi-bin/koha/erm/eholdings"
>
<i class="fa fa-file-text-o"></i>
{{ $t("Packages") }}</router-link
>
</li>
<li>
<router-link
to="/cgi-bin/koha/erm/eholdings/titles"
>
<i class="fa fa-file-text-o"></i>
{{ $t("Titles") }}</router-link
>
eHoldings
</router-link>
<ul>
<li>
<router-link
to="/cgi-bin/koha/erm/eholdings/packages"
>
<i
class="fa fa-file-text-o"
></i>
{{
$t("Packages")
}}</router-link
>
</li>
<li>
<router-link
to="/cgi-bin/koha/erm/eholdings/titles"
>
<i
class="fa fa-file-text-o"
></i>
{{ $t("Titles") }}</router-link
>
</li>
</ul>
</li>
<li>
<router-link
@ -96,3 +112,9 @@ export default {
},
};
</script>
<style scoped>
a.router-link-active {
font-weight: 700;
}
</style>

View file

@ -3,6 +3,7 @@ import AgreementsList from "./components/ERM/AgreementsList.vue";
import AgreementsShow from "./components/ERM/AgreementsShow.vue";
import AgreementsFormAdd from "./components/ERM/AgreementsFormAdd.vue";
import AgreementsFormConfirmDelete from "./components/ERM/AgreementsFormConfirmDelete.vue";
import EHoldingsMain from "./components/ERM/EHoldingsMain.vue";
import EHoldingsPackagesList from "./components/ERM/EHoldingsPackagesList.vue";
import EHoldingsPackagesShow from "./components/ERM/EHoldingsPackagesShow.vue";
import EHoldingsPackagesFormAdd from "./components/ERM/EHoldingsPackagesFormAdd.vue";
@ -24,7 +25,8 @@ const breadcrumbs = {
},
agreements: { text: "Agreements", path: "/cgi-bin/koha/erm/agreements" },
eholdings: {
titles: { text: "eHoldings", path: "/cgi-bin/koha/erm/eholdings" },
home: { text: "eHoldings", path: "/cgi-bin/koha/erm/eholdings" },
titles: { text: "Titles", path: "/cgi-bin/koha/erm/eholdings/titles" },
packages: {
text: "Packages",
path: "/cgi-bin/koha/erm/eholdings/packages",
@ -101,6 +103,18 @@ export const routes = [
view: "edit",
},
},
{
path: "/cgi-bin/koha/erm/eholdings",
component: EHoldingsMain,
meta: {
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
],
view: "list",
},
},
{
path: "/cgi-bin/koha/erm/eholdings/packages",
component: EHoldingsPackagesList,
@ -108,6 +122,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.packages,
],
view: "list",
@ -120,6 +135,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.packages,
],
view: "show",
@ -132,6 +148,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.packages,
],
view: "confirm-delete-form",
@ -144,6 +161,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.packages,
],
view: "add",
@ -156,6 +174,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.packages,
],
view: "edit",
@ -168,6 +187,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.titles,
],
view: "list",
@ -180,6 +200,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.titles,
],
view: "show",
@ -192,6 +213,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.titles,
],
view: "confirm-delete-form",
@ -204,6 +226,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.titles,
],
view: "add",
@ -216,6 +239,7 @@ export const routes = [
breadcrumb: [
breadcrumbs.home,
breadcrumbs.erm_home,
breadcrumbs.eholdings.home,
breadcrumbs.eholdings.titles,
],
view: "edit",