'.$title_link.' ';
// concat author data
$_authors = isset($biblio_detail['author'])?$biblio_detail['author']:biblio_list_model::getAuthors($dbs, $biblio_id, true);
$output .= '
';
if ($_authors) {
$_authors_string = '';
if (is_array($_authors)) {
foreach ($_authors as $author) {
$_authors_string .= '
'.$author.' - ';
}
} else {
$_authors_string .= '
'.$_authors.' - ';
}
$_authors_string = substr_replace($_authors_string, '', -2);
$output .= $_authors_string;
// $output .= '
'.__('Author(s)').' : '.$_authors.'
';
}
$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'].'
';
}
}
}
}
// checkbox for marking collection
$_i= rand(); // Add By Eddy Subratha
$_check_mark = (utility::isMemberLogin() && $settings['enable_mark'])?'
'.__('mark this').' ':'';
$output .= '
'.$detail_button.$xml_button.$_check_mark.$cite_button.'
';
// 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;
}
$output .= "