Opened 12 years ago

Closed 12 years ago

#1101 closed defect (fixed)

Editor / Add a function to create a add subtemplate button outside an element control

Reported by: fxp Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.10.0 RC0
Component: General Version: v2.8.0RC1
Keywords: Cc:

Description

Currently add subtemplate button is only available in the last element of a type. Add a generic function to create a custom button to be place outside element scope (eg. at the head of a section).

Change History (1)

comment:1 by fxp, 12 years ago

Resolution: fixed
Status: newclosed

Commit ac4c1ce077de91de51b12807fc12e96130ce7225

Example: Add a button to add point of contact in identification info

            <xsl:copy-of select="geonet:makeSubTemplateButton(gmd:identificationInfo/gmd:MD_DataIdentification/geonet:element/@ref, 
                                                                    'gmd:pointOfContact', 
                                                                    'gmd:CI_ResponsibleParty', 
                                                                    /root/gui/strings/addXMLFragment,
                                                                    /root/gui/strings/addXMLFragment)"/>
Note: See TracTickets for help on using tickets.