mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-01-10 10:45:56 +01:00
8e8a92f1b1
2 internal commit(s) GitOrigin-RevId: bdefcb9130693f1bc6c56d23d44fc4e41ff4672d
22 lines
506 B
JavaScript
22 lines
506 B
JavaScript
import { BaseView } from './base'
|
|
|
|
export class ScitechView extends BaseView {
|
|
schema = 'scitech'
|
|
icon = '📚'
|
|
|
|
getFormattedLocator () {
|
|
const parts = []
|
|
if (this.authorsList) {
|
|
parts.push(this.getFirstAuthors(true, 3))
|
|
}
|
|
if (this.issuedAt) {
|
|
const date = new Date(this.issuedAt * 1000)
|
|
parts.push(`(${date.getUTCFullYear()})`)
|
|
}
|
|
if (this.pages) {
|
|
parts.push(`pp. ${self.pages}`)
|
|
}
|
|
return parts.join(' ')
|
|
}
|
|
}
|