diff --git a/INSTALL.txt b/INSTALL.txt
index e119dd9..07dde23 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -10,4 +10,4 @@ Book Post Module intallation instructions
     check box for Book Post.
 
 This module requires the JSON and cURL PHP libraries.  These are
-compiled by default with PHP 5.2.    
+compiled by default with PHP 5.2.    
\ No newline at end of file
diff --git a/README.txt b/README.txt
index ff16cf0..8c29ccb 100644
--- a/README.txt
+++ b/README.txt
@@ -8,4 +8,3 @@ data comes from the Open Library Project, http://openlibrary.org.
 
 Author:
 Aaron Rubinstein
-
diff --git a/bookpost.info b/bookpost.info
index 6f59c2d..3c54d39 100644
--- a/bookpost.info
+++ b/bookpost.info
@@ -1,4 +1,5 @@
-name = "Book Post Filter"
-description = "Returns Book Info and Cover for ISBN or Open Library ID"
-core = 6.x
-php = 5.2
+name = Book Post Filter
+description = Returns Book Info and Cover for ISBN or Open Library ID
+core = 7.x
+project = "bookpostfilter"
+files[] = bookpost.module
\ No newline at end of file
diff --git a/bookpost.module b/bookpost.module
index fac383b..6b85df7 100644
--- a/bookpost.module
+++ b/bookpost.module
@@ -2,242 +2,425 @@
 
 /**
  * @file
- * Aaron Rubinstein
+ *
+ * 6.0 Aaron Rubinstein
+ * 7.0 updates by Darrell Ulm
+ *
  * Module for collecting book information and covers from the Open Library.
  * This modules filters ISBN's or OpenLibrary IDs supplied by users inside two
- * curly braces {{}} and returns book information and 
+ * curly braces {{}} and returns book information and
  * covers if available from the Open Library.
+ *
+ * As much data is returned as is possible in version 7.0 by traversing
+ * the JSON bibliographic data returned from OpenLibrary.
+ *
  * Based on John Miedema's OpenBook plugin for Wordpress
  * @see http://wordpress.org/extend/plugins/openbook-book-data/
  * @see http://openlibrary.org
  */
 
