=== modified file 'sites/all/themes/bluecheese/styles/styles.css'
--- sites/all/themes/bluecheese/styles/styles.css	2012-08-30 22:14:09 +0000
+++ sites/all/themes/bluecheese/styles/styles.css	2012-10-03 18:40:43 +0000
@@ -2537,6 +2537,29 @@
   text-decoration: none;
 }
 
+/**
+ * Book listings
+ */
+
+.view-book-listings .views-row {
+   margin-bottom: 2.077em;
+}
+ 
+.view-book-listings .views-field-field-cover-image-fid {
+  float: right;
+}
+
+.view-book-listings label {
+  font-weight:  bold;
+}
+
+.view-book-listings p {
+  margin-bottom: 0em;
+}
+
+.view-book-listings .view-filters {
+  margin-bottom: 2.077em;
+}
 
 /**
  * Groups.drupal.org events page styles

=== modified file 'sites/all/themes/bluecheese/template.php'
--- sites/all/themes/bluecheese/template.php	2012-05-15 00:58:06 +0000
+++ sites/all/themes/bluecheese/template.php	2012-09-21 19:34:43 +0000
@@ -700,3 +700,31 @@
 
   return $output;
 }
+
+/**
+ * Implementation of template_preprocess_content_field().
+ *
+ * Turn ISBN-10 field into affiliate link to purchase from Amazon.
+ * Rewrite or unset Packt purchase link (unset if not to packtpub.com)
+ */
+function bluecheese_preprocess_content_field(&$variables){
+  if ($variables['field_name'] == 'field_book_isbn_10') {
+    $amazon_link = '<a class="amazon-link" '
+      . ' title="Ordering via this link benefits the Drupal Association"'
+      . ' href="http://www.amazon.com/dp/' . $variables['items'][0]['view']
+      . '/?tag=drupal0a-20" rel="nofollow">Order from Amazon.com</a>';
+    $variables['items'][0]['view'] = $amazon_link;
+  }
+  if ($variables['field_name'] == 'field_book_purchase_link') {
+    if (!strpos($variables['items'][0]['url'], 'packtpub')) {
+      unset($variables['items'][0]['view']);
+    }
+    else {
+      $packt_link = '<a class="packt-link" '
+        . ' title="Ordering via this link benefits the Drupal Association"'
+        . ' href="' . $variables['items'][0]['url'] . '" rel="nofollow">'
+        . 'Order from Packt</a>';
+      $variables['items'][0]['view'] = $packt_link;      
+    }
+  }
+}

