Skip to content

Commit 93febb1

Browse files
simple entry
1 parent 1eb78a0 commit 93febb1

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

src/components/Publications/Entry/Entry.jsx

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
import Book from './Book'
2-
import Conference from './Conference'
3-
import InCollection from './InCollection'
4-
import InProceedings from './InProceedings'
1+
// import Book from './Book'
2+
// import Conference from './Conference'
3+
// import InCollection from './InCollection'
4+
// import InProceedings from './InProceedings'
55
import Periodical from './Periodical'
6-
import Proceedings from './Proceedings'
7-
import TechReport from './TechReport'
8-
import Thesis from './Thesis'
6+
// import Proceedings from './Proceedings'
7+
// import TechReport from './TechReport'
8+
// import Thesis from './Thesis'
99
import PropTypes from 'prop-types'
1010

1111
const Entry = ({ entry }) => {
12-
switch (entry.type) {
13-
case 'proceedings':
14-
return <Proceedings entry={entry} />
15-
case 'unpublished':
16-
return <Proceedings entry={entry} />
17-
case 'misc':
18-
return <Proceedings entry={entry} />
19-
case 'book':
20-
return <Book entry={entry} />
21-
case 'inbook':
22-
return <InCollection entry={entry} />
23-
case 'incollection':
24-
return <InCollection entry={entry} />
25-
case 'article':
26-
return <Periodical entry={entry} />
27-
case 'conference':
28-
return <Conference entry={entry} />
29-
case 'inproceedings':
30-
return <InProceedings entry={entry} />
31-
case 'phdthesis':
32-
return <Thesis entry={entry} />
33-
case 'mastersthesis':
34-
return <Thesis entry={entry} />
35-
case 'techreport':
36-
return <TechReport entry={entry} />
37-
}
12+
// switch (entry.type) {
13+
// case 'proceedings':
14+
// return <Proceedings entry={entry} />
15+
// case 'unpublished':
16+
// return <Proceedings entry={entry} />
17+
// case 'misc':
18+
// return <Proceedings entry={entry} />
19+
// case 'book':
20+
// return <Book entry={entry} />
21+
// case 'inbook':
22+
// return <InCollection entry={entry} />
23+
// case 'incollection':
24+
// return <InCollection entry={entry} />
25+
// case 'article':
26+
// return <Periodical entry={entry} />
27+
// case 'conference':
28+
// return <Conference entry={entry} />
29+
// case 'inproceedings':
30+
// return <InProceedings entry={entry} />
31+
// case 'phdthesis':
32+
// return <Thesis entry={entry} />
33+
// case 'mastersthesis':
34+
// return <Thesis entry={entry} />
35+
// case 'techreport':
36+
// return <TechReport entry={entry} />
37+
// }
3838
return <Periodical entry={entry} />
3939
}
4040

src/components/Publications/Entry/Periodical.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { asMonth, quoteTitle } from '../../../utils'
1+
// import { asMonth, quoteTitle } from '../../../utils'
22
import Authors from './Authors'
33
import PropTypes from 'prop-types'
44

55
const Periodical = ({ entry }) => (
66
<>
77
<Authors>{entry.author}</Authors>,{' '}
8-
{quoteTitle(entry.title, [entry.journal, entry.volume, entry.number, entry.pages, entry.month, entry.year])}{' '}
9-
{entry.journal && (
8+
{/* {quoteTitle(entry.title, [entry.journal, entry.volume, entry.number, entry.pages, entry.month, entry.year])}{' '} */}
9+
{/* {entry.journal && (
1010
<>
1111
<i>{entry.journal}</i>,{' '}
1212
</>
@@ -16,7 +16,7 @@ const Periodical = ({ entry }) => (
1616
{entry.pages && <>pp. {entry.pages}, </>}
1717
{entry.month && <>{asMonth(entry.month)} </>}
1818
{entry.year && <>{entry.year}</>}
19-
{(entry.journal || entry.volume || entry.number || entry.pages || entry.month || entry.year) && <>.</>}
19+
{(entry.journal || entry.volume || entry.number || entry.pages || entry.month || entry.year) && <>.</>} */}
2020
</>
2121
)
2222

0 commit comments

Comments
 (0)