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">
|
2020-03-04 18:00:03 +00:00
|
|
|
<facet-category :data="values" :filterName="key" @filter="onFilter"></facet-category>
|
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">
|
2020-02-27 16:25:03 +00:00
|
|
|
<!-- <div class="active-filter-items twelve columns">
|
2019-10-10 10:58:13 +00:00
|
|
|
<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>
|
2020-02-27 16:25:03 +00:00
|
|
|
</div> -->
|
|
|
|
<div class="twelve columns">
|
|
|
|
<span class="active-filter-items" v-for="(values, key, index) in activeFilterCategories" :key="index">
|
|
|
|
<active-facet-category :data="values" :categoryName="key" @clearFacetCategory="onClearFacetCategory"></active-facet-category>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2019-10-10 10:58:13 +00:00
|
|
|
</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>
|
2020-03-04 18:00:03 +00:00
|
|
|
</div> <!-- end eight columns -->
|
|
|
|
|
2019-09-27 16:02:48 +00:00
|
|
|
</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;
|
|
|
|
}
|
2020-03-06 14:39:05 +00:00
|
|
|
|
|
|
|
.content {
|
|
|
|
flex: 1 1 70%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2019-09-27 16:02:48 +00:00
|
|
|
</style>
|