From: <fxp...@us...> - 2009-02-19 13:21:13
|
Revision: 2267 http://geonetwork.svn.sourceforge.net/geonetwork/?rev=2267&view=rev Author: fxprunayre Date: 2009-02-19 13:03:13 +0000 (Thu, 19 Feb 2009) Log Message: ----------- Added dataset/service icon in search results. Added type to ogc full resultsets (CSW branch provides full and valid resultsets). Modified Paths: -------------- sandbox/geocat.ch/trunk/web/geonetwork/images/service.gif sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js sandbox/geocat.ch/trunk/web/geonetwork/xml/csw/schemas/iso19139/ogc-full.xsl Modified: sandbox/geocat.ch/trunk/web/geonetwork/images/service.gif =================================================================== (Binary files differ) Modified: sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js 2009-02-19 11:34:25 UTC (rev 2266) +++ sandbox/geocat.ch/trunk/web/geonetwork/scripts/mapfishIntegration/geocat.js 2009-02-19 13:03:13 UTC (rev 2267) @@ -1714,8 +1714,11 @@ ' <xsl:if test="$isSelected=\'true\'">\n' + ' <xsl:attribute name="checked">true</xsl:attribute>\n' + ' </xsl:if>\n' + - ' </input>\n' + - ' <a href="javascript:geocat.openLink(0, \'showFromUrl\', \'metadata.show.embedded?id={geonet:info/id}&currTab=simple\');"><xsl:value-of select="dc:title"/></a></h2>' + + ' </input> \n' + + ' <a href="javascript:geocat.openLink(0, \'showFromUrl\', \'metadata.show.embedded?id={geonet:info/id}&currTab=simple\');"><xsl:value-of select="dc:title"/></a>\n' + + // Add icon for dataset and service metadata only. + ' <xsl:if test="dc:type and (dc:type=\'dataset\' or dc:type=\'service\')"> <img src="../../images/{dc:type}.gif" alt="{dc:type}" title="{dc:type}"/></xsl:if>' + + ' </h2>' + ' <br/><i>' + translate('abstract') + ':</i>' + ' <xsl:choose>' + ' <xsl:when test="string-length(dct:abstract) > ' + geocat.maxAbstract + '"><xsl:value-of select="substring(dct:abstract, 0, ' + geocat.maxAbstract + ')"/> (...)</xsl:when>' + Modified: sandbox/geocat.ch/trunk/web/geonetwork/xml/csw/schemas/iso19139/ogc-full.xsl =================================================================== --- sandbox/geocat.ch/trunk/web/geonetwork/xml/csw/schemas/iso19139/ogc-full.xsl 2009-02-19 11:34:25 UTC (rev 2266) +++ sandbox/geocat.ch/trunk/web/geonetwork/xml/csw/schemas/iso19139/ogc-full.xsl 2009-02-19 13:03:13 UTC (rev 2267) @@ -51,6 +51,13 @@ </dc:title> </xsl:for-each> + <!-- Type - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> + + <xsl:for-each select="../../gmd:hierarchyLevel/gmd:MD_ScopeCode/@codeListValue"> + <dc:type><xsl:value-of select="."/></dc:type> + </xsl:for-each> + + <xsl:for-each select="gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode/@codeListValue='revision']/gmd:date"> <dct:modified><xsl:value-of select="gco:Date|gco:DateTime"/></dct:modified> </xsl:for-each> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |