Esempio n. 1
0
     }
 }
 if (isset($_GET['keywords'])) {
     $keywords = trim($_GET['keywords']);
     $keywords_array = explode(' ', $keywords);
     $searched_words_js_array = '[';
     foreach ($keywords_array as $word) {
         $word = str_replace(array('"', ',', "'", '-'), '', $word);
         $searched_words_js_array .= "'{$word}',";
     }
     $searched_words_js_array = substr_replace($searched_words_js_array, '', -1);
     $searched_words_js_array .= ']';
 }
 // create detail object
 $detail = new detail($dbs, $detail_id);
 $detail->setTemplate($sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/detail_template.php');
 // set the content for info box
 $info = '<strong>' . strtoupper(__('Record Detail')) . '</strong><hr />';
 if (!defined('LIGHTWEIGHT_MODE')) {
     $info .= '<a href="javascript: history.back();" class="btn btn-default" title="Back to previous page">' . __('Back To Previous') . '</a>';
 }
 if (isset($sysconf['enable_xml_detail']) && $sysconf['enable_xml_detail'] && !defined('LIGHTWEIGHT_MODE')) {
     $info .= '<a href="index.php?p=show_detail&inXML=true&id=' . $detail_id . '" class="xmlDetailLink s-xml-detail" title="Show detail in XML format" target="_blank">XML Detail</a>';
     $info .= '<a href="index.php?p=cite&id=' . $detail_id . '" class="openPopUp citationLink" title="Citation for: ' . substr($detail->record_title, 0, 50) . '" target="_blank">Cite this</a>';
 }
 // output the record detail
 echo $detail->showDetail();
 $page_title = $detail->record_title . ' | ' . $sysconf['library_name'];
 $metadata = $detail->metadata;
 $image_src = $detail->image_src;
 $notes = $detail->notes;