Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
bibliossimo
opacce
Commits
044b070c
Commit
044b070c
authored
Apr 19, 2013
by
llaffont
Browse files
Correction validation HTML5 diaporomas
parent
d06ce453
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
application/modules/opac/views/scripts/bib-numerique/view-album.phtml
...modules/opac/views/scripts/bib-numerique/view-album.phtml
+2
-1
library/Class/ScriptLoader.php
library/Class/ScriptLoader.php
+3
-1
library/ZendAfi/View/Helper/TagSlideshow.php
library/ZendAfi/View/Helper/TagSlideshow.php
+1
-1
tests/application/modules/opac/controllers/AbonneControllerAvisTest.php
...ion/modules/opac/controllers/AbonneControllerAvisTest.php
+1
-1
tests/application/modules/opac/controllers/BibNumeriqueControllerTest.php
...n/modules/opac/controllers/BibNumeriqueControllerTest.php
+7
-0
No files found.
application/modules/opac/views/scripts/bib-numerique/view-album.phtml
View file @
044b070c
...
...
@@ -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
library/Class/ScriptLoader.php
View file @
044b070c
...
...
@@ -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: ""})'
);
}
...
...
library/ZendAfi/View/Helper/TagSlideshow.php
View file @
044b070c
...
...
@@ -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'
,
...
...
tests/application/modules/opac/controllers/AbonneControllerAvisTest.php
View file @
044b070c
...
...
@@ -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'
)
...
...
tests/application/modules/opac/controllers/BibNumeriqueControllerTest.php
View file @
044b070c
...
...
@@ -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
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment