2019-09-27 16:02:48 +00:00
|
|
|
<template>
|
2019-10-10 10:58:13 +00:00
|
|
|
<div class="search-container row">
|
2019-10-03 16:54:05 +00:00
|
|
|
<div class="four columns left-bar">
|
|
|
|
<div id="left-bar" class="sidebar left-bar">
|
2019-10-10 10:58:13 +00:00
|
|
|
<h2 class="indexheader">DataXplore</h2>
|
|
|
|
|
|
|
|
<!-- <div class="card" v-for="item in facets.language" :key="item.id">
|
2019-10-03 16:54:05 +00:00
|
|
|
<span>{{ item }}</span>
|
2019-10-10 10:58:13 +00:00
|
|
|
</div>-->
|
2019-10-03 16:54:05 +00:00
|
|
|
|
2019-10-10 10:58:13 +00:00
|
|
|
<!-- <facet-list v-bind:data="facets"></facet-list> -->
|
|
|
|
<div class="card" v-for="(item, index) in facets" :key="index">
|
|
|
|
<facet-list :data="item.values" :filterName="item.filterName" @filter="onFilter"></facet-list>
|
|
|
|
</div>
|
2019-09-27 16:02:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-10-03 16:54:05 +00:00
|
|
|
<div class="eight columns right-bar">
|
|
|
|
<div id="right-bar" class="sidebar right-bar">
|
2019-10-10 10:58:13 +00:00
|
|
|
|
2019-10-03 16:54:05 +00:00
|
|
|
<!-- Search input section -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<vs-input @search="onSearch"></vs-input>
|
|
|
|
</div>
|
2019-09-27 16:02:48 +00:00
|
|
|
</div>
|
2019-10-03 16:54:05 +00:00
|
|
|
|
2019-10-10 10:58:13 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="active-filter-items twelve columns">
|
|
|
|
<a class="filter-link" v-for="(value, key, index) in activeFilterItems" :key="index">
|
|
|
|
<span>{{ key + ": " }}</span>
|
|
|
|
<span v-if="value && value.length > 0">{{ value.join(', ') }}</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-10-03 16:54:05 +00:00
|
|
|
<!-- Results section -->
|
|
|
|
<vs-results v-bind:data="results"></vs-results>
|
2019-09-27 16:02:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-03 16:54:05 +00:00
|
|
|
<!-- <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>-->
|
2019-09-27 16:02:48 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="js">
|
|
|
|
import App from './app-class.js';
|
|
|
|
export default App;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
#app {
|
|
|
|
color: #56b983;
|
|
|
|
}
|
|
|
|
</style>
|