diff --git a/openlibrary/macros/databarWork.html b/openlibrary/macros/databarWork.html index 692fd93037e..14ba33b694e 100644 --- a/openlibrary/macros/databarWork.html +++ b/openlibrary/macros/databarWork.html @@ -89,7 +89,7 @@

$if isbn_10 and not asin: $ asin = isbn_10 -
+
$:macros.WorldcatLink(isbn=isbn_13 or isbn_10, oclc_numbers=oclc_numbers, referer=page.url(relative=False)) diff --git a/openlibrary/templates/type/edition/view.html b/openlibrary/templates/type/edition/view.html index 9b41f772ba2..c69e27bc2c2 100644 --- a/openlibrary/templates/type/edition/view.html +++ b/openlibrary/templates/type/edition/view.html @@ -262,6 +262,32 @@
+ $ prices = page.key.startswith('/books/') + + $ oclc_numbers = (page.oclc_numbers and page.oclc_numbers[0]) or "" + $ isbn_13 = page.get_isbn13() + $ isbn_10 = page.get_isbn10() + + $ asin = None + $if page.get('identifiers'): + $if page.identifiers.get('amazon'): + $ asin = page.identifiers.amazon[0] + + $if isbn_10 and not asin: + $ asin = isbn_10 +
+
+
+ $:macros.WorldcatLink(isbn=isbn_13 or isbn_10, oclc_numbers=oclc_numbers, referer=page.url(relative=False)) + +
+

$_('Buy this book')

+ $:macros.AffiliateLinks(page, {'isbn': isbn_13, 'asin': asin, 'prices': prices}) +
+
+
+
+ $ seen = set() $if previews and any([len(e.languages) for e in previews]):

diff --git a/static/css/components/read-panel.less b/static/css/components/read-panel.less index a55c86db9ee..7ea8a4cbf78 100644 --- a/static/css/components/read-panel.less +++ b/static/css/components/read-panel.less @@ -13,6 +13,10 @@ font-size: 12px; } +.mobile-vendor { + display: none; +} + .read-options, .Tools .btn-notice { line-height: 1.5em; @@ -122,6 +126,13 @@ .mobile-book-header{ display: inline; } + + .mobile-vendor { + display: inline; + } + .desktop-vendor { + display: none; + } } // For the button at the top @import (less) "components/buttonCta.less";