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
ls.ext
Commits
462318c3
Commit
462318c3
authored
Aug 21, 2018
by
Petter Goksøyr Åsen
Browse files
patron-client: support multiple publication places
parent
830d1e2a
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
redef/patron-client/src/backend/misc/frame.json
View file @
462318c3
...
...
@@ -236,7 +236,8 @@
},
"hasPlaceOfPublication"
:
{
"@id"
:
"deichman:hasPlaceOfPublication"
,
"@type"
:
"@id"
"@type"
:
"@id"
,
"@container"
:
"@set"
},
"publishedBy"
:
{
"@id"
:
"deichman:publishedBy"
,
...
...
redef/patron-client/src/backend/routes/resources.js
View file @
462318c3
...
...
@@ -268,7 +268,7 @@ function transformPublications (publications) {
numberOfPages
:
publication
.
numberOfPages
||
[],
partNumber
:
publication
.
partNumber
,
partTitle
:
publication
.
partTitle
,
placeOfPublication
:
publication
.
hasPlaceOfPublication
?
publication
.
hasPlaceOfPublication
.
prefLabel
:
undefined
,
placeOfPublication
:
publication
.
hasPlaceOfPublication
||
[]
,
publicationParts
:
transformPublicationParts
(
publication
.
publicationParts
),
publicationYear
:
publication
.
publicationYear
,
publisher
:
publication
.
publishedBy
?
publication
.
publishedBy
.
name
:
undefined
,
...
...
redef/patron-client/src/frontend/components/work/fields/publication/PlaceOfPublication.js
View file @
462318c3
...
...
@@ -4,10 +4,10 @@ import { defineMessages } from 'react-intl'
import
MetaItem
from
'
../../../MetaItem
'
const
PlaceOfPublication
=
({
placeOfPublication
})
=>
{
if
(
placeOfPublication
)
{
if
(
placeOfPublication
.
length
>
0
)
{
return
(
<
MetaItem
label
=
{
messages
.
placeOfPublication
}
data
-
automation
-
id
=
"
publication_placeOfPublication
"
>
{
placeOfPublication
}
{
placeOfPublication
.
map
(
p
=>
p
.
prefLabel
).
join
(
"
,
"
)
}
<
/MetaItem
>
)
}
else
{
...
...
@@ -16,7 +16,7 @@ const PlaceOfPublication = ({ placeOfPublication }) => {
}
PlaceOfPublication
.
propTypes
=
{
placeOfPublication
:
PropTypes
.
string
placeOfPublication
:
PropTypes
.
array
}
export
const
messages
=
defineMessages
({
...
...
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