Skip to content
Snippets Groups Projects
Commit b2d92509 authored by gloas's avatar gloas
Browse files

rel #11216 Notice with ressources type audio record: url are now tracked

parent d6b20667
Branches
Tags
No related merge requests found
......@@ -1045,13 +1045,14 @@ class Class_AlbumRessource extends Storm_Model_Abstract {
public function acceptVisitor($visitor) {
$view_helper = (new ZendAfi_Controller_Action_Helper_View());
if (!$titre = $this->getTitre())
$titre = $this->getFolio();
$visitor->visitRessourceDatas($titre,
$this->getDuration(),
$this->getAuthorsNames(),
$this->getOriginalUrl());
$view_helper->album_PlayRessourceUrl($this));
}
}
......
......@@ -25,9 +25,7 @@ class ZendAfi_View_Helper_Album_PlayRessourceUrl extends Zend_View_Helper_Abstr
if (!$extension && $ressource->hasUrl())
return $this->view->absoluteUrl($ressource->getOriginalUrl());
return $this->view->absoluteUrl(['controller' => 'bib-numerique',
'action' => 'play-ressource',
'id' => $ressource->getId()],null,true).'.'.$extension;
return $this->view->absoluteUrl('bib-numerique/play-ressource/id/'.$ressource->getId(),null,true).'.'.$extension;
}
}
......
......@@ -2,7 +2,7 @@
display: none;
}
.audiojs {
width: 500px;
width: auto;
height: 22px;
background: none;
border: 1px solid LightGrey;
......@@ -22,7 +22,7 @@
margin: 5px 0px;
}
.audiojs .play-pause {
width: 22px;
width: 6%;
height: 22px;
padding: 0;
margin: 0px;
......@@ -32,7 +32,7 @@
}
.audiojs p {
display: none;
width: 22px;
width: 100%;
height: 22px;
margin: 0px;
cursor: pointer;
......@@ -40,7 +40,7 @@
.audiojs .volume {
position: relative;
float: left;
width: 28px;
width: 10%;
background: url("./player-graphics_blue.gif") -10px -143px no-repeat;
height: 12px;
overflow: hidden;
......@@ -52,7 +52,7 @@
.audiojs .scrubber {
position: relative;
float: left;
width: 320px;
width: 55%;
background: #CECECE;
height: 12px;
margin: 5px 5px;
......@@ -83,7 +83,7 @@
.audiojs .time {
float: left;
text-align: center;
width: 91px;
width: 20%;
height: 22px;
line-height: 22px;
margin: 0px 0px 0px 0px;
......
......@@ -116,7 +116,7 @@ class RechercheControllerAlbumAudioRecordViewNoticeTest extends RechercheControl
/** @test */
public function noticeFirstMorceauUrlEcouteShouldBeMoonchildDotMP3() {
$this->assertContains('moonchild.mp3',
$this->assertContains('bib-numerique/play-ressource/id/1.mp3',
$this->_notice->getMorceaux()['morceaux'][1][1]['url_ecoute']);
}
......@@ -147,7 +147,7 @@ class RechercheControllerAlbumAudioRecordViewMorceauxTest extends RechercheContr
/** @test */
public function moonchildPlayerShouldBePresent() {
$this->assertXPath('//audio/source[contains(@src, "moonchild.mp3")]', $this->_response->getBody());
$this->assertXPath('//audio/source[contains(@src, "bib-numerique/play-ressource/id/1.mp3")]', $this->_response->getBody());
}
......
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