File tree 3 files changed +9
-3
lines changed
pages/backoffice/Document/DocumentForms/DocumentEditor/DocumentForm
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -37,13 +37,18 @@ class DocumentCard extends Component {
37
37
render ( ) {
38
38
const { data } = this . props ;
39
39
const { metadata } = data ;
40
+ const url = FrontSiteRoutes . documentDetailsFor ( metadata . pid ) ;
40
41
return (
41
42
< Overridable id = "DocumentCard.layout" { ...this . props } >
42
43
< Card
43
44
link
44
45
centered
45
46
className = "fs-book-card"
46
- onClick = { ( ) => goTo ( FrontSiteRoutes . documentDetailsFor ( metadata . pid ) ) }
47
+ href = { url }
48
+ onClick = { e => {
49
+ e . preventDefault ( ) ;
50
+ goTo ( url ) ;
51
+ } }
47
52
data-test = { metadata . pid }
48
53
>
49
54
< Card . Meta className = "discrete" > { metadata . document_type } </ Card . Meta >
Original file line number Diff line number Diff line change @@ -40,11 +40,12 @@ class LiteratureTags extends Component {
40
40
41
41
LiteratureTags . propTypes = {
42
42
tags : PropTypes . array ,
43
- isBackOffice : PropTypes . bool . isRequired ,
43
+ isBackOffice : PropTypes . bool ,
44
44
} ;
45
45
46
46
LiteratureTags . defaultProps = {
47
47
tags : [ ] ,
48
+ isBackOffice : true ,
48
49
} ;
49
50
50
51
export default Overridable . component ( 'LiteratureTags' , LiteratureTags ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class DocumentBasicMetadata extends Component {
21
21
< Grid stretched columns = "equal" >
22
22
< Grid . Row className = "no-padding " >
23
23
< Grid . Column width = { 8 } >
24
- < GroupField noBottomMargin widths = "equal" >
24
+ < GroupField widths = "equal" >
25
25
< StringField
26
26
label = "Publication year"
27
27
fieldPath = "publication_year"
You can’t perform that action at this time.
0 commit comments