diff --git a/bookwyrm/templates/import/import.html b/bookwyrm/templates/import/import.html index 314a6861f..fdeb0e55b 100644 --- a/bookwyrm/templates/import/import.html +++ b/bookwyrm/templates/import/import.html @@ -31,6 +31,9 @@ +
diff --git a/bookwyrm/templates/import/import_status.html b/bookwyrm/templates/import/import_status.html index 9b4379693..b3d209873 100644 --- a/bookwyrm/templates/import/import_status.html +++ b/bookwyrm/templates/import/import_status.html @@ -105,6 +105,11 @@ {% trans "ISBN" %} + {% if job.source == "OpenLibrary" %} + + {% trans "Openlibrary key" %} + + {% endif %} {% trans "Author" %} @@ -145,6 +150,11 @@ {{ item.isbn|default:'' }} + {% if job.source == "OpenLibrary" %} + + {{ item.openlibrary_key }} + + {% endif %} {{ item.normalized_data.authors }} diff --git a/bookwyrm/views/imports/import_data.py b/bookwyrm/views/imports/import_data.py index 80386b3de..6e50a14cc 100644 --- a/bookwyrm/views/imports/import_data.py +++ b/bookwyrm/views/imports/import_data.py @@ -14,6 +14,7 @@ from bookwyrm.importers import ( LibrarythingImporter, GoodreadsImporter, StorygraphImporter, + OpenLibraryImporter, ) # pylint: disable= no-self-use @@ -49,6 +50,8 @@ class Import(View): importer = LibrarythingImporter() elif source == "Storygraph": importer = StorygraphImporter() + elif source == "OpenLibrary": + importer = OpenLibraryImporter() else: # Default : Goodreads importer = GoodreadsImporter()