[GeoNetwork-users] modify Create/Insert Schemas

Hi all,

I must modify the Create/Insert Schemas. Can someone call the associated java classes.
I work with geonetwork 2.2.0.

Thanks and best regards
Joerg

Hi Joerg,

What do you mean by "I must modify the Create/Insert Schemas".

May this tutorial help you ?
http://geonetwork-opensource.org/documentation/how-to/geonetwork-v2-2-shema-template-howto

Feel free to give list more details,
HTH

Cheers,
Mathieu

On Fri, Mar 6, 2009 at 9:54 AM, Joerg Matthes <Joerg.Matthes@anonymised.com> wrote:

Hi all,

I must modify the Create/Insert Schemas. Can someone call the associated
java classes.
I work with geonetwork 2.2.0.

Thanks and best regards
Joerg

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

--
Mathieu Coudert
mcoudert@anonymised.com

Hi all,

thanks for the link.

Ok we need another textbox in the forms of metadata-create.xsl and
metadata-insert-form.xsl.
I have added a textbox in these schemas files, now the value of the
textbox must send to the next form and then with the metadates in the
database. So I need the associated java classes for the
metadata-create.xsl and java classes to write the metadata data in the db.

As db we use mysql and have create a new field in the table metadata.
The sourcen are installed, but I don 't know which classes are correct.

Joerg

Mathieu Coudert schrieb:

Hi Joerg,

What do you mean by "I must modify the Create/Insert Schemas".

May this tutorial help you ?
http://geonetwork-opensource.org/documentation/how-to/geonetwork-v2-2-shema-template-howto

Feel free to give list more details,
HTH

Cheers,
Mathieu

On Fri, Mar 6, 2009 at 9:54 AM, Joerg Matthes <Joerg.Matthes@anonymised.com
<mailto:Joerg.Matthes@anonymised.com>> wrote:

    Hi all,

    I must modify the Create/Insert Schemas. Can someone call the
    associated
    java classes.
    I work with geonetwork 2.2.0.

    Thanks and best regards
    Joerg

    ------------------------------------------------------------------------------
    Open Source Business Conference (OSBC), March 24-25, 2009, San
    Francisco, CA
    -OSBC tackles the biggest issue in open source: Open Sourcing the
    Enterprise
    -Strategies to boost innovation and cut costs with open source
    participation
    -Receive a $600 discount off the registration fee with the source
    code: SFAD
    http://p.sf.net/sfu/XcvMzF8H
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

--
Mathieu Coudert
mcoudert@anonymised.com <mailto:mcoudert@anonymised.com>

Joerg,

Here you have some clues to help you go ahead...

First, metadata create form calls the metadata.create service as you can see
below :

<form name="createform" accept-charset="UTF-8"
action="/geonetwork/srv/fr/metadata.create" method="post">

Then, if you have a look to the xml config file for metadata service
(config-metadata.xml) you will have the description of the metadata.create
service, described below :

<service name="metadata.create">
    <class name=".services.metadata.Create"/>

     <output forward="metadata.edit" />
</service>

You can then see that called java class is : Create (Create.java file in
package org.fao.geonet.services.metadata).

So you just have to modifiy this class to get your param(s) and insert them
into your current database (using dbms).

HTH,

Cheers,
Mathieu

On Fri, Mar 6, 2009 at 12:57 PM, Joerg Matthes <Joerg.Matthes@anonymised.com> wrote:

Hi all,

thanks for the link.

Ok we need another textbox in the forms of metadata-create.xsl and
metadata-insert-form.xsl.
I have added a textbox in these schemas files, now the value of the
textbox must send to the next form and then with the metadates in the
database. So I need the associated java classes for the
metadata-create.xsl and java classes to write the metadata data in the db.

As db we use mysql and have create a new field in the table metadata.
The sourcen are installed, but I don 't know which classes are correct.

Joerg

Mathieu Coudert schrieb:
> Hi Joerg,
>
> What do you mean by "I must modify the Create/Insert Schemas".
>
> May this tutorial help you ?
>
http://geonetwork-opensource.org/documentation/how-to/geonetwork-v2-2-shema-template-howto
>
> Feel free to give list more details,
> HTH
>
> Cheers,
> Mathieu
>
> On Fri, Mar 6, 2009 at 9:54 AM, Joerg Matthes <Joerg.Matthes@anonymised.com
> <mailto:Joerg.Matthes@anonymised.com>> wrote:
>
> Hi all,
>
> I must modify the Create/Insert Schemas. Can someone call the
> associated
> java classes.
> I work with geonetwork 2.2.0.
>
> Thanks and best regards
> Joerg
>
>
>
------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source
> code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> <mailto:GeoNetwork-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
>
>
>
> --
> Mathieu Coudert
> mcoudert@anonymised.com <mailto:mcoudert@anonymised.com>

