Hi,
I tried to register a new schema by using the documentation [1] and downloading source code from the GitHub repo [2]. To get a quick start, I copied one of the schema folder (e.g. iso19139) and modified it for my purposes - this works quite fine. Metadata details are filled correctly in the details view, but unfortunately information in the search results view are not displayed.
I found out that I should prepare a brief template in the metadata.xsl (in new schema folder), but I think this is not used by the Geonetwork scripts? The definition looks like this:
(name of the new schema is mcp)
<xsl:template name="mcpBrief">
<metadata>
<xsl:variable name="download_check"><xsl:text>&fname=&access</xsl:text></xsl:variable>
<xsl:variable name="id" select="geonet:info/id"/>
<xsl:variable name="uuid" select="geonet:info/uuid"/>
<xsl:if test="//mcp:wpsProcessDescription/ows:Title">
<title><xsl:value-of select="//mcp:wpsProcessDescription/ows:Title"/></title>
</xsl:if>
<xsl:if test="mcp:functionality/mcp:wpsProcessDescription/ows:Abstract">
<abstract><xsl:value-of select="mcp:functionality/mcp:wpsProcessDescription/ows:Title"/></abstract>
</xsl:if>
<xsl:for-each select="dataIdInfo/descKeys/keyword[text()]">
<xsl:copy-of select="."/>
</xsl:for-each>
</metadata>
</xsl:template>
Do I have to modify further xsl-files? Or do I have to use other naming conventions, such as using the template name "mcp-brief"?
[1] http://geonetwork-opensource.org/manuals/trunk/eng/developer/schemaPlugins/index.html#creating-the-presentations-xslts-in-the-present-directory
[2] https://github.com/geonetwork/core-geonetwork
--
Dipl.-Medieninf. Christin Henzen
Geoinformation Systems
Faculty of Environmental Sciences
Technische Universität Dresden
01062 Dresden
email: christin.henzen@anonymised.com
www: http://tu-dresden.de/uw/geo/gis