New: Search for new editions from goodreads when identifying

This commit is contained in:
ta264
2021-03-31 21:20:32 +01:00
parent c1f2ea6c8a
commit 41f5f0f2d4
19 changed files with 149 additions and 95 deletions

View File

@@ -64,7 +64,7 @@ class SelectBookModalContentConnector extends Component {
this.props.updateInteractiveImportItem({
id,
book,
editionId: undefined,
foreignEditionId: undefined,
rejections: []
});
});

View File

@@ -34,8 +34,6 @@ class SelectBookRow extends Component {
render() {
const {
title,
disambiguation,
bookType,
releaseDate,
statistics,
monitored,
@@ -48,8 +46,6 @@ class SelectBookRow extends Component {
totalBookCount
} = statistics;
const extendedTitle = disambiguation ? `${title} (${disambiguation})` : title;
return (
<TableRow
onClick={this.onPress}
@@ -69,15 +65,7 @@ class SelectBookRow extends Component {
if (name === 'title') {
return (
<TableRowCell key={name}>
{extendedTitle}
</TableRowCell>
);
}
if (name === 'bookType') {
return (
<TableRowCell key={name}>
{bookType}
{title}
</TableRowCell>
);
}
@@ -121,8 +109,6 @@ class SelectBookRow extends Component {
SelectBookRow.propTypes = {
id: PropTypes.number.isRequired,
title: PropTypes.string.isRequired,
disambiguation: PropTypes.string.isRequired,
bookType: PropTypes.string.isRequired,
releaseDate: PropTypes.string.isRequired,
onBookSelect: PropTypes.func.isRequired,
statistics: PropTypes.object.isRequired,