2019-10-03 16:54:05 +00:00
|
|
|
<template>
|
|
|
|
<!-- <div class="card-columns" >
|
|
|
|
<div class="card" v-for="item in results" :key="item.id">
|
|
|
|
<img v-if="item.thumb" class="card-img-top" :src="item.thumb" :alt="item.title" @error="error(item)">
|
|
|
|
<div class="card-body">
|
|
|
|
<h5 class="card-title">{{item.name}}</h5>
|
|
|
|
<p class="card-text" v-html="truncate(item.description || item.abstract, 50)"></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>-->
|
|
|
|
<div class="results">
|
|
|
|
|
2019-10-18 15:05:56 +00:00
|
|
|
<!-- <div class="result-list-info">
|
2019-10-03 16:54:05 +00:00
|
|
|
<div class="resultheader">
|
|
|
|
Your search yielded
|
|
|
|
<strong>{{ results.length }}</strong> results:
|
|
|
|
</div>
|
2019-10-18 15:05:56 +00:00
|
|
|
</div> -->
|
2019-10-03 16:54:05 +00:00
|
|
|
|
2020-04-17 15:55:18 +00:00
|
|
|
<section class="normal result-list-container">
|
|
|
|
|
|
|
|
<div v-for="document in results" :key="document.id" class="row record-elem">
|
|
|
|
<div class="twelve columns post">
|
|
|
|
|
|
|
|
<span class="label label-info" data-container="div" data-title="Publication date">
|
2019-10-03 16:54:05 +00:00
|
|
|
{{ convert(document.server_date_published) }}
|
2020-04-17 15:55:18 +00:00
|
|
|
</span>
|
|
|
|
<span class="label label-default ng-binding">{{ document.doctype }}</span>
|
2020-05-20 13:54:10 +00:00
|
|
|
<span v-if="openAccessLicences.includes(document.licence)" class="label label-success titlecase">Open Access</span>
|
2020-04-17 15:55:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
<h4>
|
2020-05-20 13:54:10 +00:00
|
|
|
<a target="_self" v-bind:href="'dataset/' + document.id" class="ng-binding">
|
2020-04-17 15:55:18 +00:00
|
|
|
{{ document.title_output }}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
|
2020-04-20 21:29:10 +00:00
|
|
|
|
|
|
|
<p v-if="document.author && document.author.length > 0">
|
2020-04-17 15:55:18 +00:00
|
|
|
<!-- <span>Author: {{ document.author.join(', ') }}</span> -->
|
2020-04-20 21:29:10 +00:00
|
|
|
<span v-for="(author,index) in document.author" :key="index">{{ author }}; </span>
|
|
|
|
</p>
|
2019-10-03 16:54:05 +00:00
|
|
|
|
|
|
|
|
2020-04-17 15:55:18 +00:00
|
|
|
<!-- <p v-if="document.title_additional && document.title_additional.length > 0">
|
|
|
|
<span>Additional Title:{{ document.title_additional.join(', ') }}</span>
|
|
|
|
</p> -->
|
2019-10-03 16:54:05 +00:00
|
|
|
|
|
|
|
<p class="clamped clamped-2">
|
|
|
|
<span class="text">
|
|
|
|
Abstract: {{ document.abstract_output }}
|
|
|
|
<span class="ellipsis">...</span>
|
|
|
|
<span class="fill"></span>
|
|
|
|
</span>
|
|
|
|
</p>
|
2020-04-17 15:55:18 +00:00
|
|
|
|
2020-05-20 13:54:10 +00:00
|
|
|
<p>
|
|
|
|
<span>Licence: {{ document.licence }}</span>
|
|
|
|
</p>
|
|
|
|
|
2020-04-17 15:55:18 +00:00
|
|
|
<!-- <div class="css-subject" v-if="document.subject && document.subject.length > 0"> -->
|
2020-04-24 13:37:24 +00:00
|
|
|
<span class="label label-keyword titlecase" v-for="(item, index) in document.subject" :key="index">
|
2020-04-17 15:55:18 +00:00
|
|
|
#{{ item }}
|
|
|
|
</span>
|
2020-05-20 13:54:10 +00:00
|
|
|
|
2020-04-17 15:55:18 +00:00
|
|
|
<!-- <p>
|
|
|
|
<small class="text-muted hidden-xs ng-binding">
|
|
|
|
Uploaded on March 15, 2019
|
|
|
|
</small>
|
|
|
|
</p> -->
|
|
|
|
|
|
|
|
</div>
|
2019-10-03 16:54:05 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-04-17 15:55:18 +00:00
|
|
|
import VgResults from "./vs-results-class";
|
|
|
|
export default VgResults;
|
|
|
|
</script>
|