[GeoNetwork-devel] Link to my map browser

Hello,
I'd like to use the fild "OnlineResource/URL" to store the link to my map
browser.
In editing I write the right url in the fild and than,
after launching the metadata search, I'd like to have the link close to each
metadata.
I'm working on "search-results-xhtml.xsl" file, in "<xsl:template
name="hit">",
but I can't refer to the URL fild.

I try to use:

1) <xsl:template name="help"
match="/gmd:MD_Metadata/gmd:distributionInfo/gmd:MD_Distribution/gmd:transferOptions/gmd:MD_DigitalTransferOptions/gmd:onLine/gmd:CI_OnlineResource/gmd:linkage/gmd_URL">
but it doesn't work.

2) <xsl:template mode="iso19139" name="help"
match="gmd:CI_OnlineResource[starts-with(gmd:protocol/gco:CharacterString,'OGC:WMS-')]">
but it doesn't work and I don't understand the meaning of mode="iso19139" in
template.

3) <xsl:variable name="cc">
  <xsl:apply-templates mode="brief" select="/root/response"/>
   </xsl:variable>
in the variable "cc" I've a long string, in which I see my url, but I don't
know how to extract it.

Someone can help me?
Thx :slight_smile:
Clara
--
View this message in context: http://n2.nabble.com/Link-to-my-map-browser-tp4688064p4688064.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hallo,
I solved my problem in this way:

<xsl:variable name="myURL" select="$metadata/link[@type='wms']"/>

and manupulating "myURL" with a JavaScript function.

See you,
Clara
--
View this message in context: http://n2.nabble.com/Link-to-my-map-browser-tp4688064p4709404.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.