From 480362e5b70e69fc1aa249c616ace842482513ce Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Fri, 10 Dec 2021 16:43:02 +0100 Subject: [PATCH] - add dataset-detail.component - add named router links --- src/app.ts | 2 + src/components/vs-input/vs-input.ts | 6 ++- src/components/vs-result/vs-result.vue | 9 ++-- src/router/index.ts | 7 +++ src/services/dataset.service.ts | 10 ++++ .../dataset-detail.component.ts | 52 +++++++++++++++++++ .../dataset-detail.component.vue | 49 +++++++++++++++++ .../search-view/search-view-component.ts | 6 ++- 8 files changed, 133 insertions(+), 8 deletions(-) create mode 100644 src/views/dataset-detail.component.ts/dataset-detail.component.ts create mode 100644 src/views/dataset-detail.component.ts/dataset-detail.component.vue diff --git a/src/app.ts b/src/app.ts index dc3f761..4d257e8 100644 --- a/src/app.ts +++ b/src/app.ts @@ -5,6 +5,7 @@ import HelloWorld from "./components/HelloWorld/HelloWorld.vue"; import HomeViewComponent from "./views/home-view/home-view-component.vue"; import HelpViewComponent from "./views/map-view/help-view-component.vue"; import SearchViewComponent from "./views/search-view/search-view-component.vue"; +import DatasetDetailComponent from "./views/dataset-detail.component.ts/dataset-detail.component.vue"; import ServiceViewComponent from "./views/services-view/service-view-component.vue"; import OaiViewComponent from "./views/oai-view/oai-view-component.vue"; import ContactViewComponent from "./views/contact-view/contact-view-component.vue"; @@ -34,6 +35,7 @@ import { VUE_APP_PORTAL } from "./constants"; // ActiveFacetCategory, HelpViewComponent, SearchViewComponent, + DatasetDetailComponent, ServiceViewComponent, OaiViewComponent, ContactViewComponent, diff --git a/src/components/vs-input/vs-input.ts b/src/components/vs-input/vs-input.ts index 5cc267b..a483508 100644 --- a/src/components/vs-input/vs-input.ts +++ b/src/components/vs-input/vs-input.ts @@ -27,8 +27,10 @@ export default class VsInput extends Vue { private selectedIndex = 0; private selectedDisplay = ""; private solr: SolrSettings = { - core: "rdr_data", // SOLR.core; - host: "tethys.at", + // core: "rdr_data", // SOLR.core; + // host: "tethys.at", + core: "test_data", // SOLR.core; + host: "repository.geologie.ac.at", }; // private rdrAPI!: DatasetService; itemRefs!: Array; diff --git a/src/components/vs-result/vs-result.vue b/src/components/vs-result/vs-result.vue index 98918ad..cd1fe18 100644 --- a/src/components/vs-result/vs-result.vue +++ b/src/components/vs-result/vs-result.vue @@ -17,17 +17,18 @@ Open Access -->

- {{ document.title_output }} - - + --> + + {{ document.title_output }}