From: Francois P. <fx....@gm...> - 2009-11-24 11:53:42
|
Hi all, testing OpenLayers CSW format I'm facing an issue on FGDC demo data we have after setup. It looks like FGDC extract-uuid always return an empty UUID. I would suggest to add the following to CSW output mapping in order to always have a UUID in CSW response. Index: web/geonetwork/xml/csw/schemas/fgdc-std/ogc-*.xsl - <xsl:for-each select="idinfo/citation/citeinfo/title/@cat_id"> - <dc:identifier><xsl:value-of select="."/></dc:identifier> - </xsl:for-each> - + <xsl:choose> + <xsl:when test="idinfo/citation/citeinfo/title/@cat_id"> + <xsl:for-each select="idinfo/citation/citeinfo/title/@cat_id"> + <dc:identifier><xsl:value-of select="."/></dc:identifier> + </xsl:for-each> + </xsl:when> + <xsl:otherwise> + <dc:identifier><xsl:value-of select="geonet:info/uuid"/></dc:identifier> + </xsl:otherwise> + </xsl:choose> Does this sounds good to FGDC users ? Thanks. Francois |