Commit abb797ce authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Minor GUI fixes.

parent 847bf7c5
......@@ -20,8 +20,8 @@ export default class EMSEntryOverview extends React.Component {
} else if (preview_url.indexOf('http://') === 0 || preview_url.indexOf('https://') === 0) {
relative_preview_url = preview_url
} else {
const dirname = data.mainfile.substring(0, data.mainfile.lastIndexOf('/') + 1)
relative_preview_url = `${apiBase}/raw/${data.upload_id}/${dirname ? dirname + '/' : ''}${preview_url}`
const dirname = data.mainfile.substring(0, data.mainfile.lastIndexOf('/'))
relative_preview_url = `${apiBase}/raw/${data.upload_id}/${dirname}/${preview_url}`
}
return (
......
......@@ -34,7 +34,7 @@ class SearchResultListUnstyled extends React.Component {
label: 'Authors',
render: (authors) => {
if (authors.length > 3) {
return authors.filter((_, index) => index < 2).map(author => author.name).join('; ') + 'et al'
return authors.filter((_, index) => index < 2).map(author => author.name).join('; ') + ' et al'
} else {
return authors.map(author => author.name).join('; ')
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment