Skip to content

Commit b1485f4

Browse files
committed
Added navigator view citation
1 parent df7d5ed commit b1485f4

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Eplant/views/NavigatorViewer/index.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22

33
import GeneticElement from '@eplant/GeneticElement';
4+
import { getCitation } from '@eplant/util/citations';
45
import { View } from '@eplant/View';
56

67
import { createViewSwitchProvider } from '../ViewGeneSwitching';
@@ -46,6 +47,36 @@ const NavigatorView: View = {
4647
},
4748
id: 'navigator-view',
4849
icon: () => <NavigatorIcon />,
50+
51+
citation({ gene }) {
52+
const citation = getCitation("Navigator viewer") as { [key: string]: string };
53+
54+
return (
55+
<div>
56+
{citation.source && (
57+
<p>
58+
{citation.source}
59+
</p>
60+
)}
61+
{/* Waese et al. 2017 + Creative Commons License */}
62+
<p>
63+
This image was generated with the Navigator viewer at{" "}
64+
<a href="https://bar.utoronto.ca/eplant" target="_blank" rel="noopener noreferrer">
65+
bar.utoronto.ca/eplant
66+
</a>{" "}
67+
by Waese et al. 2017.
68+
</p>
69+
70+
<a href="http://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">
71+
<img
72+
alt="Creative Commons License"
73+
src="https://i.creativecommons.org/l/by/4.0/80x15.png"
74+
title="The ePlant output for your gene of interest is available under a Creative Commons Attribution 4.0 International License and may be freely used in publications etc."
75+
/>
76+
</a>
77+
</div>
78+
);
79+
}
4980
};
5081

5182
export default NavigatorView;

0 commit comments

Comments
 (0)