'.$title.''; // label if ($settings['show_labels'] AND !empty($biblio_detail['labels'])) { $labels = @unserialize($biblio_detail['labels']); if ($labels !== false) { foreach ($labels as $label) { if (!isset($label_cache[$label[0]]['name'])) { $label_q = $dbs->query('SELECT label_name, label_desc, label_image FROM mst_label AS lb WHERE lb.label_name=\''.$label[0].'\''); $label_d = $label_q->fetch_row(); $label_cache[$label[0]] = array( 'name' => $label_d[0], 'desc' => $label_d[1], 'image' => $label_d[2] ); } if (isset($label[1]) && $label[1]) { $title_link .= ' '.$label_cache[$label[0]]['desc'].''; } else { $title_link .= ' '.$label_cache[$label[0]]['desc'].''; } } } } // button $xml_button = ''; $detail_button = ''.__('Record Detail').''; if ($settings['xml_detail']) { $xml_button = 'XML Detail'; } // citation button $cite_button = 'description'; // cover images var $image_cover = ''; if ($sysconf['tg']['type'] == 'minigalnano') { if (!empty($biblio_detail['image']) && !defined('LIGHTWEIGHT_MODE')) { $book_image = urlencode($biblio_detail['image']); $image_loc = '../../images/docs/'.$book_image; } else { $image_loc = '../../images/default/image.png'; } $thumb_url = './lib/minigalnano/createthumb.php?filename='.urlencode($image_loc).'&width=120'; $image_cover = ''.$title.''; } // $alt_list = ($n%2 == 0)?'alterList':'alterList2'; $output .= '
'; $output .= '
'.$image_cover.'
'; $output .= '

'.$title_link.'

'; // concat author data $_authors = isset($biblio_detail['author'])?$biblio_detail['author']:biblio_list_model::getAuthors($dbs, $biblio_id, true); $output .= ''; // checking custom frontpage file if ($settings['enable_custom_frontpage'] AND $settings['custom_fields']) { foreach ($settings['custom_fields'] as $field => $field_opts) { if ($field_opts[0] == 1) { if ($field == 'edition') { $output .= '
'.$field_opts[1].' : '.$biblio_detail['edition'].'
'; } else if ($field == 'isbn_issn') { $output .= '
'.$field_opts[1].' : '.$biblio_detail['isbn_issn'].'
'; } else if ($field == 'collation') { $output .= '
'.$field_opts[1].' : '.$biblio_detail['collation'].'
'; } else if ($field == 'series_title') { $output .= '
'.$field_opts[1].' : '.$biblio_detail['series_title'].'
'; } else if ($field == 'call_number') { $output .= '
'.$field_opts[1].' : '.$biblio_detail['call_number'].'
'; } else if ($field == 'availability' && !$settings['disable_item_data']) { // get total number of this biblio items/copies $_item_q = $dbs->query('SELECT COUNT(*) FROM item WHERE biblio_id='.$biblio_id); $_item_c = $_item_q->fetch_row(); // get total number of currently borrowed copies $_borrowed_q = $dbs->query('SELECT COUNT(*) FROM loan AS l INNER JOIN item AS i' .' ON l.item_code=i.item_code WHERE l.is_lent=1 AND l.is_return=0 AND i.biblio_id='.$biblio_id); $_borrowed_c = $_borrowed_q->fetch_row(); // total available $_total_avail = $_item_c[0]-$_borrowed_c[0]; if ($_total_avail < 1) { $output .= '
'.$field_opts[1].' : '.__('none copy available').'
'; } else { $item_availability_message = $_total_avail.' copies available for loan'; $output .= '
'.$field_opts[1].' : '.$item_availability_message.'
'; } } else if ($field == 'node_id' && $settings['disable_item_data']) { $output .= '
'.$field_opts[1].' : '.$sysconf['node'][$biblio_detail['node_id']]['name'].'
'; } } } } // social buttons if ($sysconf['social_shares']) { // share buttons $detail_url_encoded = urlencode('http://'.$_SERVER['SERVER_NAME'].$detail_url); $_share_btns = "\n".''."\n"; // $output .= $_share_btns; } // checkbox for marking collection $_i= rand(); // Add By Eddy Subratha $_check_mark = (utility::isMemberLogin() && $settings['enable_mark'])?' ':''; $output .= '
'.$_check_mark.'
'; // share menu $menu = '
'; $menu .= $cite_button; $menu .= ''; $menu .= ''; $menu .= ''; $menu .= '
'; $output .= $menu; $output .= "
\n"; return $output; }