#693: Add complex text support (wiki markup or HTML in CDATA)
-------------------------+--------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: enhancement | Status: new
Priority: major | Milestone: Future release
Component: General | Version:
Keywords: |
-------------------------+--------------------------------------------------
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 ...
}}}
* Option 2: Use a wiki like syntax (eg.
http://trac.osgeo.org/geonetwork/wiki/WikiFormatting)
* Add custom parser for text fields (not handle by the browser)
* Probably less side effect on catalogue implementations (same as text)
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/693>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.