- fix(cognitron): Small fixes in Cognitron

1 internal commit(s)

GitOrigin-RevId: a72da7dc36ed4ab56f07283458610633177e4e1f
This commit is contained in:
the-superpirate 2021-05-01 13:13:51 +03:00
parent ad8f0b2700
commit 00c6c6ffff
4 changed files with 8 additions and 16 deletions

View File

@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
div.document div
.top .top
h6 {{ document.title }} h6 {{ document.title }}
.top .top
@ -18,8 +18,11 @@
<script> <script>
import { getIssuedDate } from '@/plugins/helpers' import { getIssuedDate } from '@/plugins/helpers'
import VTr from './v-tr'
import VTrMultiLink from './v-tr-multi-link'
export default { export default {
name: 'VScitech', name: 'VScitech',
components: { VTr, VTrMultiLink },
props: { props: {
document: { document: {
type: Object, type: Object,
@ -37,14 +40,8 @@ export default {
return getIssuedDate(this.document.issuedAt) return getIssuedDate(this.document.issuedAt)
}, },
ipfsUrl () { ipfsUrl () {
if (!this.ipfsMultihash) return null if (!this.document.getIpfsMultihash()) return null
return `${this.$config.ipfs.gateway.url}/ipfs/${this.ipfsMultihash}?filename=${this.document.getFilename()}&download=true` return `${this.$config.ipfs.gateway.url}/ipfs/${this.document.getIpfsMultihash()}?filename=${this.document.getFilename()}&download=true`
},
ipfsMultihash () {
if (this.document.ipfsMultihashesList) {
return this.document.ipfsMultihashesList[0]
}
return ''
}, },
links () { links () {
const links = [] const links = []
@ -61,9 +58,6 @@ export default {
} }
return links return links
}, },
locator () {
return ''
},
tags () { tags () {
return (this.document.tagsList || []).join('; ') return (this.document.tagsList || []).join('; ')
} }

View File

@ -10,7 +10,6 @@
value-field="item" value-field="item"
text-field="name") text-field="name")
p.mt-5(v-if="nothingFound") Nothing found p.mt-5(v-if="nothingFound") Nothing found
b-pagination(v-if='documents.length > 0' v-model='page' :total-rows='totalRows' :per-page='perPage' limit="2" :disabled="isLoading")
.search-list .search-list
search-list(:documents='documents') search-list(:documents='documents')
b-pagination(v-if='documents.length > 0' v-model='page' :total-rows='totalRows' :per-page='perPage' limit="2" :disabled="isLoading") b-pagination(v-if='documents.length > 0' v-model='page' :total-rows='totalRows' :per-page='perPage' limit="2" :disabled="isLoading")

View File

@ -111,7 +111,6 @@ export class BaseView {
if (this.ipfsMultihashesList) { if (this.ipfsMultihashesList) {
return this.ipfsMultihashesList[0] return this.ipfsMultihashesList[0]
} }
return ''
} }
getTelegramLink () { getTelegramLink () {

View File

@ -30,9 +30,9 @@ Although many of goals looks complex and faraway I strongly believe that we will
#### Infrastructure #### Infrastructure
- Putting scimag collection onto IPFS - Putting scimag collection onto IPFS (#37)
- Announce data dumps for both scitech and scimag collections - Announce data dumps for both scitech and scimag collections
- Pinning feature in the app that will allow users to pin subset of the collection in an easy way - Pinning feature in the app that will allow users to pin subset of the collection in an easy way (#38)
- (*) Consider various **reliable** ways to announce new releases of **initial** data dumps - (*) Consider various **reliable** ways to announce new releases of **initial** data dumps
- Maintain and curate the list of already publicly available journals in Pylon - Maintain and curate the list of already publicly available journals in Pylon