Hi Ursula,
this is not an answer, sorry. I cancelled adding another iso19115 profile, in stead I'm playing with iso19139 right now (with a lot of errors regarding document validation). However, maybe the following notes will help you to figure out files which have to be changed for your purpose. My new profile was called iso19115-preagro. It wasn't fully working, if I succeed I might provide a howto for adding another iso19139 schema.
God luck!
Martin
geonetwork\web\loc\*\xml\iso19115-preagro.xml
copy of iso19115.xml
geonetwork\web\xml\search\iso19115-preagro.xsl
copy of iso19115.xsl
geonetwork\web\xml\schemas\iso19115-preagro\
copy of iso19115\
geonetwork\web\xml\schemas\iso19115-preagro\schema.xsd
*** adapted in ContInfoTypes
geonetwork\web\xsl\metadata.xsl
28+ <!-- ISO 19115-preagro -->
<xsl:when test="$schema='iso19115-preagro'">
<xsl:apply-templates mode="iso19115-preagro" select="." >
<xsl:with-param name="schema" select="$schema"/>
<xsl:with-param name="edit" select="$edit"/>
</xsl:apply-templates>
</xsl:when>
geonetwork\web\xsl\metadata-edit.xsl
128= <xsl:for-each select="/root/*[name(.)='Metadata']">
geonetwork\web\xsl\metadata-iso19115-preagro.xsl
adapted copy of metadata-iso19115.xsl
(replace iso19115 with iso19115-preagro)
geonetwork\web\xsl\metadata-utils.xsl
7+ <xsl:include href="metadata-iso19115-preagro.xsl"/>
33+ <xsl:when test="name(.)='Metadata'">iso19115-preagro</xsl:when>
58+ <!-- ISO 19115-preagro -->
<xsl:when test="$schema='iso19115-preagro'">
<xsl:call-template name="iso19115-preagroBrief"/>
</xsl:when>
Ursula Hoernes wrote:
> hi all,
>
> i wonder if anyone knows a solution to rainer´s question below. or maybe
> you found a solution by yourself, rainer?
>
> my geonetwork runs on tomcat with mysql and i did the same steps as
> mentioned below. i also got the same funny formatted output where the
> element-names appear in [brackets]. what is the reason?
>
> my context: i´d like to create my own metadata profile based on iso19115
> with some user-extensions and use it in geonetwork.
>
> up to now i have found some mails describing only very basic parts of
> the procedure. is there a more detailed tutorial anywhere that i have
> overlooked?
> if not, it would be really great if someone could write some sort of
> "how to" describing the necessary steps for creating a new metadata
> profile within geonetwork. i guess there are already some of you working
> on new profiles...
>
> thanks a lot,
>
> ursula
>
> +++ Original message from Rainer Spittel +++
>
> Hi all,
>
> I want to extend the ISO19115 schema (kuje Matin Kofahl) and have done
> following steps:
>
> (1) I made a copy of the /web/xml/schemas/iso19115 folder, called
> /web/xml/schemas/myiso19115
>
> (2) I made a copy of the /web/xml/search/iso19115.xsl file and named
> it
> /web/xml/search/myiso19115.xsl
>
> (3) I have restarted Tomcat (Geonetwork is running on Tomcat and
> MySQL)
>
> (4) I imported a metadata XML file via "XML Metadata Insert" and have
> selected the new schema "myiso19115". Everything works fine.
>
> But:
>
> - When I search for my new entry, I find it, but I receive an "empty
> hit": no title, no abstract, nothing. The buttons are available. When I
> click on Metadata, I see all metadata, but the layout of the Metadata
> page is not like the layout of the 19115 page.
>
> - When I view my new metadata entry, the field names are named like in
> the XML file. I tried to figure out what I have to copy to create a XML
> schema to view the new schema properly, but without success.
>
> May you can help me. I struggle a little bit with that. What did I
> forget?
>
> Cheers
> Rainer
>
> +++ Original message from Rainer Spittel +++
Ursula Hoernes wrote:
hi all,
i wonder if anyone knows a solution to rainer´s question below. or maybe
you found a solution by yourself, rainer?
my geonetwork runs on tomcat with mysql and i did the same steps as
mentioned below. i also got the same funny formatted output where the
element-names appear in [brackets]. what is the reason?
my context: i´d like to create my own metadata profile based on iso19115
with some user-extensions and use it in geonetwork.
up to now i have found some mails describing only very basic parts of
the procedure. is there a more detailed tutorial anywhere that i have
overlooked?
if not, it would be really great if someone could write some sort of
"how to" describing the necessary steps for creating a new metadata
profile within geonetwork. i guess there are already some of you working
on new profiles...
thanks a lot,
ursula
+++ Original message from Rainer Spittel +++
Hi all,
I want to extend the ISO19115 schema (kuje Matin Kofahl) and have done
following steps:
(1) I made a copy of the /web/xml/schemas/iso19115 folder, called
/web/xml/schemas/myiso19115
(2) I made a copy of the /web/xml/search/iso19115.xsl file and named
it
/web/xml/search/myiso19115.xsl
(3) I have restarted Tomcat (Geonetwork is running on Tomcat and
MySQL)
(4) I imported a metadata XML file via "XML Metadata Insert" and have
selected the new schema "myiso19115". Everything works fine.
But:
- When I search for my new entry, I find it, but I receive an "empty
hit": no title, no abstract, nothing. The buttons are available. When I
click on Metadata, I see all metadata, but the layout of the Metadata
page is not like the layout of the 19115 page.
- When I view my new metadata entry, the field names are named like in
the XML file. I tried to figure out what I have to copy to create a XML
schema to view the new schema properly, but without success.
May you can help me. I struggle a little bit with that. What did I
forget?
Cheers
Rainer
+++ Original message from Rainer Spittel +++
--
Universität Rostock
Agrar- und Umweltwissenschaftliche Fakultät
Geodäsie und Geoinformatik
Martin Kofahl
Justus-v.-Liebig Weg 6 / Zimmer 72
18059 Rostock
Tel. +49 381 498 2165
Fax. +49 381 498 2188
martin.kofahl@anonymised.com
http://www.auf.uni-rostock.de/
http://www.auf.uni-rostock.de/gg/