mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-01-25 01:47:36 +01:00
dd23846059
- [nexus] Switch bot - [bot] Added extra receivers functionality GitOrigin-RevId: 68fc32d3e79ff411758f54f435fe8680fc42dead
72 lines
1.3 KiB
Vue
72 lines
1.3 KiB
Vue
<template lang="pug">
|
|
div.d-flex
|
|
div
|
|
nuxt-link(:to="{ name: 'documents-index-name-id', params: { index_alias: document.index_alias, id: document.id }}") {{ document.icon }} {{ document.title }}
|
|
.detail
|
|
div
|
|
i.mr-1(v-if='document.doi') DOI:
|
|
span {{ document.doi }}
|
|
div(v-if='document.getFirstAuthors(false, 1)')
|
|
span {{ document.getFirstAuthors(false, 1) }} {{ issuedAt }}
|
|
.gp
|
|
span.el.text-uppercase {{ document.getFormattedFiledata() }}
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import { getIssuedDate } from '@/plugins/helpers'
|
|
|
|
export default {
|
|
name: 'SearchItem',
|
|
props: {
|
|
document: {
|
|
type: Object,
|
|
required: true
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
issuedAt: function () {
|
|
const date = getIssuedDate(this.document.issuedAt)
|
|
if (date != null) return '(' + date + ')'
|
|
return null
|
|
},
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.el {
|
|
display: block;
|
|
line-height: 1em;
|
|
margin-right: 10px;
|
|
padding-right: 10px;
|
|
border-right: 1px solid;
|
|
&:last-child {
|
|
border-right: 0;
|
|
}
|
|
}
|
|
|
|
img {
|
|
margin-left: 15px;
|
|
max-width: 48px;
|
|
max-height: 48px;
|
|
object-fit: contain;
|
|
width: auto;
|
|
}
|
|
.key {
|
|
font-weight: bold;
|
|
}
|
|
.gp {
|
|
margin-top: 2px;
|
|
display: flex;
|
|
}
|
|
.detail {
|
|
font-size: 12px;
|
|
}
|
|
i {
|
|
text-transform: uppercase;
|
|
}
|
|
</style>
|