diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-02-13 19:19:10 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-02-13 19:19:10 +0100 |
| commit | 5c176ce457f195dfad15d0c7d01d36fc2f9fdbdd (patch) | |
| tree | 5b86773170303e86edf54c135b9fb4750cbb3df2 /scraper/client/paper/paper.unknown.js | |
| parent | 83063b97105c7514d71ec2afaaf66def49116214 (diff) | |
possible PDF embed
Diffstat (limited to 'scraper/client/paper/paper.unknown.js')
| -rw-r--r-- | scraper/client/paper/paper.unknown.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scraper/client/paper/paper.unknown.js b/scraper/client/paper/paper.unknown.js index 7a20f398..0cb7d2da 100644 --- a/scraper/client/paper/paper.unknown.js +++ b/scraper/client/paper/paper.unknown.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' +import { Link } from 'react-router-dom' import * as actions from '../actions' @@ -20,7 +21,7 @@ class PaperUnknown extends Component { let cite = { ...citation } cite.id = { _raw: true, - value: <a href={'/api/address/' + dataset.key + '/' + citation.id}>{citation.id}</a> + value: <Link to={'/paper/' + dataset.key + '/address/' + citation.id}>{citation.id}</Link> } cite.pdf = { _raw: true, @@ -41,7 +42,6 @@ class PaperUnknown extends Component { ) } } - // order={['id', 'pdf', 'year']} const mapStateToProps = state => ({ api: state.api |
