diff --git a/VERSIONS_WIP/24867 b/VERSIONS_WIP/24867 new file mode 100644 index 0000000000000000000000000000000000000000..96b5a7c3475663ab0b4d6dda73c60328c4bec2ac --- /dev/null +++ b/VERSIONS_WIP/24867 @@ -0,0 +1 @@ +* PNB : Suppression du bouton "Rendre un exemplaire emprunte" \ No newline at end of file diff --git a/library/ZendAfi/View/Helper/TagDilicomWidget.php b/library/ZendAfi/View/Helper/TagDilicomWidget.php index 682038686a3ba124f6050869be0699eb8856984b..fa5a569189dab930db9531171f3c4ec74fc7709f 100644 --- a/library/ZendAfi/View/Helper/TagDilicomWidget.php +++ b/library/ZendAfi/View/Helper/TagDilicomWidget.php @@ -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()]);