Skip to content

Commit

Permalink
consolidating vendors back to core group
Browse files Browse the repository at this point in the history
consolidating vendors internetarchive#3069
  • Loading branch information
mekarpeles authored and Sabreen-Parveen committed Feb 5, 2021
1 parent 8b0d7ce commit e4f7544
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions openlibrary/macros/AffiliateLinks.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
'link': 'https://www.amazon.com/dp/%s/?tag=%s' % (asin or isbn, affiliate_id('amazon')),
} if (asin or isbn) else None

bookshop = {
'key': 'bookshop-org',
'analytics_key': 'BookshopOrg',
'name': _('Bookshop.org'),
'link': 'https://bookshop.org/a/%s/%s' % (affiliate_id('bookshop-org'), isbn),
} if isbn else None

# Fetch price data
if not is_bot() and prices and isbn:
bwb_metadata = get_betterworldbooks_metadata(isbn)
Expand All @@ -40,7 +33,7 @@
amz_metadata = get_amazon_metadata(isbn, resources='prices')
amazon['price'] = amz_metadata and amz_metadata.get('price')

stores = [store for store in [bwb, amazon, bookshop] if store]
stores = [store for store in [bwb, amazon] if store]

$def affiliate_link(key, analytics_key, name, link, price='', price_note=''):
<li class="prices-$key">
Expand Down

0 comments on commit e4f7544

Please sign in to comment.