Skip to content

Commit

Permalink
Use localized list format for sidebar author info
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfactotum committed Oct 8, 2023
1 parent 28f25e4 commit 14f2d8e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/book-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
} from './annotations.js'
import { SelectionPopover } from './selection-tools.js'
import { ImageViewer } from './image-viewer.js'
import { makeBookInfoWindow } from './book-info.js'
import { formatAuthors, makeBookInfoWindow } from './book-info.js'
import { getURIStore, getBookList } from './library.js'

// for use in the WebView
Expand Down Expand Up @@ -920,10 +920,7 @@ export const BookViewer = GObject.registerClass({
book.metadata ??= {}
this.root.title = book.metadata.title ?? ''
this._book_title.label = book.metadata.title ?? ''
this._book_author.label = book.metadata.author
?.map(author => typeof author === 'string' ? author : author.name)
?.join(', ')
?? ''
this._book_author.label = formatAuthors(book.metadata)
this._book_author.visible = !!book.metadata?.author?.length

const { language: { direction } } = reader.view
Expand Down

0 comments on commit 14f2d8e

Please sign in to comment.