diff --git a/library/ZendAfi/View/Helper/Album/RssFeedVisitor.php b/library/ZendAfi/View/Helper/Album/RssFeedVisitor.php index 27dc64870fef612cff9fed473bbaddcb3774be30..ac4aca6cf5217c54a281239c5f10c99f02960e42 100644 --- a/library/ZendAfi/View/Helper/Album/RssFeedVisitor.php +++ b/library/ZendAfi/View/Helper/Album/RssFeedVisitor.php @@ -72,7 +72,7 @@ class ZendAfi_View_Helper_Album_RssFeedVisitor extends Zend_View_Helper_Abstrac $media_url = $this->view->album_PlayRessourceUrl($ressource); $this->appendTags($item = $this->appendTag($this->_channel, 'item'), - ['title' => $ressource->getTitre(), + ['title' => $ressource->findTitle(), 'link' => $media_url, 'itunes:order' => $ressource->getOrdre(), 'guid' => $media_url]); diff --git a/tests/application/modules/opac/controllers/BibNumeriqueControllerTest.php b/tests/application/modules/opac/controllers/BibNumeriqueControllerTest.php index 5d08b252b9dfe02f3440966f011901b56e44a145..920efbb55f21cb32b43b7e7b3f92824376b049d9 100644 --- a/tests/application/modules/opac/controllers/BibNumeriqueControllerTest.php +++ b/tests/application/modules/opac/controllers/BibNumeriqueControllerTest.php @@ -869,6 +869,13 @@ class BibNumeriqueControllerAlbumMultiMediasRSSTest extends BibNumeriqueControll '2'); } + + /** @test */ + public function seventhItemTitleShouldBeTheProphecy() { + $this->_xpath->assertXPathContentContains($this->_response->getBody(), + '//channel/item[7]/title', + 'The prophecy'); + } }