- detailed help-view-component with titles and authors
- beginning search page styling
This commit is contained in:
parent
ed394e9587
commit
7cc4fc075c
|
@ -34,10 +34,10 @@ export default class FacetCategory extends Vue {
|
||||||
get uncollapseLabelText(): string {
|
get uncollapseLabelText(): string {
|
||||||
if (this.collapsed == true) {
|
if (this.collapsed == true) {
|
||||||
// return myLabels.viewer.sidePanel.more; //"More results";
|
// return myLabels.viewer.sidePanel.more; //"More results";
|
||||||
return "More results";
|
return "more";
|
||||||
} else {
|
} else {
|
||||||
// return myLabels.viewer.sidePanel.collapse; //"Collapse";
|
// return myLabels.viewer.sidePanel.collapse; //"Collapse";
|
||||||
return "Collapse";
|
return "collapse";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="panel panel-default">
|
<div class="card panel-default">
|
||||||
<!-- <h3 class="panel-title filterViewModelName">{{ filterName }}</h3> -->
|
<!-- <h3 class="panel-title filterViewModelName">{{ filterName }}</h3> -->
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title titlecase filterViewModelName">{{ filterName }}</h3>
|
<h3 class="panel-title titlecase filterViewModelName">{{ filterName }}</h3>
|
||||||
|
@ -12,11 +12,24 @@
|
||||||
<span :class="item.active ? 'disabled' : ''" @click.prevent="activateItem(item)">{{ item.val }} ({{ item.count }}) </span>
|
<span :class="item.active ? 'disabled' : ''" @click.prevent="activateItem(item)">{{ item.val }} ({{ item.count }}) </span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="overflowing" v-if="overflowing == true">
|
<!-- <ul class="overflowing" v-if="overflowing == true">
|
||||||
<li>
|
<li>
|
||||||
<span @click="toggle()">{{ uncollapseLabelText }}</span>
|
<span @click="toggle()">{{ uncollapseLabelText }}</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul> -->
|
||||||
|
</div>
|
||||||
|
<div class="card-footer" data-v-4fe33de2="">
|
||||||
|
<p class="card-footer-item" data-v-4fe33de2="">
|
||||||
|
<!-- <span @click="toggle()">{{ uncollapseLabelText }}</span> -->
|
||||||
|
<span v-if="collapsed" @click="toggle()">
|
||||||
|
{{ uncollapseLabelText }}
|
||||||
|
<i class="fa fa-angle-down"></i>
|
||||||
|
</span>
|
||||||
|
<span v-else @click="toggle()">
|
||||||
|
{{ uncollapseLabelText }}
|
||||||
|
<i class="fa fa-angle-up"></i>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -27,7 +40,50 @@ export default FacetCategory;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.card {
|
||||||
|
/* position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 0;
|
||||||
|
word-wrap: break-word;
|
||||||
|
background-color: #fff;
|
||||||
|
background-clip: border-box;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.125); */
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .card-footer:last-child,
|
||||||
|
.card-content:last-child,
|
||||||
|
.card-header:last-child {
|
||||||
|
border-bottom-left-radius: 0.25rem;
|
||||||
|
border-bottom-right-radius: 0.25rem;
|
||||||
|
} */
|
||||||
|
.card-footer {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #33cccc;
|
||||||
|
/* border-top: 1px solid #ededed; */
|
||||||
|
/* align-items: stretch; */
|
||||||
|
/* display: flex; */
|
||||||
|
}
|
||||||
|
.card-footer-item {
|
||||||
|
display: flex;
|
||||||
|
flex-basis: 0;
|
||||||
|
flex-grow: 1;
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: 0.75rem;
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
|
||||||
/* local styles */
|
/* local styles */
|
||||||
|
.panel-heading {
|
||||||
|
background-color: transparent;
|
||||||
|
color: #336699;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
|
||||||
|
text-transform: capitalize;
|
||||||
|
}
|
||||||
|
.panel-body {
|
||||||
|
padding: 0.75em 1em;
|
||||||
|
}
|
||||||
.disabled {
|
.disabled {
|
||||||
/* color: #EBEBE4; */
|
/* color: #EBEBE4; */
|
||||||
color: lightgray;
|
color: lightgray;
|
||||||
|
|
|
@ -54,4 +54,23 @@ export interface DbDataset {
|
||||||
reject_editor_note: string;
|
reject_editor_note: string;
|
||||||
reject_reviewer_note: string;
|
reject_reviewer_note: string;
|
||||||
reviewer_note_visible: string;
|
reviewer_note_visible: string;
|
||||||
|
titles: Array<Title>;
|
||||||
|
authors: Array<Author>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Title {
|
||||||
|
id: number;
|
||||||
|
type: string;
|
||||||
|
value: string;
|
||||||
|
language: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Author {
|
||||||
|
id: number;
|
||||||
|
academic_title: string;
|
||||||
|
date_of_birth: string;
|
||||||
|
email: string;
|
||||||
|
first_name: string;
|
||||||
|
last_name: string;
|
||||||
|
name_type: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" scoped>
|
||||||
import HelpViewComponent from "./help-view-component";
|
import HelpViewComponent from "./help-view-component";
|
||||||
export default HelpViewComponent;
|
export default HelpViewComponent;
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -55,9 +55,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div id="id-side-bar" class="column is-4 sidebar_column" style="padding-top: 1.2rem; padding-right: 1.5rem">
|
<div id="id-side-bar" class="column is-4 sidebar_column" style="padding-top: 1.2rem; padding-right: 1.5rem; padding-left: 1.5rem">
|
||||||
<div id="externals" class="">
|
<div id="externals" class="">
|
||||||
<div class="card" v-for="(facetItems, key, index) in facets" :key="index" name="external_card" style="margin-bottom: 0px">
|
<div v-for="(facetItems, key, index) in facets" :key="index" name="external_card" style="margin-bottom: 0px">
|
||||||
<facet-category v-bind:facetItems="facetItems" v-bind:filterName="key" @filter="onFilter"></facet-category>
|
<facet-category v-bind:facetItems="facetItems" v-bind:filterName="key" @filter="onFilter"></facet-category>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="card" name="external_card" style="margin-bottom: 0px">
|
<!-- <div class="card" name="external_card" style="margin-bottom: 0px">
|
||||||
|
@ -108,7 +108,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col col-8 column is-8 results_column" style="padding-top: 1.2rem; padding-right: 0.5rem">
|
<div class="col col-8 column is-8 results_column" style="padding-top: 1.2rem; padding-right: 1rem; padding-left: 1rem">
|
||||||
<div class="column" v-if="activeFilterCategories && Object.keys(activeFilterCategories).length > 0">
|
<div class="column" v-if="activeFilterCategories && Object.keys(activeFilterCategories).length > 0">
|
||||||
<span class="active-filter-items" v-for="(values, key, index) in activeFilterCategories" :key="index">
|
<span class="active-filter-items" v-for="(values, key, index) in activeFilterCategories" :key="index">
|
||||||
<active-facet-category v-bind:filterItems="values" :categoryName="key" @clearFacetCategory="onClearFacetCategory"></active-facet-category>
|
<active-facet-category v-bind:filterItems="values" :categoryName="key" @clearFacetCategory="onClearFacetCategory"></active-facet-category>
|
||||||
|
|
|
@ -61,4 +61,17 @@ export default class SitelinkViewComponent extends Vue {
|
||||||
this.error = err;
|
this.error = err;
|
||||||
// this.loading = false;
|
// this.loading = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toDayDateTimeString(UNIX_timestamp: number): string {
|
||||||
|
const a = new Date(UNIX_timestamp * 1000);
|
||||||
|
const months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
||||||
|
const year = a.getFullYear();
|
||||||
|
const month = months[a.getMonth()];
|
||||||
|
const date = a.getDate();
|
||||||
|
const hour = a.getHours();
|
||||||
|
const min = a.getMinutes();
|
||||||
|
const sec = a.getSeconds();
|
||||||
|
const time = date + " " + month + " " + year + " " + hour + ":" + min + ":" + sec;
|
||||||
|
return time;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,20 @@
|
||||||
<a>{{ dataset.type }}; {{ dataset.publish_id }}</a>
|
<a>{{ dataset.type }}; {{ dataset.publish_id }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
</header>
|
</header>
|
||||||
|
<div class="blog-meta">
|
||||||
|
{{ dataset.server_date_published }}
|
||||||
|
</div>
|
||||||
|
<div class="post-description">
|
||||||
|
<!-- @foreach ($document->authors as $author) -->
|
||||||
|
<div v-for="(author, index) in dataset.authors" :key="index">
|
||||||
|
<em>Author: {{ author.full_name }}</em>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
<div v-for="(title, index) in dataset.titles" :key="index">
|
||||||
|
<em>{{ title.type }}: {{ title.value }}</em>
|
||||||
|
<br />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user