Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
eb70a377
Commit
eb70a377
authored
Mar 01, 2021
by
Petter Goksøyr Åsen
Browse files
DEICH-5604
cleanup
parent
713f3dce
Changes
1
Hide whitespace changes
Inline
Side-by-side
deichman.no/components/WorkDetails/WorkDetails.js
View file @
eb70a377
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment