Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1107 closed enhancement (fixed)

Widgets / Search results / improve link layout

Reported by: fxp Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.10.0 RC0
Component: User interface (web) Version: v2.8.0RC1
Keywords: Cc:

Description

When having multiple links of the same type (eg. WMS), "add to map" icons are displayed next to each other:

Instead of the icon only layout, display dropdown button when relevant with labels:

Attachments (2)

geonetwork-sr-dropdown-links.png (41.5 KB ) - added by fxp 12 years ago.
geonetwork-sr-many-links.png (7.4 KB ) - added by fxp 12 years ago.

Download all attachments as: .zip

Change History (5)

by fxp, 12 years ago

comment:1 by fxp, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in 74d112834a77735f86c010ecf591abecb398c877

comment:2 by landry, 12 years ago

I know it's way too late for 2.8.0, but can this be backported to 2.8.x branch ? It fixes a bug caused by ticket 1008 fix - if i have such xml in the md :

<gmd:protocol><gco:CharacterString>WWW:DOWNLOAD-1.0-http--download</gco:CharacterString></gmd:protocol><gmd:name><gmx:MimeFileType type="application/x-compressed">ZAC.zip</gmx:MimeFileType></gmd:name>

The code in Template.js which is now in 2.8.x branch will generate TWO links for that download. Apparently the commit fixing that issue fixed this (i have to test it) but this is only fixed in master..

comment:3 by landry, 12 years ago

Can a snippet from this be backported to 2.8.x ? using 2.8.0 and the sample dataset, the widgets UI shows two duplicated download icons for each file attached for a metadata (basins.zip and phy.zip for example).

So, either backport the dropdown submenu, or just fix Template.js to not show two icons (this was added in https://github.com/geonetwork/core-geonetwork/commit/6e91b0d38ff82bd6cb18697268189d819cbfc720 when fixing #1008)

Note: See TracTickets for help on using tickets.