Skip to content
Snippets Groups Projects
Commit a07ee3c3 authored by llaffont's avatar llaffont
Browse files

RSS: affichage vignettes item

parent 26a277d6
No related merge requests found
......@@ -71,6 +71,7 @@ class ZendAfi_View_Helper_Album_RssFeedVisitor extends Zend_View_Helper_Abstrac
'link' => $media_url,
'description' => $ressource->getDescription(),
'itunes:order' => $ressource->getOrdre(),
'itunes:image' => $this->view->absoluteUrl($ressource->getThumbnailUrl()),
'guid' => $media_url]);
$enclosure = $item->appendChild($this->_doc->createElement('enclosure'));
$enclosure->setAttribute('url', $media_url);
......
......@@ -54,7 +54,7 @@ class ZendAfi_View_Helper_OsmPlayer extends Zend_View_Helper_HtmlElement {
$podcast_url = $this->view->url(['module' => 'opac',
'controller' => 'bib-numerique',
'action' => 'album-rss-feed',
'id' => $album->getId()]).'.xml';
'id' => $album->getId()]);
$loader
......@@ -69,7 +69,7 @@ class ZendAfi_View_Helper_OsmPlayer extends Zend_View_Helper_HtmlElement {
return '<ul>'
.'<li>'.$this->view->tagAnchor($this->view->absoluteUrl($xspf_url.'.xspf'),
$this->view->_('Téléchargez la playlist (VLC, WinAmp)')).'</li>'
.'<li>'.$this->view->tagAnchor($this->view->absoluteUrl($podcast_url),
.'<li>'.$this->view->tagAnchor($this->view->absoluteUrl($podcast_url.'.xml'),
$this->view->_('Podcastez l\'album (iTunes, Lecteur RSS)')).'</li>'
.'</ul>'
.'<div id="'.$div_id.'"></div>';
......
......@@ -752,6 +752,15 @@ class BibNumeriqueControllerAlbumMultiMediasRSSTest extends BibNumeriqueControll
'http://localhost'.BASE_URL.'/userfiles/album/999/big/media/mimi_jolie.mp3');
}
/** @test */
public function firstItemItunesImageShouldBeMimiJolie() {
$this->_xpath->assertXPathContentContains($this->_response->getBody(),
'//channel/item[1]/itunes:image',
'http://localhost'.BASE_URL.'/userfiles/album/999/thumbs/media/mimi_jolie.png');
}
/** @test */
public function secondItemTitleShouldBeDarkKnight() {
$this->_xpath->assertXPathContentContains($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