From 9a3fdcc02cd6963acc026856a0e37f601d80fe8d Mon Sep 17 00:00:00 2001 From: Ayoub Glizi-Vicioso Date: Fri, 16 Jan 2026 14:23:20 -0500 Subject: [PATCH 1/2] Fix carousel label and quote handling(which was not broken) in configuration --- Koha/Plugin/Carrousel/configure.tt | 2 +- Koha/Plugin/Carrousel/step_1.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Plugin/Carrousel/configure.tt b/Koha/Plugin/Carrousel/configure.tt index 8e177f0..31fc1c6 100644 --- a/Koha/Plugin/Carrousel/configure.tt +++ b/Koha/Plugin/Carrousel/configure.tt @@ -526,7 +526,7 @@ function addLine (module, id, name) { + " " + " " + "
" - + " " + + " " + " " + "
" + "
" diff --git a/Koha/Plugin/Carrousel/step_1.tt b/Koha/Plugin/Carrousel/step_1.tt index 8fa8fd8..c1e32b2 100644 --- a/Koha/Plugin/Carrousel/step_1.tt +++ b/Koha/Plugin/Carrousel/step_1.tt @@ -15,7 +15,7 @@

Visit our website for more Koha plugins

-

Generate carousel

+

Generate carrousel

From e6baed33683699bd00f56e9a16103fb21fad8722 Mon Sep 17 00:00:00 2001 From: Ayoub Glizi-Vicioso Date: Tue, 27 Jan 2026 14:05:21 -0500 Subject: [PATCH 2/2] fix(plugin carrousel): corrections globales de la version FR et de l'affichage sur le OPAC --- Koha/Plugin/Carrousel/configure_fr-CA.tt | 27 ++++++++++++++++++------ Koha/Plugin/Carrousel/configure_fr.tt | 25 ++++++++++++++++------ Koha/Plugin/Carrousel/opac-carrousel.tt | 7 ++++++ 3 files changed, 46 insertions(+), 13 deletions(-) diff --git a/Koha/Plugin/Carrousel/configure_fr-CA.tt b/Koha/Plugin/Carrousel/configure_fr-CA.tt index 47181d4..10f3d6b 100644 --- a/Koha/Plugin/Carrousel/configure_fr-CA.tt +++ b/Koha/Plugin/Carrousel/configure_fr-CA.tt @@ -36,7 +36,7 @@ Module Nom - Titre + Titre personnalisé Type [% IF !Koha.Preference('IndependentBranches') %] Bibliothèque @@ -383,10 +383,10 @@ $(function() { $("select[multiple='multiple']").multipleSelect( { placeholder: _("Merci de sélectionner ..."), - selectAllText: _("Tout sélectionner"), - allSelected: _("Tous"), - countSelected: _("# de % selectionné(e)s"), - noMatchesFound: _("Aucune correspondances trouvées") + formatSelectAll: () => _("[Tout sélectionner]"), + formatAllSelected: () => _("Tous"), + formatCountSelected: (count,total) => count + _("de") + total + _("selectionné(e)s"), + formatNoMatchesFound: () => _("Aucune correspondances trouvées") } ); @@ -510,10 +510,23 @@ function addLine (module, id, name) { + name + " " + " " - + " " + + " " + + " " + + " " + + " " + + " " + " " + "
" - + " " + + " " + " " + "
" + "
" diff --git a/Koha/Plugin/Carrousel/configure_fr.tt b/Koha/Plugin/Carrousel/configure_fr.tt index 7c7a34f..b911911 100644 --- a/Koha/Plugin/Carrousel/configure_fr.tt +++ b/Koha/Plugin/Carrousel/configure_fr.tt @@ -36,7 +36,7 @@ Module Nom - Titre + Titre personnalisé Type [% IF !Koha.Preference('IndependentBranches') %] Bibliothèque @@ -383,10 +383,10 @@ $(function() { $("select[multiple='multiple']").multipleSelect( { placeholder: _("Merci de sélectionner ..."), - selectAllText: _("Tout sélectionner"), - allSelected: _("Tous"), - countSelected: _("# de % selectionné(e)s"), - noMatchesFound: _("Aucune correspondances trouvées") + formatSelectAll: () => _("[Tout sélectionner]"), + formatAllSelected: () => _("Tous"), + formatCountSelected: (count,total) => count + _("de") + total + _("selectionné(e)s"), + formatNoMatchesFound: () => _("Aucune correspondances trouvées") } ); @@ -510,7 +510,20 @@ function addLine (module, id, name) { + name + " " + " " - + " " + + " " + + " " + + " " + + " " + + " " + " " + "
" + " " diff --git a/Koha/Plugin/Carrousel/opac-carrousel.tt b/Koha/Plugin/Carrousel/opac-carrousel.tt index b243027..6ab53a5 100644 --- a/Koha/Plugin/Carrousel/opac-carrousel.tt +++ b/Koha/Plugin/Carrousel/opac-carrousel.tt @@ -368,6 +368,13 @@ a:focus>img{ max-width: 300px; max-height: 160px; } + +.controls button[type="button"] { + width: auto; + height: auto; + margin: 0; + padding: 0.2em 0.5em; +}