diff --git a/library/Class/Notice/Thumbnail/ProviderThirdParty.php b/library/Class/Notice/Thumbnail/ProviderThirdParty.php index 795aa035ec8e867574f3cc1611fd4adf38ce0ebd..ee9158439f762c00184caa1deae736d34ef803fc 100644 --- a/library/Class/Notice/Thumbnail/ProviderThirdParty.php +++ b/library/Class/Notice/Thumbnail/ProviderThirdParty.php @@ -35,11 +35,14 @@ class Class_Notice_Thumbnail_ProviderThirdParty ->getModulePreference('recherche', 'viewnotice' . $this->_record->getTypeDoc(), 'thumbnail_fields'); - - list($zone, $field) = explode('$', $thumbnail); - - $subfields = $this->_record->get_subfield($zone, $field); - return empty($subfields) ? null : $this->_getFirstImage($subfields); + $datas = explode(';', $thumbnail); + foreach ($datas as $data) { + list($zone, $field) = explode('$', $data); + $subfields = $this->_record->get_subfield($zone, $field); + $image = empty($subfields) ? null : $this->_getFirstImage($subfields); + if ($image) + return $image; + } } diff --git a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php index 807a67d5d29544e84c1170dd494a40a14d8cee61..623b55810d1896ced0d5fc02c4f9779815fb46a1 100644 --- a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php +++ b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php @@ -1115,7 +1115,7 @@ class NoticeAjaxControllerVideoMorceauTest extends AbstractControllerTestCase { /** - * @group integration + * @group no-ci * @test */ public function responseShouldContainsPlayer() { diff --git a/tests/library/Class/NoticeTest.php b/tests/library/Class/NoticeTest.php index a1cbd47a8e1660eafa43b89aea5b695ecc3529d0..66d67373c5aaa132327a3d0875e74bc5452b075e 100644 --- a/tests/library/Class/NoticeTest.php +++ b/tests/library/Class/NoticeTest.php @@ -110,7 +110,7 @@ class NoticeVignetteTest extends Storm_Test_ModelTestCase { - $preferences= [ 'thumbnail_fields' => '856$u']; + $preferences= [ 'thumbnail_fields' => '700$a;856$u']; Class_Profil::getCurrentProfil() ->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]);