Opened 14 years ago

Last modified 12 years ago

#437 new enhancement

Tooltips would be better if they took html.

Reported by: justinrowles Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.6.5
Component: General Version: v2.6.2
Keywords: Cc:

Description

HTML in tooltips would allow for better descriptions.

The attached patch checks for a 'code' tag as the content of a 'description' tag, and if so reads the content as html instead of stripping it as at present.

Thus we have at present:

<element name="gmd:DQ_Scope" id="138.0">

<label>Scope</label>

<description>

Description of the data specified by the scope

</description>

<help>

extent of characteristic(s) of the data for which quality information is reported

</help>

</element>

Which could be replaced with:

<element name="gmd:DQ_Scope" id="138.0">

<label>Scope</label>

<description>

<code>

<p>Description of the data <i>specified</i> by the <b>scope</b>

</code>

</description>

<help>

extent of characteristic(s) of the data for which quality information is reported

</help>

</element>

Attachments (1)

htmlTooltips.diff (4.4 KB ) - added by justinrowles 14 years ago.

Download all attachments as: .zip

Change History (4)

by justinrowles, 14 years ago

Attachment: htmlTooltips.diff added

comment:1 by justinrowles, 14 years ago

I believe this patch causes an issue with the harvesting pages, due to the same javascript being used. Don't use it without checking or until I add a better one.

comment:2 by justinrowles, 14 years ago

Type: defectenhancement

comment:3 by ianwallen, 12 years ago

Milestone: v2.6.3v2.6.5
Note: See TracTickets for help on using tickets.