openUrl($this->driver, 'results'); $openUrlActive = $openUrl->isActive(); $urls = $this->record($this->driver)->getLinkDetails($openUrlActive); $account = $this->auth()->getManager(); $coverDetails = $this->record($this->driver)->getCoverDetails('result-list', 'medium', $this->recordLinker($this->results)->getUrl($this->driver)); $cover = $coverDetails['html']; $thumbnail = false; $thumbnailAlignment = $this->record($this->driver)->getThumbnailAlignment('result'); $eBook = in_array("eBook",$this->driver->getFormats()) ? true : false; $accessRestrictions = $this->driver->getAccessRestrictions(); $itemNote = "check in eBook platform after login"; if ($cover): ob_start(); ?> ils()->getOfflineMode(); try { $holdings = $this->driver->getRealTimeHoldings(); } catch (\VuFind\Exception\ILS $e) { $holdings = ['holdings' => []]; $offlineMode = 'ils-offline'; } $availableLinks = [] ; $checkedOutLinks = [] ; if (strcmp($offlineMode,'ils-offline') != 0) { foreach (($holdings['holdings'] ?? []) as $holding) { // foreach ($holdings['holdings'] as $holding) { foreach ($holding['items'] as $row) { if (strcmp($row['status'],'status_in_acquisition') != 0 && strcmp($row['status'],'status_internal_administration') != 0 ) { if (strtolower($row['reserve']) == 'x') continue; if (! isset($row['barcode']) || $row['barcode'] == "") continue; if (! isset($row['link']) || $row['link'] == '') continue; } if ($eBook) { if (isset($row['item_notes'])) { $itemNote = $row['item_notes']; } } $check = isset($row['check']) && $row['check']; if (strcmp($row['status'], "status_internal_administration") != 0 && strcmp($row['status'],'status_internal_administration') != 0 ) { $link = ' class="'; if ($check) $link .= 'checkRequest '; $link .= 'placehold" ' ; if (!empty($row['linkLightbox'])) $link .= 'data-lightbox '; $link .= "href=\"" .$this->recordLinker($this->results)->getRequestUrl($row['link']) ."\">"; if ($check) { $link .= $this->transEsc("Check Hold") ; } else { if (strcmp($row['status'], "Available") == 0) { $link .= $this->transEsc("Place a Hold") ; $availableLinks[] = $link ; } else { $link .= $this->transEsc("Recall This") ; $checkedOutLinks[] = $link ; } } } } } } ?>
| =$this->transEsc("Format")?> | =$this->transEsc("Stock")?> | =$this->transEsc('Call Number')?> | =$this->transEsc("Availability")?> |
|---|---|---|---|
| =$this->record($this->driver)->getFormatList() ?> | |
driver->getCallNumber(); if (!empty($summCallNo)): ?> =$this->escapeHtml($summCallNo)?> | driver->supportsAjaxStatus() ): ?> =$this->transEsc($itemNote)?> |