- small changes in dataset-detail.component.ts and dataset-detail.component.vue

This commit is contained in:
Arno Kaimbacher 2022-01-13 17:43:19 +01:00
parent a8c5e16014
commit c47934732b
5 changed files with 18 additions and 17 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ pnpm-debug.log*
*.sln
*.sw?
/.env
.env

View File

@ -31,10 +31,10 @@ export default class VsInput extends Vue {
private selectedIndex = 0;
private selectedDisplay = "";
private solr: SolrSettings = {
// core: "rdr_data", // SOLR.core;
// host: "tethys.at",
core: "test_data", // SOLR.core;
host: "repository.geologie.ac.at",
core: "rdr_data", // SOLR.core;
host: "tethys.at",
// core: "test_data", // SOLR.core;
// host: "repository.geologie.ac.at",
};
// private rdrAPI!: DatasetService;
itemRefs!: Array<any>;

View File

@ -116,7 +116,7 @@ export class DbDataset {
}
}
public hasMethodsAbtract(): boolean {
public hasMethodsAbstract(): boolean {
if (this.abstracts.some((e) => e.type === AbstractType.Methods)) {
return true;
} else {
@ -164,15 +164,15 @@ export class DbDataset {
return this.abstracts.find((e) => e.type === AbstractType.Abstract);
}
public get TranslatedAbtract(): Nullable<Abstract> {
public get TranslatedAbstract(): Nullable<Abstract> {
return this.abstracts.find((e) => e.type === AbstractType.Translated);
}
public get SeriesInformationAbtract(): Nullable<Abstract> {
public get SeriesInformationAbstract(): Nullable<Abstract> {
return this.abstracts.find((e) => e.type === AbstractType.Series_information);
}
public get MethodsAbtract(): Nullable<Abstract> {
public get MethodsAbstract(): Nullable<Abstract> {
return this.abstracts.find((e) => e.type === AbstractType.Methods);
}

View File

@ -75,21 +75,21 @@
<p>{{ dataset.MainAbstract.value }}</p>
<br />
<p v-if="dataset.hasTranslatedAbstract()">
{{ dataset.TranslatedAbtract.value }}
{{ dataset.TranslatedAbstract.value }}
</p>
</div>
</div>
<div class="columns" v-if="dataset.hasOwnProperty('abstracts')">
<div class="column is-3-desktop is-4-tablet label">Serieninformation/<br />series information:</div>
<div class="column is-9-desktop is-8-tablet" v-if="dataset.hasSeriesInformationAbstract()">
{{ dataset.SeriesInformationAbstract.value }}
{{ dataset.SeriesInformationAbstract?.value }}
</div>
<div class="column is-9-desktop is-8-tablet" v-else>-</div>
</div>
<div class="columns" v-if="dataset.hasOwnProperty('abstracts')">
<div class="column is-3-desktop is-4-tablet label">Methodik/<br />method:</div>
<div class="column is-9-desktop is-8-tablet" v-if="dataset.hasMethodsAbtract()">
{{ dataset.MethodsAbtract.value }}
<div class="column is-9-desktop is-8-tablet" v-if="dataset.hasMethodsAbstract()">
{{ dataset.MethodsAbstract.value }}
</div>
<div class="column is-9-desktop is-8-tablet" v-else>-</div>
</div>

View File

@ -44,10 +44,10 @@ export default class SearchViewComponent extends Vue {
loaded = false;
numFound!: number;
private solr: SolrSettings = {
// core: "rdr_data", // SOLR.core;
// host: "tethys.at",
core: "test_data", // SOLR.core;
host: "repository.geologie.ac.at",
core: "rdr_data", // SOLR.core;
host: "tethys.at",
// core: "test_data", // SOLR.core;
// host: "repository.geologie.ac.at",
};
// private rdrAPI!: DatasetService;
private error = "";