hyperboria/nexus/views/js/scitech.js
the-superpirate dd23846059 - [nexus] Refactoring
- [nexus] Switch bot
  - [bot] Added extra receivers functionality

GitOrigin-RevId: 68fc32d3e79ff411758f54f435fe8680fc42dead
2022-03-28 17:42:18 +03:00

22 lines
505 B
JavaScript

import { BaseView } from './base'
export class ScitechView extends BaseView {
index = '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(' ')
}
}