--
Mathieu Coudert
mcoudert@anonymised.com

Hi Mathieu,

best Thanks, this will help us.

Best regards
Jörg

Mathieu Coudert schrieb:

Joerg,

Here you have some clues to help you go ahead...

First, metadata create form calls the metadata.create service as you can see
below :

<form name="createform" accept-charset="UTF-8"
action="/geonetwork/srv/fr/metadata.create" method="post">

Then, if you have a look to the xml config file for metadata service
(config-metadata.xml) you will have the description of the metadata.create
service, described below :

<service name="metadata.create">
    <class name=".services.metadata.Create"/>

     <output forward="metadata.edit" />
</service>

You can then see that called java class is : Create (Create.java file in
package org.fao.geonet.services.metadata).

So you just have to modifiy this class to get your param(s) and insert them
into your current database (using dbms).

HTH,

Cheers,
Mathieu

On Fri, Mar 6, 2009 at 12:57 PM, Joerg Matthes <Joerg.Matthes@anonymised.com> wrote:

Hi all,

thanks for the link.

Ok we need another textbox in the forms of metadata-create.xsl and
metadata-insert-form.xsl.
I have added a textbox in these schemas files, now the value of the
textbox must send to the next form and then with the metadates in the
database. So I need the associated java classes for the
metadata-create.xsl and java classes to write the metadata data in the db.

As db we use mysql and have create a new field in the table metadata.
The sourcen are installed, but I don 't know which classes are correct.

Joerg

Mathieu Coudert schrieb:
    

Hi Joerg,

What do you mean by "I must modify the Create/Insert Schemas".

May this tutorial help you ?

http://geonetwork-opensource.org/documentation/how-to/geonetwork-v2-2-shema-template-howto
    

Feel free to give list more details,
HTH

Cheers,
Mathieu

On Fri, Mar 6, 2009 at 9:54 AM, Joerg Matthes <Joerg.Matthes@anonymised.com
<mailto:Joerg.Matthes@anonymised.com>> wrote:

    Hi all,

    I must modify the Create/Insert Schemas. Can someone call the
    associated
    java classes.
    I work with geonetwork 2.2.0.

    Thanks and best regards
    Joerg

------------------------------------------------------------------------------
    

    Open Source Business Conference (OSBC), March 24-25, 2009, San
    Francisco, CA
    -OSBC tackles the biggest issue in open source: Open Sourcing the
    Enterprise
    -Strategies to boost innovation and cut costs with open source
    participation
    -Receive a $600 discount off the registration fee with the source
    code: SFAD
    http://p.sf.net/sfu/XcvMzF8H
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

--
Mathieu Coudert
mcoudert@anonymised.com <mailto:mcoudert@anonymised.com>
      

Using svn trunk, when updating my user information
(/geonetwork/srv/en/user.infoedit?id=$id when logged in as a user,
/geonetwork/srv/en/user.get?id=$id when logged in as admin), I find most
of the form nicely organized.

I notice that there is no "City" field for user information. Where is a
user's City information supposed to go? Can we add this as a field?
This would (at least) involve:

- alter table Users add column city varchar(128)
- updating the user information form
- updating the code between the form and the db

There may be other areas.

Comments? If this is useful/viable, I can file a ticket.

..Tom

Hi Tom,
Yes, I think you would best file a ticket and possibly provide the patch if you have it.
Ciao,
Jeroen

On Mar 6, 2009, at 6:58 PM, Kralidis,Tom [Ontario] wrote:

Using svn trunk, when updating my user information
(/geonetwork/srv/en/user.infoedit?id=$id when logged in as a user,
/geonetwork/srv/en/user.get?id=$id when logged in as admin), I find most
of the form nicely organized.

I notice that there is no "City" field for user information. Where is a
user's City information supposed to go? Can we add this as a field?
This would (at least) involve:

- alter table Users add column city varchar(128)
- updating the user information form
- updating the code between the form and the db

There may be other areas.

Comments? If this is useful/viable, I can file a ticket.

..Tom

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
Best Open Source Mac Front-Ends 2024
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at GeoNetwork - Geographic Metadata Catalog download | SourceForge.net