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
868811dc
Commit
868811dc
authored
Feb 15, 2018
by
Ghislain Loas
Browse files
dev #71409 add video links to features list
parent
2f0fee1f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
9 deletions
+34
-9
VERSIONS_WIP/71409
VERSIONS_WIP/71409
+2
-0
application/modules/admin/views/scripts/feature/index.phtml
application/modules/admin/views/scripts/feature/index.phtml
+18
-2
library/Class/Feature/List.php
library/Class/Feature/List.php
+8
-7
tests/application/modules/admin/controllers/FeatureControllerTest.php
...ation/modules/admin/controllers/FeatureControllerTest.php
+6
-0
No files found.
VERSIONS_WIP/71409
0 → 100644
View file @
868811dc
- ticket #71409 : Administration : ajout des liens vers les vidéos dans la liste des fonctionnalités
\ No newline at end of file
application/modules/admin/views/scripts/feature/index.phtml
View file @
868811dc
...
...
@@ -57,6 +57,21 @@ $description = (new Class_TableDescription('features'))
'title'
=>
$this
->
_
(
'Documentation'
)]);
})
->
addRowAction
(
function
(
$feature
)
{
if
(
!
$feature
->
getVideo
())
return
''
;
$title
=
$this
->
_
(
'Voir la vidéo de la fonctionnalité : "%s"'
,
$feature
->
getLabel
());
return
$this
->
tagAnchor
(
$feature
->
getVideo
(),
Class_Admin_Skin
::
current
()
->
renderActionIconOn
(
'test'
,
$this
,
[
'title'
=>
$title
,
'alt'
=>
$title
]),
[
'title'
=>
$title
,
'target'
=>
'_blank'
]);
})
->
addRowAction
(
function
(
$feature
)
{
if
(
!
$feature
->
getTest
())
...
...
@@ -64,6 +79,7 @@ $description = (new Class_TableDescription('features'))
return
$this
->
tagPreview
(
Class_Url
::
relative
(
$feature
->
getTest
()),
$this
->
_
(
'Essayer'
));
})
;
$html
=
...
...
@@ -86,4 +102,4 @@ $script_loader = Class_ScriptLoader::getInstance()
->
addSearchInputToContent
(
$this
->
_
(
'Chercher'
))
->
addJQueryReady
(
'$(\'#features_list\').accordion({heightStyle: \'content\'});'
);
(
new
Class_Admin_Skin
)
->
renderJQueryCssOn
(
$script_loader
);
(
new
Class_Admin_Skin
)
->
renderJQueryCssOn
(
$script_loader
);
library/Class/Feature/List.php
View file @
868811dc
...
...
@@ -30,7 +30,7 @@ class Class_Feature_List {
[
'Label'
=>
$this
->
_
(
'Nouvelles fonctionnalités'
),
'Desc'
=>
$this
->
_
(
'Bienvenue dans votre votre liste des nouvelles fonctionnalités'
),
'Image'
=>
''
,
'Video'
=>
''
,
'Video'
=>
'
https://www.youtube.com/watch?v=Hj4RQsS9WeM
'
,
'Category'
=>
$this
->
_
(
'Administration'
),
'Right'
=>
function
(
$feature_description
,
$user
)
{
return
true
;},
'Wiki'
=>
'http://wiki.bokeh-library-portal.org/index.php?title=Nouvelles_fonctionnalit%C3%A9s'
,
...
...
@@ -41,7 +41,7 @@ class Class_Feature_List {
[
'Label'
=>
$this
->
_
(
'Explorateur de fichiers'
),
'Desc'
=>
$this
->
_
(
'Gérer les fichiers dont vous avez besoin pour enrichir vos contenus'
),
'Image'
=>
''
,
'Video'
=>
''
,
'Video'
=>
'
https://www.youtube.com/watch?v=j9ZMM-VbHPQ
'
,
'Category'
=>
$this
->
_
(
'Administration'
),
'Right'
=>
function
(
$feature
,
$user
)
{
return
$user
->
canAccessBackend
();
...
...
@@ -75,7 +75,7 @@ class Class_Feature_List {
[
'Label'
=>
$this
->
_
(
'Connecteur Skilleos'
),
'Desc'
=>
$this
->
_
(
'%s propose des formations en ligne. Le connecteur apporte SSO et aspiration du catalogue'
,
'<a href="http://www.skilleos.com/">Skilleos</a>'
),
'Image'
=>
''
,
'Video'
=>
'https://
www.
youtube
.com/watch?v=
Xlq31NIrFIs'
,
'Video'
=>
'https://youtu
.
be
/
Xlq31NIrFIs'
,
'Category'
=>
$this
->
_
(
'Bibliothèque numérique'
),
'Right'
=>
function
(
$feature_description
,
$user
)
{
return
true
;},
'Wiki'
=>
'http://wiki.bokeh-library-portal.org/index.php?title=Skilleos'
,
...
...
@@ -86,7 +86,7 @@ class Class_Feature_List {
[
'Label'
=>
$this
->
_
(
'Historique des modifications des articles en Front'
),
'Desc'
=>
$this
->
_
(
'Vous pouvez accéder à l\'historique des modifications d\'un article directement à partir des boites article ou calendrier'
),
'Image'
=>
''
,
'Video'
=>
''
,
'Video'
=>
'
https://youtu.be/2D8ARAUKfE8
'
,
'Category'
=>
$this
->
_
(
'Administration'
),
'Right'
=>
function
(
$feature_description
,
$user
)
{
return
$user
->
canAccessBackend
();},
'Wiki'
=>
'http://wiki.bokeh-library-portal.org/index.php?title=Articles_-_Cr%C3%A9er,_r%C3%A9diger_et_ordonner#Historique_des_versions'
,
...
...
@@ -109,12 +109,13 @@ class Class_Feature_List {
'Desc'
=>
$this
->
_
(
'%s est un logiciel de gestion de bibliothèque numérique. Le connecteur permet de moissonner le catalogue'
,
'<a href="https://omeka.org/">Omeka</a>'
),
'Image'
=>
'http://wiki.bokeh-library-portal.org/images/8/85/Omeka.png'
,
'Video'
=>
''
,
'Video'
=>
'
https://www.youtube.com/watch?v=nny7NnlZUCk
'
,
'Category'
=>
$this
->
_
(
'Bibliothèque numérique'
),
'Right'
=>
function
(
$feature_description
,
$user
)
{
return
true
;},
'Wiki'
=>
'http://wiki.bokeh-library-portal.org/index.php/Omeka'
,
'Test'
=>
''
,
'Date'
=>
'2017-11-10'
],
'65273'
=>
[
'Label'
=>
$this
->
_
(
'Export des agendas au format iCalendar'
),
'Desc'
=>
$this
->
_
(
'Exportez vos agendas pour les intégrer dans un logiciel de calendrier ou un autre système d\'information.'
),
...
...
@@ -172,10 +173,10 @@ class Class_Feature_List {
'13615'
=>
[
'Label'
=>
$this
->
_
(
'Consultation de l\'historique des prêts depuis le compte lecteur Bokeh'
),
'Desc'
=>
'Pour les SIGB Nanook (à partir de 4.1) et Koha (nécessite RESTFUL), le lecteur peut consulter l\historique de ses prêts'
,
'Desc'
=>
'Pour les SIGB Nanook (à partir de 4.1) et Koha (nécessite RESTFUL), le lecteur peut consulter l\
'
historique de ses prêts'
,
'Image'
=>
''
,
'Video'
=>
'https://youtu.be/C86Sa-I16E0'
,
'Category'
=>
''
,
'Category'
=>
$this
->
_
(
'Compte lecteur'
)
,
'Right'
=>
function
(
$feature_description
,
$user
)
{
return
true
;},
'Wiki'
=>
'http://wiki.bokeh-library-portal.org/index.php?title=Historique_de_pr%C3%AAts'
,
'Test'
=>
''
,
...
...
tests/application/modules/admin/controllers/FeatureControllerTest.php
View file @
868811dc
...
...
@@ -57,6 +57,12 @@ class FeatureControllerIndexDispatchTest extends Admin_AbstractControllerTestCas
public
function
fileManagerHideShouldBePresent
()
{
$this
->
assertXPath
(
'//td//a[contains(@href, "/admin/feature/hide/id/61314")]'
);
}
/** @test */
public
function
fileManagerVideoShouldBePresent
()
{
$this
->
assertXPath
(
'//td//a[contains(@href, "youtube")]'
);
}
}
...
...
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