@eeacms/volto-citation 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -3
- package/README.md +4 -2
- package/package.json +1 -2
- package/src/{components/Citation → Citation}/Citation.jsx +44 -21
- package/src/Citation/CitationSidebar.jsx +41 -0
- package/src/Citation/Edit.jsx +28 -0
- package/src/Citation/View.jsx +17 -0
- package/src/{components → Citation}/index.js +2 -2
- package/src/{components/Citation → Citation}/styles.less +42 -17
- package/src/index.js +7 -13
- package/src/schema.js +88 -0
- package/src/components/Citation/Edit.jsx +0 -7
- package/src/components/Citation/View.jsx +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
### Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
|
+
|
|
7
|
+
### [0.1.2](https://github.com/eea/volto-citation/compare/0.1.1...0.1.2) - 25 July 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Update package.json [dobri1408 - [`7a01616`](https://github.com/eea/volto-citation/commit/7a01616b4470bd90ffc2f79ee2fd853d7fc513ed)]
|
|
12
|
+
### [0.1.1](https://github.com/eea/volto-citation/compare/0.1.0...0.1.1) - 25 July 2023
|
|
13
|
+
|
|
14
|
+
#### :hammer_and_wrench: Others
|
|
15
|
+
|
|
16
|
+
- small fixes [Dobricean Ioan Dorian - [`b4afc0e`](https://github.com/eea/volto-citation/commit/b4afc0e3d561a2e92da136ec835140847d313c02)]
|
|
17
|
+
- tests and lint [Dobricean Ioan Dorian - [`eb90d2a`](https://github.com/eea/volto-citation/commit/eb90d2afd8fc210e62faab2dbcc063564a205dcf)]
|
|
18
|
+
- Update README.md [dobri1408 - [`94bb499`](https://github.com/eea/volto-citation/commit/94bb49936791f41860ef2829e0223e125d04469b)]
|
|
19
|
+
- update [Dobricean Ioan Dorian - [`b95f01f`](https://github.com/eea/volto-citation/commit/b95f01fb06513859c2960dc67f7fb8135d10eaf8)]
|
|
20
|
+
- add edit & sidebar [Dobricean Ioan Dorian - [`8b2dd9d`](https://github.com/eea/volto-citation/commit/8b2dd9d1ca701321bfe4ed32e58e86746874c551)]
|
|
21
|
+
### 0.1.0 - 17 July 2023
|
|
22
|
+
|
|
23
|
+
#### :hammer_and_wrench: Others
|
|
24
|
+
|
|
25
|
+
- first component [Dobricean Ioan Dorian - [`87a9513`](https://github.com/eea/volto-citation/commit/87a951353839226823eb2f29d2ff365de455c758)]
|
|
26
|
+
- Initial commit [dobri1408 - [`36751c9`](https://github.com/eea/volto-citation/commit/36751c9a84331be5f5bdbc3c3c9010c453aa8c85)]
|
package/README.md
CHANGED
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-citation-develop)
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
[Volto](https://github.com/plone/volto) add-on
|
|
18
|
+
[Volto](https://github.com/plone/volto) Citation add-on
|
|
19
19
|
|
|
20
20
|
## Features
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+

|
|
23
|
+
|
|
24
|
+
Volto Citation shows users how to cite an article. It supports four types of citation: HTML, TEXT, RIS and BibTeX. On top of that you can copy the citation by pressing on the copy button
|
|
23
25
|
|
|
24
26
|
## Getting started
|
|
25
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-citation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "@eeacms/volto-citation: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@citation-js/plugin-ris": "^0.6.8",
|
|
21
|
-
"@citation-js/plugin-wikipedia-templates": "0.1.0",
|
|
22
21
|
"citation-js": "^0.6.8"
|
|
23
22
|
},
|
|
24
23
|
"devDependencies": {
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import './styles.less';
|
|
3
|
-
import { Menu
|
|
3
|
+
import { Menu } from 'semantic-ui-react';
|
|
4
4
|
import { useCopyToClipboard } from '@eeacms/volto-citation/helpers';
|
|
5
|
+
import copySVG from '@plone/volto/icons/copy.svg';
|
|
6
|
+
import checkSVG from '@plone/volto/icons/check.svg';
|
|
7
|
+
import { Icon } from '@plone/volto/components';
|
|
8
|
+
|
|
5
9
|
import Cite from 'citation-js';
|
|
6
10
|
|
|
7
|
-
const CopyUrlButton = ({ citation
|
|
11
|
+
const CopyUrlButton = ({ citation }) => {
|
|
8
12
|
const [copyUrlStatus, copyUrl] = useCopyToClipboard(citation);
|
|
13
|
+
const [icon, setIcon] = useState(copySVG);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
if (copyUrlStatus === 'copied') {
|
|
16
|
+
setIcon(checkSVG);
|
|
17
|
+
setTimeout(() => {
|
|
18
|
+
setIcon(copySVG);
|
|
19
|
+
}, [5000]);
|
|
20
|
+
}
|
|
21
|
+
}, [copyUrlStatus]);
|
|
9
22
|
|
|
10
|
-
|
|
11
|
-
buttonText = 'Copied!';
|
|
12
|
-
} else if (copyUrlStatus === 'failed') {
|
|
13
|
-
buttonText = 'Copy failed. Please try again.';
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Button primary onClick={copyUrl} className="copy-button">
|
|
18
|
-
{buttonText}
|
|
19
|
-
</Button>
|
|
20
|
-
);
|
|
23
|
+
return <Icon className="citation-copy" name={icon} onClick={copyUrl} />;
|
|
21
24
|
};
|
|
22
25
|
|
|
23
|
-
function Citation({ title,
|
|
26
|
+
function Citation({ title, authors, link, type = 'article', year, mode }) {
|
|
24
27
|
const [format, setFormat] = useState('bibliography');
|
|
25
28
|
const [subFormat, setSubFormat] = useState('html');
|
|
26
29
|
const [citation, setCitation] = useState();
|
|
@@ -29,21 +32,28 @@ function Citation({ title, author, link, type = 'article', year }) {
|
|
|
29
32
|
let citation = new Cite({
|
|
30
33
|
title: title,
|
|
31
34
|
type: type,
|
|
32
|
-
author:
|
|
35
|
+
author: authors,
|
|
33
36
|
issued: { 'date-parts': [[year]] },
|
|
34
37
|
URL: link,
|
|
35
38
|
});
|
|
36
39
|
let output = citation.format(format, {
|
|
37
40
|
format: subFormat,
|
|
38
41
|
template: 'apa',
|
|
39
|
-
lang: 'en-US',
|
|
40
42
|
});
|
|
41
43
|
setCitation(output);
|
|
42
44
|
if (subFormat === 'html')
|
|
43
45
|
setCitation(
|
|
44
|
-
`<blockquote> <p>(${year}).</p> <p>${title}</p> <
|
|
46
|
+
`<blockquote> <p>(${year}).</p> <p>${title}</p> <p>
|
|
47
|
+
${authors.map((author, index) => {
|
|
48
|
+
let separator = '';
|
|
49
|
+
if (index < authors.length - 1) separator = ' , ';
|
|
50
|
+
return (
|
|
51
|
+
author?.family + ' ' + author.given?.charAt(0) + '.' + separator
|
|
52
|
+
);
|
|
53
|
+
})}
|
|
54
|
+
</p> <a href=${link}>${link}</a> </blockquote>`,
|
|
45
55
|
);
|
|
46
|
-
}, [
|
|
56
|
+
}, [authors, format, year, link, subFormat, title, type]);
|
|
47
57
|
|
|
48
58
|
const handleChangeFormat = (format, subformat) => {
|
|
49
59
|
setFormat(format);
|
|
@@ -93,7 +103,7 @@ function Citation({ title, author, link, type = 'article', year }) {
|
|
|
93
103
|
</Menu.Item>
|
|
94
104
|
<Menu.Menu position="right">
|
|
95
105
|
<Menu.Item>
|
|
96
|
-
<CopyUrlButton citation={citation}
|
|
106
|
+
<CopyUrlButton citation={citation} />
|
|
97
107
|
</Menu.Item>
|
|
98
108
|
</Menu.Menu>
|
|
99
109
|
</Menu>
|
|
@@ -103,7 +113,20 @@ function Citation({ title, author, link, type = 'article', year }) {
|
|
|
103
113
|
<blockquote>
|
|
104
114
|
<p>({year}).</p>
|
|
105
115
|
<p>{title}</p>
|
|
106
|
-
<
|
|
116
|
+
<p>
|
|
117
|
+
{authors.map((author, index) => {
|
|
118
|
+
let separator = '';
|
|
119
|
+
if (index < authors.length - 1) separator = ' , ';
|
|
120
|
+
return (
|
|
121
|
+
(author?.family || '') +
|
|
122
|
+
' ' +
|
|
123
|
+
(author.given?.charAt(0) || '') +
|
|
124
|
+
'.' +
|
|
125
|
+
separator
|
|
126
|
+
);
|
|
127
|
+
})}
|
|
128
|
+
</p>
|
|
129
|
+
{mode === 'edit' ? <p>{link}</p> : <a href={link}>{link}</a>}
|
|
107
130
|
</blockquote>
|
|
108
131
|
)}
|
|
109
132
|
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CitationBlockSchema } from '../schema';
|
|
3
|
+
import { BlockDataForm } from '@plone/volto/components';
|
|
4
|
+
import { defineMessages, useIntl } from 'react-intl';
|
|
5
|
+
|
|
6
|
+
const messages = defineMessages({
|
|
7
|
+
Citation: {
|
|
8
|
+
id: 'Citation',
|
|
9
|
+
defaultMessage: 'Citation',
|
|
10
|
+
},
|
|
11
|
+
NoCitation: {
|
|
12
|
+
id: 'No Citation selected',
|
|
13
|
+
defaultMessage: 'No Citation selected',
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const CitationSidebar = (props) => {
|
|
18
|
+
const { data, block, onChangeBlock } = props;
|
|
19
|
+
const intl = useIntl();
|
|
20
|
+
const schema = CitationBlockSchema({ ...props, intl });
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
<BlockDataForm
|
|
25
|
+
schema={schema}
|
|
26
|
+
title={intl.formatMessage(messages.Citation)}
|
|
27
|
+
onChangeField={(id, value) => {
|
|
28
|
+
onChangeBlock(block, {
|
|
29
|
+
...data,
|
|
30
|
+
[id]: value,
|
|
31
|
+
});
|
|
32
|
+
}}
|
|
33
|
+
onChangeBlock={onChangeBlock}
|
|
34
|
+
formData={data}
|
|
35
|
+
block={block}
|
|
36
|
+
/>
|
|
37
|
+
</>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default CitationSidebar;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Citation from './Citation';
|
|
3
|
+
import { SidebarPortal } from '@plone/volto/components';
|
|
4
|
+
import CitationSidebar from './CitationSidebar';
|
|
5
|
+
function CitationBlockEdit(props) {
|
|
6
|
+
const { data, block, onChangeBlock, selected } = props;
|
|
7
|
+
|
|
8
|
+
return (
|
|
9
|
+
<div>
|
|
10
|
+
<Citation
|
|
11
|
+
title={data?.title || ''}
|
|
12
|
+
authors={data.author || []}
|
|
13
|
+
link={data.url || ''}
|
|
14
|
+
year={data.year ?? 'n.d.'}
|
|
15
|
+
mode={'edit'}
|
|
16
|
+
/>
|
|
17
|
+
<SidebarPortal selected={selected}>
|
|
18
|
+
<CitationSidebar
|
|
19
|
+
data={data}
|
|
20
|
+
block={block}
|
|
21
|
+
onChangeBlock={onChangeBlock}
|
|
22
|
+
/>
|
|
23
|
+
</SidebarPortal>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default CitationBlockEdit;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Citation from './Citation';
|
|
3
|
+
|
|
4
|
+
function CitationBlockView({ data }) {
|
|
5
|
+
return (
|
|
6
|
+
<div>
|
|
7
|
+
<Citation
|
|
8
|
+
title={data?.title || ''}
|
|
9
|
+
authors={data.author || []}
|
|
10
|
+
link={data.url || ''}
|
|
11
|
+
year={data.year ?? 'n.d.'}
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default CitationBlockView;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as CitationBlockEdit } from '@eeacms/volto-citation/
|
|
2
|
-
export { default as CitationBlockView } from '@eeacms/volto-citation/
|
|
1
|
+
export { default as CitationBlockEdit } from '@eeacms/volto-citation/Citation/Edit';
|
|
2
|
+
export { default as CitationBlockView } from '@eeacms/volto-citation/Citation/View';
|
|
@@ -1,40 +1,48 @@
|
|
|
1
|
+
@secondaryColor: #007b6c;
|
|
2
|
+
|
|
1
3
|
.citation-block {
|
|
4
|
+
.citation-copy:hover {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
pre {
|
|
3
9
|
display: block;
|
|
10
|
+
overflow: scroll;
|
|
4
11
|
padding: 9.5px;
|
|
12
|
+
border: 1px solid #ccc;
|
|
5
13
|
margin: 0 0 10px;
|
|
14
|
+
background-color: #f5f5f5;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
color: #333333;
|
|
6
17
|
font-size: 13px;
|
|
7
18
|
line-height: 1.428571429;
|
|
8
|
-
color: #333333;
|
|
9
19
|
word-break: break-all;
|
|
10
|
-
overflow: scroll;
|
|
11
20
|
word-wrap: break-word;
|
|
12
|
-
background-color: #f5f5f5;
|
|
13
|
-
border: 1px solid #ccc;
|
|
14
|
-
border-radius: 4px;
|
|
15
21
|
}
|
|
22
|
+
|
|
16
23
|
blockquote {
|
|
17
|
-
|
|
24
|
+
position: relative;
|
|
18
25
|
width: 60%;
|
|
26
|
+
padding: 1.2em 30px 1.2em 75px;
|
|
27
|
+
border-left: 8px solid @secondaryColor;
|
|
19
28
|
margin: 50px auto;
|
|
29
|
+
background: #ededed;
|
|
30
|
+
color: #555555;
|
|
20
31
|
font-family: Open Sans;
|
|
32
|
+
font-size: 1.4em;
|
|
21
33
|
font-style: italic;
|
|
22
|
-
color: #555555;
|
|
23
|
-
padding: 1.2em 30px 1.2em 75px;
|
|
24
|
-
border-left: 8px solid #78c0a8;
|
|
25
34
|
line-height: 1.6;
|
|
26
|
-
|
|
27
|
-
background: #ededed;
|
|
35
|
+
word-break: break-all;
|
|
28
36
|
}
|
|
29
37
|
|
|
30
38
|
blockquote::before {
|
|
31
|
-
font-family: Arial;
|
|
32
|
-
content: '\201C';
|
|
33
|
-
color: #78c0a8;
|
|
34
|
-
font-size: 4em;
|
|
35
39
|
position: absolute;
|
|
36
|
-
left: 10px;
|
|
37
40
|
top: -10px;
|
|
41
|
+
left: 10px;
|
|
42
|
+
color: @secondaryColor;
|
|
43
|
+
content: '\201C';
|
|
44
|
+
font-family: Arial;
|
|
45
|
+
font-size: 4em;
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
blockquote::after {
|
|
@@ -43,9 +51,26 @@
|
|
|
43
51
|
|
|
44
52
|
blockquote span {
|
|
45
53
|
display: block;
|
|
54
|
+
margin-top: 1em;
|
|
46
55
|
color: #333333;
|
|
47
56
|
font-style: normal;
|
|
48
57
|
font-weight: bold;
|
|
49
|
-
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media only screen and (max-width: 768px) {
|
|
61
|
+
blockquote {
|
|
62
|
+
width: 100%;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.right {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
margin-left: unset !important;
|
|
70
|
+
|
|
71
|
+
::before {
|
|
72
|
+
width: 0 !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
50
75
|
}
|
|
51
76
|
}
|
package/src/index.js
CHANGED
|
@@ -1,25 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { CitationBlockEdit, CitationBlockView } from './
|
|
3
|
-
import
|
|
4
|
-
import leftSVG from '@plone/volto/icons/left-key.svg';
|
|
5
|
-
import downSVG from '@plone/volto/icons/down-key.svg';
|
|
1
|
+
import citationSVG from '@plone/volto/icons/binder.svg';
|
|
2
|
+
import { CitationBlockEdit, CitationBlockView } from './Citation';
|
|
3
|
+
import { CitationBlockSchema } from './schema';
|
|
6
4
|
|
|
7
5
|
const applyConfig = (config) => {
|
|
8
6
|
config.blocks.blocksConfig.citation = {
|
|
7
|
+
...config.blocks.blocksConfig.citation,
|
|
9
8
|
id: 'citation',
|
|
10
9
|
title: 'Citation',
|
|
11
|
-
icon:
|
|
12
|
-
group: 'common',
|
|
13
|
-
titleIcons: {
|
|
14
|
-
closed: { leftPosition: rightSVG, rightPosition: leftSVG },
|
|
15
|
-
opened: { leftPosition: downSVG, rightPosition: downSVG },
|
|
16
|
-
size: '24px',
|
|
17
|
-
},
|
|
10
|
+
icon: citationSVG,
|
|
18
11
|
view: CitationBlockView,
|
|
19
12
|
edit: CitationBlockEdit,
|
|
13
|
+
schema: CitationBlockSchema,
|
|
20
14
|
restricted: false,
|
|
21
15
|
mostUsed: false,
|
|
22
|
-
blockHasOwnFocusManagement:
|
|
16
|
+
blockHasOwnFocusManagement: false,
|
|
23
17
|
sidebarTab: 1,
|
|
24
18
|
options: {
|
|
25
19
|
styled: true,
|
package/src/schema.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
|
+
|
|
3
|
+
const messages = defineMessages({
|
|
4
|
+
Citation: {
|
|
5
|
+
id: 'Citation',
|
|
6
|
+
defaultMessage: 'Citation',
|
|
7
|
+
},
|
|
8
|
+
CitationUrl: {
|
|
9
|
+
id: 'URL',
|
|
10
|
+
defaultMessage: 'URL',
|
|
11
|
+
},
|
|
12
|
+
Year: {
|
|
13
|
+
id: 'year',
|
|
14
|
+
defaultMessage: 'Year',
|
|
15
|
+
},
|
|
16
|
+
Title: {
|
|
17
|
+
id: 'title',
|
|
18
|
+
defaultMessage: 'Title',
|
|
19
|
+
},
|
|
20
|
+
Author: {
|
|
21
|
+
id: 'author',
|
|
22
|
+
defaultMessage: 'Author',
|
|
23
|
+
},
|
|
24
|
+
Given: {
|
|
25
|
+
id: 'given',
|
|
26
|
+
defaultMessage: 'Given',
|
|
27
|
+
},
|
|
28
|
+
Family: {
|
|
29
|
+
id: 'family',
|
|
30
|
+
defaultMessage: 'Family',
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export const CitationBlockSchema = (props) => {
|
|
35
|
+
const authorSchema = {
|
|
36
|
+
title: props.intl.formatMessage(messages.Author),
|
|
37
|
+
fieldsets: [
|
|
38
|
+
{
|
|
39
|
+
id: 'default',
|
|
40
|
+
title: 'Default',
|
|
41
|
+
fields: ['given', 'family'],
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
properties: {
|
|
45
|
+
given: {
|
|
46
|
+
title: props.intl.formatMessage(messages.Given),
|
|
47
|
+
widget: 'default',
|
|
48
|
+
},
|
|
49
|
+
family: {
|
|
50
|
+
title: props.intl.formatMessage(messages.Family),
|
|
51
|
+
widget: 'default',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
required: [],
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
title: props.intl.formatMessage(messages.Citation),
|
|
58
|
+
block: 'citation',
|
|
59
|
+
fieldsets: [
|
|
60
|
+
{
|
|
61
|
+
id: 'default',
|
|
62
|
+
title: 'Default',
|
|
63
|
+
fields: ['url', 'year', 'title', 'author'],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
|
|
67
|
+
properties: {
|
|
68
|
+
url: {
|
|
69
|
+
title: props.intl.formatMessage(messages.CitationUrl),
|
|
70
|
+
widget: 'url',
|
|
71
|
+
},
|
|
72
|
+
year: {
|
|
73
|
+
title: props.intl.formatMessage(messages.Year),
|
|
74
|
+
widget: 'default',
|
|
75
|
+
},
|
|
76
|
+
title: {
|
|
77
|
+
title: props.intl.formatMessage(messages.Title),
|
|
78
|
+
widget: 'default',
|
|
79
|
+
},
|
|
80
|
+
author: {
|
|
81
|
+
title: props.intl.formatMessage(messages.Author),
|
|
82
|
+
widget: 'object_list',
|
|
83
|
+
schema: authorSchema,
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
required: [],
|
|
87
|
+
};
|
|
88
|
+
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Citation from './Citation';
|
|
3
|
-
|
|
4
|
-
function CitationBlockView() {
|
|
5
|
-
return (
|
|
6
|
-
<div>
|
|
7
|
-
<Citation
|
|
8
|
-
title="Formatarea bernouli"
|
|
9
|
-
authors={[{ given: 'Alexandru', family: 'Ardeleanu' }]}
|
|
10
|
-
link="google.com"
|
|
11
|
-
year={1939}
|
|
12
|
-
/>
|
|
13
|
-
</div>
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default CitationBlockView;
|