diff --git a/library/Class/Notice/Thumbnail/ProviderThirdParty.php b/library/Class/Notice/Thumbnail/ProviderThirdParty.php index ee9158439f762c00184caa1deae736d34ef803fc..8d681524072f438dd89f94ce8b4fd49f5443a261 100644 --- a/library/Class/Notice/Thumbnail/ProviderThirdParty.php +++ b/library/Class/Notice/Thumbnail/ProviderThirdParty.php @@ -37,7 +37,7 @@ class Class_Notice_Thumbnail_ProviderThirdParty 'thumbnail_fields'); $datas = explode(';', $thumbnail); foreach ($datas as $data) { - list($zone, $field) = explode('$', $data); + list($zone, $field) = explode('-', $data); $subfields = $this->_record->get_subfield($zone, $field); $image = empty($subfields) ? null : $this->_getFirstImage($subfields); if ($image) diff --git a/tests/library/Class/NoticeTest.php b/tests/library/Class/NoticeTest.php index 66d67373c5aaa132327a3d0875e74bc5452b075e..145e5c67ff15187f32de6222fdf227ec4936df5d 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' => '700$a;856$u']; + $preferences= [ 'thumbnail_fields' => '700-a;856-u']; Class_Profil::getCurrentProfil() ->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]); @@ -223,7 +223,7 @@ class NoticeVignetteTest extends Storm_Test_ModelTestCase { /** @test */ public function unexistingUrlThumbnailShoudFallbackToCacheServer() { - $preferences= [ 'thumbnail_fields' => '856$g']; + $preferences= [ 'thumbnail_fields' => '856-g']; Class_Profil::getCurrentProfil() ->setCfgModules(['recherche' => ['viewnotice'.Class_TypeDoc::DISQUE => $preferences]]);