forked from geolba/tethys.frontend
- adaptions inside dataset-detail-component.vue: show references to internal documents, also the referenced by relations
This commit is contained in:
parent
d2c0fb72fd
commit
4dd238ec36
|
@ -11,7 +11,7 @@ export interface Dataset {
|
||||||
doctype: string;
|
doctype: string;
|
||||||
geo_location: string;
|
geo_location: string;
|
||||||
id: number;
|
id: number;
|
||||||
identifier: Array<string>;
|
identifier: Identifier;
|
||||||
language: string;
|
language: string;
|
||||||
licence: string;
|
licence: string;
|
||||||
publisher_name: string;
|
publisher_name: string;
|
||||||
|
@ -99,6 +99,7 @@ export class DbDataset {
|
||||||
public references: Array<Reference>,
|
public references: Array<Reference>,
|
||||||
public files: Array<DbFile>,
|
public files: Array<DbFile>,
|
||||||
public identifier: Identifier,
|
public identifier: Identifier,
|
||||||
|
public referenced_by: Array<Reference>,
|
||||||
private coverage?: Coverage,
|
private coverage?: Coverage,
|
||||||
public project?: Project,
|
public project?: Project,
|
||||||
) {}
|
) {}
|
||||||
|
@ -360,6 +361,7 @@ export interface Reference {
|
||||||
relation: string;
|
relation: string;
|
||||||
value: string;
|
value: string;
|
||||||
label: string;
|
label: string;
|
||||||
|
dataset: Dataset;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Project {
|
export interface Project {
|
||||||
|
|
|
@ -61,6 +61,32 @@
|
||||||
>
|
>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div v-for="reference in dataset.references" v-bind:key="reference.id" class="columns">
|
||||||
|
<div class="column is-3-desktop is-4-tablet label">{{ reference.relation }}</div>
|
||||||
|
<div class="column is-9-desktop is-8-tablet">
|
||||||
|
<!-- {{ "https://doi.org/" + reference.value }} -->
|
||||||
|
{{ reference.type }}:
|
||||||
|
<a v-if="reference.type === 'DOI'" target="_blank" class="link-label" v-bind:href="'https://doi.org/' + reference.value">
|
||||||
|
{{ "https://doi.org/" + reference.value }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-for="reference in dataset.referenced_by" v-bind:key="reference.id" class="columns">
|
||||||
|
<div class="column is-3-desktop is-4-tablet label">has newer version:</div>
|
||||||
|
<div class="column is-9-desktop is-8-tablet">
|
||||||
|
<!-- {{ "https://doi.org/" + reference.value }} -->
|
||||||
|
{{ reference.type }}:
|
||||||
|
<a
|
||||||
|
v-if="reference.type === 'DOI'"
|
||||||
|
target="_blank"
|
||||||
|
class="link-label"
|
||||||
|
v-bind:href="'https://doi.org/' + reference.dataset.identifier"
|
||||||
|
>
|
||||||
|
{{ "https://doi.org/" + reference.dataset.identifier.value }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card record-elem">
|
<div class="card record-elem">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user