Project

General

Profile

Actions

bug #9463

open

UniversalViewer causes jQuery version conflict and breaks maps

Added by Andreas Kohlbecker about 3 years ago. Updated 6 months ago.

Status:
In Progress
Priority:
Priority14
Assignee:
Category:
cdm-dataportal
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Severity:
critical
Found in Version:

Description

When taxon pages are configured tab-less the image-viwer (Universalviewer - UV) is shown together with maps on the same page.

The UV loads jQuery version 3.* which is brought with /uv/lib/offline.js this version becomes global and conflicts with the Drual jQuery version of 1.4.*

locally*

http://edit.test/d7/caryophyllales/cdm_dataportal/taxon/806b5aaf-1e8b-4da1-ae8d-08b1ab9736be/specimens

edit-production

http://caryophyllales.org/caryophyllales_spp/cdm_dataportal/taxon/806b5aaf-1e8b-4da1-ae8d-08b1ab9736be/specimens

Severity:

Only portal with images (see #8912) which are using the universal viewer + tables taxon pages (dataportals-drush-vget cdm_dataportal_taxonpage_tabs) are affected by this bug. At current these are:

Relevant literature:

Debugging:

Universaviewer code is minified, for debugging, build the universalviewer project with the --dev option:

grunt build --dev  

You also can temporarily replace the folder modules/cdm_dataportal/js/universalviewer/uv by a symlink to the univeralviewer
projekt, so "instant deployment" of the uv code to the dataportal project.
See also modules/cdm_dataportal/js/universalviewer/UPDATE.md for some more information.


Related issues

Related to EDIT - task #5083: Alternative image viewer for dataportalClosedAndreas Kohlbecker

Actions
Related to EDIT - bug #9743: Universal Viewer - metadata component gets lost on leaving fullscreen mode NewAndreas Kohlbecker

Actions
Has duplicate EDIT - bug #10399: Map sometimes not shown in portal without tabsDuplicateKatja Luther

Actions
Actions

Also available in: Atom PDF