2019-10-18 15:05:56 +00:00
|
|
|
<template v-if="loaded">
|
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-18 15:05:56 +00:00
|
|
|
<div class="sidebar-image"></div>
|
|
|
|
<!-- <h2 class="indexheader">DataXplore</h2> -->
|
2019-10-10 10:58:13 +00:00
|
|
|
|
|
|
|
<!-- <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> -->
|
2019-10-15 11:52:52 +00:00
|
|
|
<!-- <div class="card" v-for="(item, index) in facets" :key="index"> -->
|
2019-10-18 15:05:56 +00:00
|
|
|
<div class="card" v-for="(values, key, index) in facets" :key="index">
|
2019-10-15 11:52:52 +00:00
|
|
|
<facet-list :data="values" :filterName="key" @filter="onFilter"></facet-list>
|
2019-10-10 10:58:13 +00:00
|
|
|
</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">
|
|
|
|
<!-- Search input section -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
2019-10-30 10:25:56 +00:00
|
|
|
<vs-input @search="onSearch" title="searching solr datasets" placeholder="Enter your search term..."></vs-input>
|
2019-10-03 16:54:05 +00:00
|
|
|
</div>
|
2019-09-27 16:02:48 +00:00
|
|
|
</div>
|
2019-10-03 16:54:05 +00:00
|
|
|
|
2019-10-18 15:05:56 +00:00
|
|
|
<div v-if="results.length > 0" class="result-list-info">
|
|
|
|
<div class="resultheader">
|
|
|
|
Your search yielded
|
|
|
|
<strong>{{ numFound }}</strong> results:
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2019-10-10 10:58:13 +00:00
|
|
|
<div class="active-filter-items twelve columns">
|
|
|
|
<a class="filter-link" v-for="(value, key, index) in activeFilterItems" :key="index">
|
|
|
|
<span>{{ key + ": " }}</span>
|
2019-10-18 15:05:56 +00:00
|
|
|
<span v-if="value && value.length > 0">{{ value.join(', ') }}</span>
|
2019-10-10 10:58:13 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-10-03 16:54:05 +00:00
|
|
|
<!-- Results section -->
|
|
|
|
<vs-results v-bind:data="results"></vs-results>
|
2019-10-18 15:05:56 +00:00
|
|
|
|
|
|
|
<!-- pagination -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<vs-pagination v-bind:data="pagination" @paginate="onPaginate"></vs-pagination>
|
|
|
|
</div>
|
|
|
|
</div>
|
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>
|
|
|
|
|
2019-10-18 15:05:56 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import App from "./app-class";
|
|
|
|
export default App;
|
2019-09-27 16:02:48 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
#app {
|
|
|
|
color: #56b983;
|
|
|
|
}
|
|
|
|
</style>
|