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

DEICH-5604 minor tweaks to about media box

parent 23413ca1
......@@ -94,6 +94,9 @@ const commonFields = [
"ean",
"recordId",
"duration",
"scoreTypes",
"keys",
"instrumentations",
]
const fieldsByMediaType = {
......@@ -136,15 +139,12 @@ const WorkDetails = ({ work, publication }) => {
const {
hasSummary,
subjects,
keys = [],
publications = [],
instrumentations = [],
} = work;
//console.log(publication)
//console.log(work)
const {
mediaType,
scoreTypes = []
mediaType
} = publication;
const allFields = {
......@@ -155,7 +155,7 @@ const WorkDetails = ({ work, publication }) => {
parallelTextLanguage: publication.parallelTextLanguage,
workPublicationYear: work.publicationYear,
workTitle: fullTitle(work),
contributors: work.contributors.concat(publication.contributors), // TODO spør om både verk og utgivelse contributors skal med her
contributors: work.contributors.concat(publication.contributors),
workSeries: work.workSeries,
workRelations: work.workRelations,
workLanguages: work.languages,
......@@ -175,7 +175,7 @@ const WorkDetails = ({ work, publication }) => {
illustrativeMatter: publication.illustrativeMatter,
colorations: publication.colorations,
writingSystem: publication.writingSystem,
notes: publication.notes, // TODO skal det hete "beskrivelse"?
notes: publication.notes,
edition: publication.edition,
publishers: publication.publishers,
serialIssues: publication.serialIssues,
......@@ -187,6 +187,9 @@ const WorkDetails = ({ work, publication }) => {
duration: publication.duration,
placeOfPublication: publication.placeOfPublication,
productionYear: work.publicationYear,
scoreTypes: work.scoreTypes,
keys: work.keys,
instrumentations: work.instrumentations,
}
const fields = {}
commonFields.forEach(f => {
......@@ -290,6 +293,9 @@ const WorkDetails = ({ work, publication }) => {
<Meta.Row type="workPublicationYear" data={fields.workPublicationYear} />
<Meta.Row type="workLanguages" data={fields.workLanguages} />
<Meta.Row type="audiences" data={fields.audiences} />
<Meta.Row type="scoreTypes" data={fields.scoreTypes} />
<Meta.Row type="instrumentations" data={fields.instrumentations} />
<Meta.Row type="keys" data={fields.keys} />
<Meta.Row type="ageLimit" data={getAgeLimit(publications)} />
<Meta.Row type="literaryForms" data={fields.literaryForms} />
<Meta.Row type="genres" data={fields.genres} />
......@@ -336,12 +342,6 @@ const WorkDetails = ({ work, publication }) => {
<Meta.Row type="ismn" data={fields.ismn} />
<Meta.Row type="ean" data={fields.ean} />
<Meta.Row type="recordId" data={fields.recordId} />
<Meta.Row type="instrumentations" data={instrumentations} />
<Meta.Row type="keys" data={keys} />
<Meta.Row type="scoreTypes" data={scoreTypes} />
</Table.Body>
</Table>
</Block>
......
......@@ -149,7 +149,7 @@ export default {
transformation: transformContributors
},
notes: {
label: "Noter",
label: "Beskrivelse",
shape: "List"
},
countriesOfOrigin: {
......
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