if ($thumbnail && $thumbnailAlignment == 'left'): ?>
=$thumbnail ?>
endif ?>
// If this is a non-missing Solr record, we should display a link:
if (is_a($resource, 'VuFind\\RecordDriver\\SolrDefault') && !is_a($resource, 'VuFind\\RecordDriver\\Missing')) {
$title = $resource->getTitle();
$title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
echo '
' . $title . '';
} else if (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
// If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
echo $this->escapeHtml($ilsDetails['title']);
} else {
// Last resort -- indicate that no title could be found.
echo $this->transEsc('Title not available');
}
?>
$listAuthors = $resource->getPrimaryAuthors(); if (!empty($listAuthors)): ?>
=$this->transEsc('by')?>:
=$this->escapeHtml($listAuthors[0])?> if (count($listAuthors) > 1): ?>, =$this->transEsc('more_authors_abbrev')?> endif; ?>
endif; ?>
if (!empty($ilsDetails['callnumber'])): ?>
=$this->transEsc('Call number')?>: =$this->escapeHtml($ilsDetails['callnumber'])?>
endif; ?>
if (count($resource->getFormats()) > 0): ?>
=$this->record($resource)->getFormatList() ?>
endif; ?>
if (!empty($ilsDetails['volume'])): ?>
=$this->transEsc('Volume')?>: =$this->escapeHtml($ilsDetails['volume'])?>
endif; ?>
if (!empty($ilsDetails['publication_year'])): ?>
=$this->transEsc('Year of Publication')?>: =$this->escapeHtml($ilsDetails['publication_year'])?>
endif; ?>
if (!empty($ilsDetails['institution_name']) && (empty($ilsDetails['borrowingLocation']) || $ilsDetails['institution_name'] != $ilsDetails['borrowingLocation'])): ?>
=$this->transEsc('location_' . $ilsDetails['institution_name'], [], $ilsDetails['institution_name'])?>
endif; ?>
if (!empty($ilsDetails['borrowingLocation'])): ?>
=$this->transEsc('Borrowing Location')?>: =$this->transEsc('location_' . $ilsDetails['borrowingLocation'], [], $ilsDetails['borrowingLocation'])?>
endif; ?>
if (isset($ilsDetails['renew'])): ?>
if($ilsDetails['renewLimit'] > 0) : ?>
=$this->transEsc('Renewed')?>: =$this->transEsc($ilsDetails['renew'])?>
(=$this->transEsc('Last renewal')?>: =$this->transEsc($ilsDetails['lastreneweddate'])?>)
if (isset($ilsDetails['renewLimit'])): ?>
/ =$this->transEsc($ilsDetails['renewLimit'])?>
endif; ?>
endif; ?>
endif ; ?>
endif; ?>
$showStatus = true; ?>
if (isset($this->renewResult[$ilsDetails['item_id']])): ?>
$renewDetails = $this->renewResult[$ilsDetails['item_id']]; ?>
if (isset($renewDetails['success']) && $renewDetails['success']): ?>
$showStatus = false; ?>
=$this->transEsc('Due Date')?>: =$this->escapeHtml($renewDetails['new_date'])?> if (isset($renewDetails['new_time'])): ?>=$this->escapeHtml($renewDetails['new_time'])?> endif; ?>
=$this->transEsc('renew_success')?>
else: ?>
=$this->transEsc('Due Date')?>: =$this->escapeHtml($ilsDetails['duedate'])?> if (isset($ilsDetails['dueTime'])): ?> =$this->escapeHtml($ilsDetails['dueTime'])?> endif; ?>
=$this->transEsc('renew_fail')?> if (isset($renewDetails['sysMessage'])): ?>: =$this->escapeHtml($renewDetails['sysMessage'])?> endif; ?>
endif; ?>
else: ?>
=$this->transEsc('Issue Date')?>: =$this->escapeHtml($ilsDetails['issuedate'])?>
=$this->transEsc('Due Date')?>: =$this->escapeHtml($ilsDetails['duedate'])?> if (isset($ilsDetails['dueTime'])): ?> =$this->escapeHtml($ilsDetails['dueTime'])?> endif; ?>
if ($showStatus): ?>
if (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "overdue"): ?>
=$this->transEsc("renew_item_overdue")?>
elseif (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "due"): ?>
=$this->transEsc("renew_item_due")?>
endif; ?>
endif; ?>
endif; ?>
if ($showStatus && isset($ilsDetails['message']) && !empty($ilsDetails['message'])): ?>
=$this->transEsc($ilsDetails['message'])?>
endif; ?>
if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_link'])): ?>
=$this->transEsc('renew_item')?>
endif; ?>
if ($thumbnail && $thumbnailAlignment == 'right'): ?>
=$thumbnail ?>
endif ?>