-//Implementation of hook_filter_tips
-function bookpost_filter_tips($delta, $format, $long = FALSE) {
-  switch($delta) {
-    case 0:
-      if ($long) {
-        return t('Placing an 10 or 13-digit ISBN or Open Library ID between curly braces, {{0312305389}}, will return book information and cover from the Open Library');
-      }
-      else {
-        return t('An ISBN or Open Library ID between curly braces {{}} will return book info and cover');
-      }
-      break;
+/**
+ * Implements filter_bookpost_tips($filter, $format, $long = FALSE)
+ *
+ * Filter tips callback function for $filters[0] in hook_filter_info().
+ */
+function filter_bookpost_tips($filter, $format, $long = FALSE) {
+  if ($long) {
+    return t('Placing an 10 or 13-digit ISBN or Open Library ID between curly braces, {{0312305389}}, will return book information and cover from the Open Library');
   }
 }
- 
-//Implementation of hook_filter
-function bookpost_filter($op, $delta = 0, $format = -1, $text ='') {
-  switch ($op) {
-    case 'list':
-      return array(0 => t('Book Post Filter'));
-
-    case 'description':
-      return t('Replaces ISBN or Open Library ID, e.g. {{0738531367}}, {{OL1880549M}}, with book information and cover');
 
-    case 'no cache':
-      return TRUE;
+/**
+ * Implements hook_filter_info().
+ */
+function bookpost_filter_info() {
+  $filters['bookpost'] = array(
+    'title' => t('Book Post'),
+    'description' => t('Convert Book Information'),
+    'process callback' => 'bookpost_filter_process',
+    'settings callback' => 'bookpost_filter_settings',
+    'default settings' => array(
+      'worldcat' => 1,
+      'googlebooks' =>  1,
+      'librarything' => 1,
+    ),
+    'tips callback' => 'bookpost_filter_tips',
+  );
+  return $filters;
+}
 
-    case 'prepare':
-      return $text;
 
-    case 'process':
+/**
+ * Implements bookpost_filter_process($text, $filter, $format, $langcode, $cache, $cache_id)
+ */
+function bookpost_filter_process($text, $filter, $format, $langcode, $cache, $cache_id) {
       preg_match_all('/{{(.*)}}/', $text, $match);
       $tag = $match[0];
       $book = array();
-      $counter=0;
-      for($i=0;$i<count($match[1]);$i++) {
-        $book[$counter] = retrieve_bookdata($match[1][$i]);
+      $counter = 0;
+      for ($i = 0; $i < count($match[1]); $i++) {
+        $book[$counter] = bookpost_retrieve_bookdata($match[1][$i], $filter->settings['worldcat'], $filter->settings['librarything'],
+                $filter->settings['googlebooks'], $filter->settings['bib_fields'] );
         $counter++;
-      }  
-      $text = str_replace($tag, $book, $text);  
+      }
+      $text = str_replace($tag, $book, $text);
       return $text;
+}
+
+/**
+ * Implements ($form, &$form_state, $filter, $format, $defaults, $filters)
+ */
+function bookpost_filter_settings($form, &$form_state, $filter, $format, $defaults, $filters) {
 
-    case 'settings':
-      $form['bookpost_filter'] = array(
+      $settings['bookpost'] = array(
         '#type' => 'fieldset',
         '#title' => t('Book Post Filter'),
         '#collapsible' => TRUE,
         '#collapsed' => FALSE,
       );
-      $form['bookpost_filter']['worldcat'] = array(
+      $settings['bib_fields'] = array(
+      '#type' => 'select',
+      '#multiple' => TRUE,
+      '#title' => 'Biblio Fields to Use',
+      '#required' => TRUE,
+      '#options' => bookpost_bib_field_array(),
+      '#default_value' => isset($filter->settings['bib_fields']) ? $filter->settings['bib_fields'] : $defaults['bib_fields'],
+      );
+      $settings['worldcat'] = array(
         '#type' => 'checkbox',
         '#title' => t('Link to WorldCat'),
-        '#default_value' => variable_get('worldcat', 0),
+        '#default_value' => isset($filter->settings['worldcat']) ? $filter->settings['worldcat'] : $defaults['worldcat'],
       );
-      $form['bookpost_filter']['librarything'] = array(
+      $settings['librarything'] = array(
         '#type' => 'checkbox',
         '#title' => t('Link to LibraryThing'),
-        '#default_value' => variable_get('librarything', 0),
+        '#default_value' => isset($filter->settings['librarything']) ? $filter->settings['librarything'] : $defaults['librarything'],
       );
-      $form['bookpost_filter']['googlebooks'] = array(
+      $settings['googlebooks'] = array(
         '#type' => 'checkbox',
         '#title' => t('Link to Google Book Search'),
-        '#default_value' => variable_get('googlebooks', 0),
+        '#default_value' => isset($filter->settings['googlebooks']) ? $filter->settings['googlebooks'] : $defaults['googlebooks'],
       );
-      return $form;
+      return $settings;
+}
+
+
+/**
+ * Implements bookpost_get_url_contents($url, $curltimeout)
+ */
+function bookpost_get_url_contents($url, $curltimeout) {
+
+  // Establish a cURL handle.
+  $ch = curl_init($url);
+
+  // Set our options
+  curl_setopt($ch, CURLOPT_HEADER, FALSE); //false=do not include headers
+  curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); //true=return as string
+  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $curltimeout); //timeout for when OL is down
+  curl_setopt($ch, CURLOPT_TIMEOUT, $curltimeout); //timeout for when OL is down
+
+  // Execute the request
+  $output = curl_exec($ch);
+
+  // Close the cURL session.
+  curl_close($ch);
+
+  if ($output == "") {
+    throw new Exception("Open Library Data Unavailable");
   }
+  return $output;
 }
- 
-function retrieve_bookdata($id) {
-  if(preg_match('/^OL/', $id)) {
-    $bookkey = '/b/'.$id;
-  } 
-  else { 
-    $isbn = $id;
-  
-    //clean ISBN of dashes and spaces
-    $isbn = str_replace("-", "", $isbn);
-    $isbn = str_replace("-", "", $isbn);
-    
-    $path = drupal_get_path('module', 'bookpost');    
-    //link to WorldCat, LibraryThing, and Google books if selected
-    if(variable_get('worldcat', 0)) {
-      $worldcat = '<a href="http://worldcat.org/isbn/' . $isbn . '">Find on WorldCat</a><p />';
+
+
+/*
+ *  Implements bookpost_retrieve_bookdata($id, $worldcat_op, $librarything_op, $googlebooks_op, $bib_field_select)
+ *
+ *  Gets the book data from open library / other sites and then displays it.
+ *  $id is an openlibrary book code or ISBN
+ */
+function bookpost_retrieve_bookdata($id, $worldcat_op, $librarything_op, $googlebooks_op, $bib_field_select) {
+
+    //      Get the correct Open Library bib record fields selected
+    $bib_fields = array_intersect_key( bookpost_bib_field_array(), $bib_field_select );
+
+    // set some variables
+    $curltimeout = 10;                    // timeout for the openlibrary curl call
+    $path = '../' . drupal_get_path('module', 'bookpost');
+    $coverimage =  $path . '/images/openlibrarylogo-en.jpg';
+    $html_bookdata = "";
+    $html_text = "";
+    $title = "";
+    $link = "";
+    $fulltext = "";
+    $authors = "";
+    $status = "";
+    $authorlist = "";
+    $worldcat = "";
+    $librarything = "";
+    $googlebooks = "";
+    $bookversion = 1;
+
+    $isbn_query_status = "";
+    $isbnsearch = "";
+    $url_bookkeys = "";
+
+    // If the start of the book code is 'OL' then it is an openlibrary.com code
+    if (preg_match('/^OL/', $id)) {
+        $bookkey = '/b/' . $id;
     }
-    if(variable_get('librarything', 0)) {
-      $librarything = '<a href="http://librarything.com/isbn/' . $isbn . '">Find on LibraryThing</a><p />';
+    // else it must be an isbn so get links from other book sites
+    else {
+        $isbn = $id;
+        //clean ISBN of dashes and spaces, add more as needed
+        $dirt_isbn = array("-", " ");
+        $isbn = str_replace($dirt_isbn, "", $isbn);
+
+        // Query OpenLibrary for OL ids that match the ISBN
+        $url_bookkeys = "http://openlibrary.org/api/search?q={%22query%22:%22(isbn_10:(" . $isbn . ")%20OR%20isbn_13:(" . $isbn . "))%22}&text=true";
+        $bookkeys = bookpost_get_url_contents($url_bookkeys, $curltimeout);
+        $obj = json_decode($bookkeys);
+        $isbnsearch = $obj->{'result'};
+
+        // 'status' code of 'ok' means 'result' will have some data
+        // 'status' code of 'fail' indicates there was no data found with the ISBN search
+        $isbn_query_status = $obj->{'status'};
+
+        if ( $isbn_query_status == "ok" ) {
+            $bookkeyresult = $obj->{'result'};  // grab the results if there
+            $v = var_export($bookkeyresult, TRUE);
+
+            //determine number of versions and choose most recent
+            $bookversioncount = count($bookkeyresult);
+            //$bookversion = $bookversioncount - 1;
+            $bookkey = 0;
+            if ($bookversioncount > 0) {
+                $bookkey = $bookkeyresult[ $bookversioncount - 1 ];
+            }
+            // Link to WorldCat, LibraryThing, and Google books if selected
+            if ($worldcat_op) {
+              $worldcat = '<p class="bookpost_data">Link to: <a href="http://worldcat.org/isbn/' . $isbn . '" rel="nofollow" target="_blank">WorldCat</a></p>';
+            }
+            if ($librarything_op) {
+              $librarything = '<p class="bookpost_data">Link to: <a href="http://librarything.com/isbn/' . $isbn . '" rel="nofollow" target="_blank">LibraryThing</a></p>';
+            }
+            if ($googlebooks_op) {
+              $googlebooks = '<p class="bookpost_data">Link to: <a href="http://books.google.com/books?vid=ISBN' . $isbn . '" rel="nofollow" target="_blank">Google Books</a></p>';
+            }
+        }
     }
-    if(variable_get('googlebooks', 0)) {
-      $googlebooks = '<a href="http://books.google.com/books?vid=ISBN' . $isbn . '">Find on Google Books</a><br />';
-    }  
-    //query OpenLibrary for OL ids that match the ISBN
-    $url_bookkeys = "http://openlibrary.org/api/search?q={%22query%22:%22(isbn_10:(".$isbn.")%20OR%20isbn_13:(".$isbn."))%22}&text=true";
-    $bookkeys = get_url_contents($url_bookkeys, $curltimeout);
-    $obj = json_decode($bookkeys);
-    $bookkeyresult = $obj->{'result'};
-
-    //determine number of versions and choose first available 
-    //version if none specified
-    $bookversioncount = count($bookkeyresult);
-    if($bookversion == "") $bookversion = 1;
-    elseif ($bookversion > $bookversioncount) $bookversion = $bookversioncount;
-    $bookversion = $bookversion -1;
-    
-    $bookkey = $bookkeyresult[$bookversion];
-  }
-    
-  $bookpage = "http://openlibrary.org" . $bookkey; 
-  $curltimeout = 10;
-  $url = "http://openlibrary.org/api/get?key=".$bookkey."&text=true";  
-  $bookdata = get_url_contents($url, $curltimeout);
-
-  $obj = json_decode($bookdata);
-  $bookdataresult = $obj->{'result'};
-
-  //title
-  $title = $bookdataresult->{'title'};
-  $subtitle = $bookdataresult->{'subtitle'};
-  $title=ucwords($title);
-
-  //authors -- handle multiple
-  $authors = $bookdataresult->{'authors'};
-  if(is_array($authors)) {
-    for($i=0;$i<count($authors);$i++) {
-      $authorkey = $authors[$i]->{'key'};
-      $url_author = "http://openlibrary.org/api/get?key=".$authorkey."&text=true";
-
-      $authordata = get_url_contents($url_author, $curltimeout);
-      $obj = json_decode($authordata);
-      $authorresult = $obj->{'result'};
-      $name = $authorresult->{'name'};
-      if($i==0) $authorlist = $name;
-      else $authorlist = $authorlist.",".$name;
+
+
+    $bookpage = "http://openlibrary.org" . $bookkey;
+    $url = "http://openlibrary.org/api/get?key=" . $bookkey;
+    $bookdata = bookpost_get_url_contents($url, $curltimeout);
+
+    $book_array = json_decode($bookdata, TRUE);       // get array of data
+
+    $found_book_status = $book_array['status'];
+    if ( $found_book_status == "ok") {
+        $barr =  $book_array['result'];               // get the result
+        $book_str = bookpost_json_extract($barr); // extract the results
     }
-  }
-  $authors = $authorlist;
-  if ($authors=="") {
-    $authors = $bookdataresult->{'by_statement'};
-    if ($authors=="") {
-      $authors=$bookdataresult->{'contributions'};
-      if(is_array($authors)) $authors=implode(",", $authors);
+
+    $book_arr = array();
+
+    // Result was returned if the 'status' is 'ok'
+    $found_book = $book_array['status'];
+
+    if ( $found_book == "ok" ) {
+        $bookdataresult = $book_array['result'];
+
+    // Get title for link
+    $title = $bookdataresult['title'];
+
+    //authors -- handle multiple
+    if ( isset($bookdataresult['authors']) ) {
+        $authors = $bookdataresult['authors'];
     }
-  }  
-  
-  $authors = ucwords($authors);
-
-  //publishers
-  $publishers = $bookdataresult->{'publishers'};
-  if(is_array($publishers)) {
-    for($i=0;$i<count($publishers);$i++) {
-      $publisher = $publishers[$i];
-      if($i==0) $publisherlist = $publisher;
-      else $publisherlist = $publisherlist . ", " . $publisher;
+    if (is_array($authors)) {
+        for ($i = 0; $i < count($authors); $i++) {
+          $authorkey = $authors[$i]['key'];
+          $url_author = "http://openlibrary.org/api/get?key=" . $authorkey . "&text=true";
+          $authordata = bookpost_get_url_contents($url_author, $curltimeout);
+          $auth_obj = json_decode($authordata);
+          $authorresult = $auth_obj->{'result'};
+          $name = $authorresult->{'name'};
+          if ($i == 0) {
+            $authorlist = $name;
+          }
+          else {
+            $authorlist = $authorlist . "," . $name;
+          }
+        }
     }
-  }
-  $publishers = ucwords($publisherlist);
-  
-  //coverimage
-  $olnumber_begin = stripos($bookkey,"/b/") + 3;
-  $olnumber = substr($bookkey, $olnumber_begin);
-  
-    
-  //test if Open Library returns a 1 pixel x 1 pixel image (i.e. no cover is available for the title
-  $path = drupal_get_path('module', 'bookpost');    
-  $size = getimagesize("http://covers.openlibrary.org/b/olid/$olnumber-M.jpg");
-  if($size[0] == 1) {
-    $coverimage =  $path . '/images/openlibrarylogo-en.jpg';
-  }  
-  else {
-    $coverimage = "http://covers.openlibrary.org/b/olid/" .$olnumber . "-M.jpg";
-  }
-  //pagination
-  $pages = $bookdataresult->{'number_of_pages'};
+    $authors = $authorlist;
+    if ($authors == "") {
+        $authors = $bookdataresult['by_statement'];
+        if ($authors == "") {
+          $authors = $bookdataresult['contributions'];
+          if (is_array($authors)) {
+            $authors = implode(",", $authors);
+          }
+        }
+    }
+    $authors = ucwords($authors);
 
-  //publication date
-  $date = $bookdataresult->{'publish_date'};
+    //coverimage
+    $olnumber_begin = stripos($bookkey, "/b/") + 3;
+    $olnumber = drupal_substr($bookkey, $olnumber_begin);
+    $covercode = $bookdataresult['covers'][0];
 
-  //link to fulltext if available
-  $link = $bookdataresult->{'ocaid'};
-  if($link) {
-    $fulltext = '<a href="http://openlibrary.org/details/' . $link . '"><img src="' . $path .'/images/readonline.jpg" border="0" /></a><br />';
-  }  
+    //test if Open Library returns a 1 pixel x 1 pixel image (i.e. no cover is available for the title
+    $size = getimagesize("http://covers.openlibrary.org/b/id/$covercode-M.jpg");
+    if ( $size[0] != 1 ) {
+        $coverimage = "http://covers.openlibrary.org/b/id/" . $covercode . "-M.jpg";
+    }
 
-  //build HTML
-  $html_bookdata = "";
-  
-   //coverimage
-  $html_coverimage = "<img src='" . $coverimage . "' alt='' border=0 style='float:left;padding-right:15px;padding-bottom:10px;' />";
-  $html_coverimage = "<a href='" . $bookpage . "'>" . $html_coverimage . "</a>";
+    //link to fulltext if available
+    if ( isset( $bookdataresult['ocaid'] ) ) {
+        $link = $bookdataresult['ocaid'];
+    }
+    if ($link) {
+        $fulltext = '<p><a class="bookpost_image" href="http://openlibrary.org/details/' . $link . '" rel="nofollow" target="_blank"><img src="' . $path . '/images/readonline.jpg" border="0" /></a><br />';
+    }
 
-  //title
-  $html_title = '<a href="' . $bookpage . '" ><i>' . $title . '</i></a>';
+    //coverimage
+    $html_coverimage = "<img src='" . $coverimage . "' alt='" . $title . "' />";
+    $html_coverimage = "<p><a style='float:right' class='bookpost_image' href='" . $bookpage . "' rel='nofollow' target='_blank'>" . $html_coverimage . "</a></p>";
 
-  //author
-  $html_authors = $authors;
+    //title
+    $html_title = '<p>Title: <a href="' . $bookpage . '" rel="nofollow" target="_blank"><i>' . $title . '</i></a></p>';
 
-  //publishers
-  $html_publishers = $publishers;
+    //author
+    $html_authors =  '<p>Author: ' . $authors . '</p>';
+
+    // Build the html from the JSON we scanned.
+    $html_fields = "<ul>";
+    foreach ( $bib_fields as $field ) {
+        $field_val = bookpost_extract_from_string_by_key( $book_str, $field );
+        if ( $field_val !== FALSE ) {
+            if ( strpos($field_val, "[[[") === FALSE) {
+                $html_fields .= "<li class='bookpost_" . $field . "'><span class='bookpost_name'>" . drupal_ucfirst(str_replace('_', ' ', $field)) . ": </span><span class='bookpost_data'>" . bookpost_make_html_link( $field_val ) . "</span></li>";
+            }
+            else {
+                $html_fields .= "<li class='bookpost_" . $field . "'><span class='bookpost_name'>" . drupal_ucfirst( str_replace('_', ' ', $field )) . ": </span>";
+                $sub_field = explode("[[[", $field_val);
+                for ( $i = 1 ; $i < sizeof($sub_field) ; $i++ ) {
+                     $s_field = trim($sub_field[$i]) ;
+                     if (strpos($s_field, "///") === FALSE  &&  ! empty($s_field)) {
+                         if ($i >2) {
+                            $html_fields .= " | ";
+                         }
+                         $html_fields .= "<span class='bookpost_data'>" . bookpost_make_html_link($s_field) . "</span>";
+                       }
+                }
+                $html_fields .= "</li>";
+            }
+        }
+    }
+    $html_fields .= "</ul>";
 
-  //assemble text
-  $html_text = "Title: <b>" . $html_title . "</b><br /> " . "Author(s): <b> ". $html_authors . "</b><br />" . "Publisher: " .$html_publishers . '<br />' . "Pages: " . $pages . '<br />' . "Date: " .$date . '<p />' .$fulltext . $worldcat . $librarything . $googlebooks;
+    // Build up the HTML
+    $html_text .= $html_title;
+    $html_text .= $html_authors;
+    $html_text .= $html_fields;
+    $html_text .= $fulltext;
+    $html_text .= $worldcat . $librarything . $googlebooks;
+
+      //div whole class for themeing
+      $html_bookdata = '<div class="openlibrary" >' . $html_coverimage . $html_text . '<div style="clear:both;"></div></div>';
+  } // end of info found on openlibrary.com
 
-  //div id for themeing
-  $html_bookdata = '<div id="openlibrary" style="width:500px;height:275px;">' . $html_coverimage . $html_text . '</div>';
-    
   return $html_bookdata;
-  
 }
 
-//this method replaces file_get_contents, which is sometimes disallowed on servers
-function get_url_contents($url, $curltimeout) {
 
-  // Establish a cURL handle.
-  $ch = curl_init($url);
+/*
+ *  Implements bookpost_json_extract(& $barr)
+ */
+function bookpost_json_extract(& $barr) {
+    $bib_fields = bookpost_bib_field_array();
+    $book_html = "";
+    // loop through array struture recursively
+    foreach ($barr as $key => $value) {
+        if (in_array($key, $bib_fields) || is_int($key)) {
+            if ( ! is_array($value) && $value != ""  ) {
+                $effective_key = is_int($key) ? '[[[///' . $key . '[[[' : '|||' . $key . '|||';
+                $book_html .= "$effective_key ((($value(((";
+                $book_html .= is_int($key) ? "" : "";
+            }
+            else {
+                $sub_bib = bookpost_json_extract($value, $bib_fields);
+                if ( $sub_bib != "" ) {
+                    $book_html .= "|||" . $key . "|||" . $sub_bib . "";
+                }
+            }
+        }
+    }
+    return $book_html;
+}
 
-  // Set our options
-  curl_setopt($ch, CURLOPT_HEADER, false); //false=do not include headers
-  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //true=return as string
-  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $curltimeout); //timeout for when OL is down
-  curl_setopt($ch, CURLOPT_TIMEOUT, $curltimeout); //timeout for when OL is down
 
-  // Execute the request
-  $output = curl_exec($ch);
+/*
+ * Implements bookpost_extract_from_string_by_key( $bib_str, $find )
+ */
+function bookpost_extract_from_string_by_key( $bib_str, $find ) {
+   $field_arr = explode("|||", $bib_str);
+   $found_index = array_search($find, $field_arr);
+   if ($found_index === FALSE) {
+       return FALSE;
+   }
+   $found_str = $field_arr[$found_index + 1];
+   return str_replace("(((", "", $found_str);
+}
 
-  // Close the cURL session.
-  curl_close($ch);
 
-  if ($output == "") throw new Exception("Open Library Data Unavailable");
-  
-  return $output;
-}
\ No newline at end of file
+/*
+ * Implements bookpost_make_html_link($address)
+ */
+function bookpost_make_html_link($address) {
+    if (strpos($address, "http://") !== FALSE) {
+        return '<a href="' . $address . '" rel="nofollow" target="_blank">' . $address . '</a>';
+    }
+return $address;
+}
+
+/*
+ *  Implements bookpost_bib_field_array()
+ */
+function bookpost_bib_field_array() {
+   return array(
+       'subtitle',
+       'contributions',
+       'publishers',
+       'publish_places',
+       'publish_date',
+       'notes',
+       'text',
+       'excerpts',
+       'first_sentence',
+       'genres',
+       'subjects',
+       'isbn_10',
+       'isbn_13',
+       'lc_classifications',
+       'dewey_decimal_class',
+       'lccn',
+       'oclc',
+       'olid',
+       'google',
+       'amazon',
+       'librarything',
+       'project_gutenberg',
+       'goodreads',
+       'number_of_pages',
+       'pagination',
+       'physical_format',
+       'physical_dimensions',
+       'weight',
+       'uris',
+       'url',
+       'works',
+       'source_records',
+   );
+}
