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

DEICH-5604 cleanup

parent 713f3dce
......@@ -122,30 +122,20 @@ const fieldsByMediaType = {
"MusicRecording": [
"productionYear"
],
"Other": [
"Other": [
"productionYear"
],
"Periodical": [],
"Periodical": [],
"SheetMusic": []
}
/*
const mediaType = publication.mediaType.slice(34) // Strip http://data.deichman.no/mediaType#
const mediaTypeConfig = mediaTypeConfigs[mediaType]
*/
const WorkDetails = ({ work, publication }) => {
const {
hasSummary,
subjects,
publications = [],
} = work;
//console.log(publication)
//console.log(work)
const {
mediaType
} = publication;
const { mediaType } = publication;
const allFields = {
publicationTitle: fullTitle(publication),
......@@ -203,7 +193,6 @@ const WorkDetails = ({ work, publication }) => {
const hasRelations = !isEmpty(fields.workRelations);
const hasClassification = fields.classifications.length > 0;
//console.log(fields)
return (
<section
className="work-details"
......
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