Opened 13 years ago

#693 new enhancement

Add complex text support (wiki markup or HTML in CDATA)

Reported by: fxp Owned by: geonetwork-devel@…
Priority: major Milestone: Future release
Component: General Version:
Keywords: Cc:

Description

GeoNetwork currently support linebreaks in text field and replace it by <p> tags in HTML. It also replace hyperlink (url or email) with <a> tag (according to system configuration). A common need is to be able to add a bit more structured text with at least the following:

  • bold element
  • list item

Structured text for textarea :

  • Option 1: Using CDATA
    • in editing mode, add an advanced field to be able to create HTML content to be embedded in gco:CharacterString using CDATA
    • Complex formatting using full HTML syntax (handled by the browser in view mode)
    • Need to test all XSLTs to take care of CDATA element (at least change select value of by copy value of - currently GeoNetwork will probably remove all HTML tags)
    • Filter JS insertion which may cause trouble once interprated by the browser (?)
    • Probably not supported by most of current catalogue implementation (to be checked)
<gmd:abstract>
  <gco:CharacterString><![CDATA[<p><u>Short description:</u></p>
<p>The Operational Mercator global Ocean analysis and forecast 
system - (1/4 degree) eddy permitting with a higher resolution (1/12 
degree) in the Atlantic and Med Sea- is running every week providing 
14 days of 3D global ocean forecast as well as 14 days of ocean 
analysis. This product includes daily files of temperature, 
salinity, currents, sea level and ice parameters from the top to the 
bottom of the Ocean over various areas covering the Glo ...

Change History (0)

Note: See TracTickets for help on using tickets.