/** * Get a link for placing a title level hold. * * @return mixed A url if a hold is possible, boolean false if not */ public function getRealTimeTitleHold() { if ($this->hasILS()) { $biblioLevel = strtolower($this->getBibliographicLevel()); if ("monograph" == $biblioLevel || strstr($biblioLevel, "part")) { if ($this->ils->getTitleHoldsMode() != "disabled") { return $this->titleHoldLogic->getHold($this->getUniqueID()); } } } return false; }
/** * Get a link for placing a title level hold. * * @param \VuFind\Auth\Manager $account Auth manager object * * @return mixed A url if a hold is possible, boolean false if not */ public function getRealTimeTitleHold(\VuFind\Auth\Manager $account) { $biblioLevel = $this->getBibliographicLevel(); if ("monograph" == strtolower($biblioLevel) || stristr("part", $biblioLevel)) { if (ILSConnection::getTitleHoldsMode() != "disabled") { $holdLogic = new TitleHoldLogic($account, $this->getILS()); return $holdLogic->getHold($this->getUniqueID()); } } return false; }