Commit fd8460a5 authored by Petter Goksøyr Åsen's avatar Petter Goksøyr Åsen
Browse files

Revert "patron-client: remove author heading from work page"

This reverts commit a8ecdf46.
parent bfff87b1
import React, { PropTypes } from 'react'
import MediaQuery from 'react-responsive'
import Author from './fields/Author'
import Year from './fields/Year'
import AdditionalInformation from './AdditionalInformation'
import Summary from './fields/Summary'
......@@ -26,6 +27,7 @@ const WorkInformation = ({ work, publicationId, showAdditionalInformation, toggl
return (
<section className="work-information">
<Title title={publicationTitle || originalTitle} untranscribedTitle={untranscribedPublicationtitle} />
<Author by={work.by} />
<OriginalTitle title={originalTitle} untranscribedTitle={untranscribedOriginalTitle} />
<OriginalLanguage languages={work.languages} />
<CountryOfOrigin country={work.countryOfOrigin} />
......
import React, { PropTypes } from 'react'
import { defineMessages, FormattedMessage } from 'react-intl'
const Author = ({ by }) => (
<div className="meta-item author">
{by.length > 0
? (
<span>
<span className="meta-label"><FormattedMessage {...messages.labelBy} />: </span>
<span className="meta-content" data-automation-id="work_by">{by.join(' / ')}</span>
</span>
) : null}
</div>
)
Author.defaultProps = {
by: []
}
Author.propTypes = {
by: PropTypes.array.isRequired
}
export const messages = defineMessages({
labelBy: {
id: 'Author.labelBy',
description: 'Label for "by"',
defaultMessage: 'By'
}
})
export default Author
......@@ -3,6 +3,7 @@ export default {
'AdditionalInformation.additionalInfoToggleMore': 'Mer om dette verket',
'AgeLimit.ageLimit': 'Aldersgrense',
'AgeLimit.noAgeLimit': 'Tillatt for alle',
'Author.labelBy': 'Av',
'AvailableFilter.availabilityLabel': 'Vis kun ledige',
'BiblioNumber.biblioNumber': 'Tittelnummer',
'Binding.labelBinding': 'Innbinding',
......
Markdown is supported
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