From 9a151c5113068d145c04145c798fe8764a17bead Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 26 May 2022 09:50:54 +0200 Subject: [PATCH] Bug 32030: ERM - Add eHoldings home page Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../js/vue/components/ERM/EHoldingsMain.vue | 30 +++++++++++++ .../prog/js/vue/components/ERM/ERMMain.vue | 44 ++++++++++++++----- koha-tmpl/intranet-tmpl/prog/js/vue/routes.js | 26 ++++++++++- 3 files changed, 88 insertions(+), 12 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsMain.vue diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsMain.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsMain.vue new file mode 100644 index 0000000000..4ee8015845 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsMain.vue @@ -0,0 +1,30 @@ + + + diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMMain.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMMain.vue index a1aa426cbe..8d38890412 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMMain.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMMain.vue @@ -25,19 +25,35 @@
  • - {{ $t("Packages") }} -
  • -
  • - - - {{ $t("Titles") }} + eHoldings + +
      +
    • + + + {{ + $t("Packages") + }} +
    • +
    • + + + {{ $t("Titles") }} +
    • +
  • + + \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js index 0ac6168fbd..835a872adb 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes.js @@ -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", -- 2.39.5