Skip to content
Snippets Groups Projects
Commit 1913bac3 authored by Ghislain Loas's avatar Ghislain Loas
Browse files

Merge branch 'hotline_#15813_open_bibliobox_link_in_tab' into 'hotline_6.51'

Hotline #15813 open bibliobox link in tab

See merge request !376
parents b2d0a6ff e766cf47
Branches
Tags
2 merge requests!393Master,!392Hotline 6.51
v6.51.3
- ticket #15966: Ressource en ligne Cyberlibris: le lien dans les notices s'ouvre dans un onglet.
04/09/2014 - v6.51.2
- ticket #15919, #15920 : Cosmogramme : Correction de régressions dans l'intégration des notices
......
......@@ -25,13 +25,12 @@ class ZendAfi_View_Helper_TagCyberlibrisBook extends ZendAfi_View_Helper_TagRess
public function tagCyberlibrisBook($album) {
$current_user = Class_Users::getIdentity();
if (!$this->canAccessRessourceNumerique())
return '<p>'.$this->_('Vous devez être connecté sous un compte avec abonnement valide pour pouvoir accéder au livre numérique').'</p>';
return $this->view->tag('p', $this->_('Vous devez être connecté sous un compte avec abonnement valide pour pouvoir accéder au livre numérique'));
$url_book = 'http://www.bibliovox.com/'.Class_AdminVar::get('CYBERLIBRIS_ID').'?docid='. $album->getIdOrigine();
return '<a href="'.$url_book.'">Accéder au livre numérique</a>';
return $this->view->tagAnchor($url_book, $this->_('Accéder au livre numérique'), ['target' => '_blank']);
}
function hasRightAccesRessourcesNumeriques($user) {
......
......@@ -238,7 +238,7 @@ class ZendAfi_View_Helper_RenderAlbumCyberlibrisTest extends ZendAfi_View_Helper
ZendAfi_Auth::getInstance()->logUser($logged_user);
$html = $this->_helper->renderAlbum($this->book);
$this->assertXPath($html,
'//a[@href="http://www.bibliovox.com/my_lib?docid=88817216"]',
'//a[@href="http://www.bibliovox.com/my_lib?docid=88817216"][@target="_blank"]',
$html);
}
......
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