show isbn for woblink
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 30 Oct 2023 14:31:18 +0000 (15:31 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 30 Oct 2023 14:31:18 +0000 (15:31 +0100)
src/depot/publishers/woblink.py

index 0cd7a89..64eca06 100644 (file)
@@ -332,6 +332,12 @@ class Woblink(BasePublisher):
                 errlist = d['warnings']
             errlist.append(error.as_html())
 
+        if book_data.get('isbn'):
+            d['info'].append(format_html(
+                'ISBN: {isbn}',
+                isbn=book_data['isbn'],
+            ))
+
         if book_data.get('genres'):
             d['info'].append(format_html(
                 'W kategoriach: {cat} ({price} zł)',