Commit 044b070c authored by llaffont's avatar llaffont
Browse files

Correction validation HTML5 diaporomas

parent d06ce453
......@@ -4,4 +4,5 @@ echo $this->partial('bib-numerique/_breadcrum.phtml',
array('parents' => $this->album->getHierarchy(),
'action' => 'view-categorie'));
echo $this->renderAlbum($this->album);
?>
\ No newline at end of file
?>
<?php $this->closeBoite(); ?>
\ No newline at end of file
......@@ -132,7 +132,9 @@ class Class_ScriptLoader {
return $this
->addStyleSheet(URL_ADMIN_JS.'prettyphoto/css/prettyPhoto')
->addAdminScript('prettyphoto/js/jquery.prettyPhoto')
->addJQueryReady('$("a[rel^=\'prettyPhoto\']").add("a[data-prettyphoto=\'true\']").prettyPhoto({opacity: 0.20, social_tools: ""})');
->addJQueryReady('var new_pretty_photo_tags = $("a[data-prettyphoto=\'true\']");'.
'new_pretty_photo_tags.each(function(){$(this).attr("rel", $(this).attr("data-rel"));});'.
'$("a[rel^=\'prettyPhoto\']").add(new_pretty_photo_tags).prettyPhoto({opacity: 0.20, social_tools: ""})');
}
......
......@@ -184,7 +184,7 @@ class ZendAfi_View_Helper_TagSlideshow extends Zend_View_Helper_HtmlElement {
$media->getLinkTo(),
$data);
} else {
$datas['content'] = sprintf('<a href="%s" rel="prettyphoto[%s]" title="%s">%s</a>',
$datas['content'] = sprintf('<a href="%s" data-prettyphoto="true" data-rel="prettyphoto[%s]" title="%s">%s</a>',
$this->view->url(array('module' => 'opac',
'controller' => 'bib-numerique',
'action' => 'get-resource',
......
......@@ -44,7 +44,7 @@ abstract class AbonneFlorenceIsLoggedControllerTestCase extends AbstractControll
->setPassword('caramel')
->setIdSite(1)
->setIdabon('00123')
;
->setFicheSIGB(['type_com' => 0]);
Storm_Test_ObjectWrapper::onLoaderOfModel('Class_Users')
->whenCalled('save')
......
......@@ -392,6 +392,7 @@ class BibNumeriqueControllerBookletTest extends AbstractBibNumeriqueControllerAl
class BibNumeriqueControllerViewAlbumActionPremierVolumeTest extends AbstractBibNumeriqueControllerAlbumActionPremierVolumeTestCase {
public function setUp() {
parent::setUp();
Class_Profil::getCurrentProfil()->setSkin('original');
$this->dispatch('/opac/bib-numerique/view-album/id/999');
}
......@@ -424,6 +425,12 @@ class BibNumeriqueControllerViewAlbumActionPremierVolumeTest extends AbstractBib
public function viewerScriptShouldBePresent() {
$this->assertXPath('//script[contains(@src, "prettyPhoto.js")]');
}
/** @test */
public function pageBibNumShouldBeHTML5Compliant() {
$this->assertHTML5();
}
}
......
Markdown is supported
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