Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
No results found
Show changes
Commits on Source (3)
......@@ -112,6 +112,9 @@ vous devez procéder à l'étape d'installation de chacune d'elle.
## Changement de structure HTML pouvant impacter votre charte graphique
- 8.0.154 - 20/03/2022 : Suite à une amélioration RGAA des thèmes du magasin de thèmes,
les tag "a" servant à afficher un dropdown ont été modifiés en
tag "button".
\ No newline at end of file
- 8.0.154 - 20/03/2022 : Suite à une amélioration RGAA des thèmes du magasin de thèmes, les tag "a" servant à afficher un dropdown ont été modifiés en tag "button".
## Changement de bibliothèques indispensables au fonctionnement de Bokeh pouvant impacter vos scripts et votre charte graphique
- 8.0.158 - 16/05/2022 : Passage de jQuery 3.2.1 en 3.6.0
......@@ -64,10 +64,6 @@ class Intonation_View_OsmMap extends ZendAfi_View_Helper_BaseHelper {
public function renderHeadScriptsOn($script_loader) {
$script_loader
->loadJQuery()
->loadJQueryUI()
->addOPACScript('subModal')
->addAdminScripts(['onload_utils', 'global'])
->loadLeafletJS()
->addOPACScripts(['openStreetMap/openStreetMap.js',
'openStreetMap/leaflet.markercluster.js'])
......
......@@ -245,10 +245,9 @@ abstract class Intonation_View_RenderRecord_RenderItemsStrategy {
protected function _itemsWithMap(array $items, array $same_work, array $html) : array {
$html [] = $this->_renderMapHTML($items, $same_work);
return
array_merge($html,
$this->_itemsWithoutMap($items, $same_work, $html));
return $this->_itemsWithoutMap($items,
$same_work,
[$this->_renderMapHTML($items, $same_work)]);
}
......
......@@ -1039,7 +1039,6 @@ class TemplatesSearchItems15ItemsPaginationThreshold12AndAvailabilityKohaLimit1A
class TemplatesSearchItems15ItemsPaginationThreshold20AndAvailabilityKohaLimit20AndMapTests
extends TemplatesSearchItemsKohaThresholdsTestCase {
......@@ -1094,7 +1093,13 @@ class TemplatesSearchItems15ItemsPaginationThreshold20AndAvailabilityKohaLimit20
/** @test */
public function mapShouldBePresent() {
$this->assertXPath('//div//div[contains(@class,"items_map")]');
public function mapShouldBePresentOnlyOnce() {
$this->assertXPathCount('//div//div[contains(@class,"items_map col-12 mb-3")]', 1);
}
/** @test */
public function jqueryShouldNotBeNotBeLoaded() {
$this->assertNotXPath('//script[contains(@src, "jquery")]');
}
}
\ No newline at end of file