csv_parser($locum_config['format_special']['download'])); $no_avail_mat_codes = in_array($item['mat_code'], $locum->csv_parser($locum_config['format_special']['skip_avail'])); $location_label = $item['loc_code'] || ($item['loc_code'] != 'none') ? $locum_config['locations'][$item['loc_code']] : ''; $note_arr = unserialize($item['notes']); $series = trim($item['series']); if ($split_pos = max(strpos($series, ";"), strpos($series, ":"), strpos($series, "."), 0)) { $series = trim(substr($series, 0, $split_pos)); } // Construct the availabilty summary. if ($item_status['avail'] == 0 && $item_status['holds'] > 0) { $class = "holds"; $reqtext = "There are no copies available. " . $item_status['holds'] . " request" . ($item_status['holds'] == 1 ? '' : 's') . " on " . $item_status['total'] . ($item_status['total'] == 1 ? ' copy' : ' copies') . '.'; } elseif ($item_status['avail'] == 0) { $class = "first"; $reqtext = "There are no copies available."; } elseif($item_status['holds'] > 0) { $class = "holds"; $reqtext = "There " . ($item_status['avail'] == 1 ? 'is' : 'are') . " currently $item_status[avail] available and " . $item_status['holds'] . " request" . ($item_status['holds'] == 1 ? '' : 's') . " on " . $item_status['total'] . ' ' . ($item_status['total'] == 1 ? 'copy' : 'copies'); } else { $class = "avail"; $reqtext = "There " . ($item_status['avail'] == 1 ? 'is' : 'are') . " currently $item_status[avail] available."; } // Build the item availability array if (count($item_status['items'])) { foreach ($item_status['items'] as $copy_status) { if ($copy_status['avail'] > 0) { $copy_tag = ($copy_status['avail'] == 1) ? t('copy available') : t('copies available'); $status_msg = $copy_status['avail'] . ' ' . $copy_tag; } elseif ($copy_status['due']) { $status_msg = t('Next copy due') . ' ' . date('n-j-Y', $copy_status['due']); } else { $status_msg = $copy_status['statusmsg']; } if (variable_get('sopac_multi_branch_enable', 0)) { $copy_status_array[] = array($copy_status['location'], $copy_status['callnum'], $locum_config['branches'][$copy_status['branch']], $status_msg); } else { $copy_status_array[] = array($copy_status['location'], $copy_status['callnum'], $status_msg); } } } if (sopac_prev_search_url(TRUE)) { print '

' . l("« Return to your search", sopac_prev_search_url(), array('html' => TRUE)) . '

'; } ?>
'; } print $cover_img; preg_match('#\bhttps?://[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))#', $cover_img, $match); $full_cover_image_url = $match[0] ? $match[0] : 'http://' . $_SERVER['SERVER_NAME'] . '/' . drupal_get_path('module', 'sopac') . '/images/' . $item['mat_code'] . '.png'; print '/' . drupal_get_path('module', 'sopac') . '/images/' . $item['mat_code'] . '.png' ?> '; print theme_sopac_get_rating_stars($item['bnum']); print '
'; } ?> '); ?> '); ?> '); ?> '); ?> '); ?> '); } ?> Additional Credits'; } ?> Subjects'; } ?> Tags'; $block = module_invoke('sopac','block','view', 4); print $block['content']; } ?>
This Record is Suppressed
'; } ?>

by ' . l($new_author_str, $authorurl) . ''; } ?> '; print '

' . sopac_put_request_link($item['bnum'], 1, 0, $locum_config['formats'][$item['mat_code']]) . '

'; print '

' . $reqtext . '

'; print ''; } ?>

Where To Find It

Call number: ' . implode(", ", $item_status['callnums']) . '

'; } if (count($item_status['items']) && !$no_avail_mat_codes) { print '
'; } elseif ($item['download_link']) { print '
'; print '

' . l(t('Download this Title'), $item['download_link'], array('attributes' => array('target' => '_new'))) . '

'; print '
'; } else { if (!$no_avail_mat_codes) { print '

No copies found.

'; } } if (count($item_status['orders'])) { print '

' . implode("

", $item_status['orders']) . '

'; } ?>
'; print '

Additional Details

'; foreach($note_arr as $note) { print '

' . $note . '

'; } print ''; } ?> '; print '

Reviews & Summaries

'; print ''; } ?>

Community Reviews

'; print '

' . l($rev_item['rev_title'], 'review/view/' . $rev_item['rev_id'], array('attributes' => array('class' => 'fn url'))) . '

'; if ($rev_item['uid']) { $rev_user = user_load(array('uid' => $rev_item['uid'])); print '

submitted by ' . l($rev_user->name, 'review/user/' . $rev_item['uid']) . ' on ' . date("F j, Y, g:i a", $rev_item['timestamp']) . ''; if ($user->uid == $rev_item['uid']) { print '   [ ' . l(t('delete'), 'review/delete/' . $rev_item['rev_id'], array('attributes' => array('title' => 'Delete this review'), 'query' => array('ref' => $_GET['q']))) . ' ] [ ' . l(t('edit'), 'review/edit/' . $rev_item['rev_id'], array('attributes' => array('title' => 'Edit this review'), 'query' => array('ref' => $_GET['q']))) . ' ]'; } print '

'; } print '
' . nl2br($rev_item['rev_body']) . '
'; } } else { print '

No reviews have been written yet. You could be the first!

'; } print $rev_form ? $rev_form : '

' . l(t('Login'), 'user/login', array('query' => array('destination' => $_GET['q']))) . ' to write a review of your own.

'; ?>