diff options
-rwxr-xr-x | solr_search.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solr_search.module b/solr_search.module index b945786..a9a4e91 100755 --- a/solr_search.module +++ b/solr_search.module @@ -206,7 +206,7 @@ function ajax_solr_search_result_callback($form, $form_state) foreach ($response['response']->docs as $doc) { $sno++; $output .= '<li>'; - $output .= '<p><b>Book: </b>' . $doc->title . ' (' . $doc->author . ')</p>'; + $output .= '<p><b>Book: </b>' . $doc->title . ' (' . $doc->author[0] . ')</p>'; $output .= '<p><b>Chapter: </b>' . $doc->chapter[0] . '</p>'; $output .= '<p><b>Example: </b>' . $doc->example[0] . '</p>'; $output .= '<p><b>Links: </b> <a href="' . base_path() . 'textbook-companion/download/book/' . $doc->book_id[0]. '"><span style="font-weight:bold;font-size:16px;">⤵</span> Download entire book</a> <a href="'. $cloud_url.'?eid=' . $doc->id . '" target="_blank"><span style="font-weight:bold;font-size:20px;">»</span> View this example</a></p>'; |