[GeoNetwork-users] Creating new "shortcut" action button

Hi,
I would like to be able to add a button like the "Interactive Map" button to
the resume view of a WMS.
The idea is to promote the use of a WMS into a selected application.
I've been able to add in the Metadata a link to my selected application in
the "Transfer Option" list with a proper label but I would like now to be
able to promote this label in the resume view of the Metadata in the same
form as the "Interactive Map" button.

Does someone already try this or can point me to the right direction to try
to do so ?

Thanks,

Cheers,

Lionel

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Creating-new-shortcut-action-button-tp4984264.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

I reply to myself with a quick (dirty ?) hack to enable this feature.
The modification block below is added to the file search-results-xhtml.xsl
The localization has not been consider so the label of this action button
will always be: "Related URL" no matter what language is selected.
I found this feature to be really practical as more and more mashups
containing resources such as WMS are available these days. Having a mean to
directly link a given resource to what the data provider consider the best
mashup client is definitely a plus.
Any comment to enhance or discuss this feature is welcome.

Lionel

<xsl:if test="$metadata/geonet:info/download='true'">
                                                &#160;
                                                <xsl:choose>
                                                        <xsl:when
test="count($metadata/link[@type='url'])>1">
                                                                <xsl:choose>
                                                                       
<xsl:when test="$remote=true()">
                                                                               
<button class="content"
onclick="load('{/root/gui/locService}/remote.show?id={$metadata/geonet:info[server]/i\
d}&amp;currTab=distribution')" title="Related URL">
                                                                                       
Related URL
                                                                               
</button>
                                                                       
</xsl:when>
                                                                       
<xsl:otherwise>
                                                                               
<button class="content"
onclick="load('{/root/gui/locService}/metadata.show?id={$metadata/geonet:info/id}&amp\
;currTab=distribution')" title="Related URL">
                                                                                       
Related URL
                                                                               
</button>
                                                                       
</xsl:otherwise>
                                                               
</xsl:choose>
                                                        </xsl:when>
                                                        <xsl:when
test="count($metadata/link[@type='url'])=1 and $metadata/link[@type='url']
!= ''">
                                                                <button
class="content" onclick="load('{$metadata/link[@type='url']}')"
title="Related URL">
                                                                       
Related URL
                                                                </button>
                                                        </xsl:when>
                                                </xsl:choose>
                                        </xsl:if>

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Creating-new-shortcut-action-button-tp4984264p4985331.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.