Skip to content
Snippets Groups Projects
Commit 8fae930e authored by efalcy's avatar efalcy
Browse files

#24867 : remove give back button for PNB loans

parent 934e0730
4 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!1120Master,!1114Dev #24867 pnb remove loan button,!1109Dev #24867 pnb remove loan button
* PNB : Suppression du bouton "Rendre un exemplaire emprunte"
\ No newline at end of file
......@@ -41,8 +41,7 @@ class ZendAfi_View_Helper_TagDilicomWidget extends Zend_View_Helper_HtmlElement
if(($this->_user = Class_Users::getIdentity()) && ($this->_user->hasRightAccessDilicom()))
$links = $infos
. $this->getConsultBookAnchor()
. $this->getLoanBookAnchor()
. $this->getEndLoanBookAnchor();
. $this->getLoanBookAnchor();
return $links . $iframe;
}
......@@ -64,17 +63,6 @@ class ZendAfi_View_Helper_TagDilicomWidget extends Zend_View_Helper_HtmlElement
}
protected function getEndLoanBookAnchor() {
if(!$loan = Class_Loan_Pnb::findOngoingByUserAndAlbum($this->_user, $this->_album))
return '';
return $this->getDilicomAnchor(['controller' => 'bib-numerique',
'action' => 'end-loan-book',
'id' => $loan->getId()],
$this->view->_('Rendre le livre emprunté'));
}
protected function getInfos() {
$item = Class_Album_Item::findFirstBy(['album_id' => $this->_album->getId()]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment