[GeoNetwork-users] Attaching parents

Hi

See feedback inline.

Regards,
Jose García

On Fri, Jun 29, 2018 at 8:08 AM, Peck-Choo Tan <P.Tan@anonymised.com> wrote:

Hi Jose,

I really need help desperately.

   1. I installed 3.4.2.war

   1. I copied iso19139.anzlic plugin from here to schema-plugins folder

https://github.com/metadata101/iso19139.anzlic

Question:

Where do I add this: src/main/resources/config-spring-geonetwork.xml
<https://github.com/metadata101/iso19139.anzlic/commit/8017c3b3399105d18a617815660cae7ea20403b0#diff-efa483686f42a79ef50333db5c3ae74a&gt;
?

@@ -5,5 +5,5 @@

     xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd&quot;&gt;

   <bean id="iso19139ANZLICSchemaPlugin"

- class="org.fao.geonet.schema.iso19139anzlic.
ISO19139ANZLICSchemaPlugin"/>

+ class="org.fao.geonet.schema.iso19139.ISO19139SchemaPlugin"/>

</beans>

Each schema when you build GeoNetwork generates a jar file that includes
the Java code in the schema (if available as not mandatory) and this file.
You need to build the schema from the source code.

In any case not really sure if that is really required as the schema
doesn't have Java code. I think probably you can ignore that file.

   1. I have problem with iso19139.anzlic plugin.

If a record has schemaid = ‘iso19139.anzlic’, in edit mode, it *does not
show* the ‘Associated Resources’ for me to attach a parent.

   1. If a record has schemaid = ‘iso19139’, ‘Associated Resources’ is
   present.
   2. Please see the 2 attached images to make what I trying to say
   clearer.

Is there anything else I need to add to make the iso19139.anzlic to show
‘‘Associated Resources’ in edit mode?

In 3.4.2 were done some changes in the way the side panel is configured,
previously was used a setting in the database, but now is configured in the
config-editor.xml, see
https://github.com/geonetwork/core-geonetwork/blob/3.4.x/schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml#L3076-L3085

You need to add that snippet in the views of your schema config-editor.xml

Any help/lead will be much appreciated.

Thanks.

Peck

*-----------------------------------------------------------------------------------------------------*

*Peck Choo Tan I Analyst Programmer GNS Science I Te Pῡ Ao*
1 Fairway Drive, Avalon 5010, PO Box 30368, Lower Hutt 5040, New Zealand

*Ph* 04 570 4739 I *Mob* 021 2178684

*http://www.gns.cri.nz/ *| Email*:
p.tan@anonymised.com <p.tan@anonymised.com>*

Notice: This email and any attachments are confidential and may not be
used, published or redistributed without the prior written consent of the
Institute of Geological and Nuclear Sciences Limited (GNS Science). If
received in error please destroy and immediately notify GNS Science. Do not
copy or disclose the contents.

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*

Hi Jose,

Great, ‘Associated Resources’ worked now for iso19139.anzlic…. except that it does not show the parent / child relationship after attaching a parent record.
For iso19139, it is good for both way relationship.

Please see screenshots.
Thanks.

Peck

From: Jose Garcia [mailto:jose.garcia@…444…]
Sent: Friday, 29 June 2018 6:25 PM
To: Peck-Choo Tan <P.Tan@...1298...>
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: Attaching parents

Hi

See feedback inline.

Regards,
Jose García

On Fri, Jun 29, 2018 at 8:08 AM, Peck-Choo Tan <P.Tan@...1298...<mailto:P.Tan@…1298…>> wrote:
Hi Jose,

I really need help desperately.

  1. I installed 3.4.2.war

  1. I copied iso19139.anzlic plugin from here to schema-plugins folder
https://github.com/metadata101/iso19139.anzlic

Question:
Where do I add this: src/main/resources/config-spring-geonetwork.xml<https://github.com/metadata101/iso19139.anzlic/commit/8017c3b3399105d18a617815660cae7ea20403b0#diff-efa483686f42a79ef50333db5c3ae74a&gt;?

@@ -5,5 +5,5 @@

     xsi:schemaLocation="http://www.springframework.org/schema/beans/spring-beans.xsd&quot;&gt;

   <bean id="iso19139ANZLICSchemaPlugin"

- class="org.fao.geonet.schema.iso19139anzlic.ISO19139ANZLICSchemaPlugin"/>

+ class="org.fao.geonet.schema.iso19139.ISO19139SchemaPlugin"/>

</beans>

Each schema when you build GeoNetwork generates a jar file that includes the Java code in the schema (if available as not mandatory) and this file. You need to build the schema from the source code.

In any case not really sure if that is really required as the schema doesn't have Java code. I think probably you can ignore that file.

  1. I have problem with iso19139.anzlic plugin.

If a record has schemaid = ‘iso19139.anzlic’, in edit mode, it does not show the ‘Associated Resources’ for me to attach a parent.

  1. If a record has schemaid = ‘iso19139’, ‘Associated Resources’ is present.
  2. Please see the 2 attached images to make what I trying to say clearer.

Is there anything else I need to add to make the iso19139.anzlic to show ‘‘Associated Resources’ in edit mode?

In 3.4.2 were done some changes in the way the side panel is configured, previously was used a setting in the database, but now is configured in the config-editor.xml, see https://github.com/geonetwork/core-geonetwork/blob/3.4.x/schemas/iso19139/src/main/plugin/iso19139/layout/config-editor.xml#L3076-L3085

You need to add that snippet in the views of your schema config-editor.xml

Any help/lead will be much appreciated.
Thanks.
Peck

-----------------------------------------------------------------------------------------------------
Peck Choo Tan I Analyst Programmer
GNS Science I Te Pῡ Ao
1 Fairway Drive, Avalon 5010, PO Box 30368, Lower Hutt 5040, New Zealand
Ph 04 570 4739 I Mob 021 2178684
http://www.gns.cri.nz/ | Email: p.tan@...1298...<mailto:p.tan@…1298…>

Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.

--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png\]<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png\]<https://www.facebook.com/geocatbv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png\] <https://twitter.com/geocat_bv&gt; [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png\] <https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.
Notice: This email and any attachments are confidential and may not be used, published or redistributed without the prior written consent of the Institute of Geological and Nuclear Sciences Limited (GNS Science). If received in error please destroy and immediately notify GNS Science. Do not copy or disclose the contents.

(attachments)

Parent_not_showing_for_iso19139.anzlic.docx (401 KB)

Hi

I have no experience with the 19139.anzlic schema, but most probably the
problem is with the indexing, check if the indexing files for 19139.anzlic
and 19139 have any difference related to the parent relationships.

For iso19139:
https://github.com/geonetwork/core-geonetwork/blob/3.4.x/schemas/iso19139/src/main/plugin/iso19139/index-fields/default.xsl#L899-L902

Regards,
Jose García

On Fri, Jun 29, 2018 at 8:52 AM, Peck-Choo Tan <P.Tan@anonymised.com> wrote:

Hi Jose,

Great, ‘Associated Resources’ worked now for iso19139.anzlic…. except
that it does not show the parent / child relationship after attaching a
parent record.

For iso19139, it is good for both way relationship.

Please see screenshots.

Thanks.

Peck

*From:* Jose Garcia [mailto:jose.garcia@anonymised.com]
*Sent:* Friday, 29 June 2018 6:25 PM
*To:* Peck-Choo Tan <P.Tan@anonymised.com>
*Cc:* geonetwork-users@lists.sourceforge.net
*Subject:* Re: Attaching parents

Hi

See feedback inline.

Regards,

Jose García

On Fri, Jun 29, 2018 at 8:08 AM, Peck-Choo Tan <P.Tan@anonymised.com> wrote:

Hi Jose,

I really need help desperately.

   1. I installed 3.4.2.war

   1. I copied iso19139.anzlic plugin from here to schema-plugins folder

https://github.com/metadata101/iso19139.anzlic

Question:

Where do I add this: src/main/resources/config-spring-geonetwork.xml
<https://github.com/metadata101/iso19139.anzlic/commit/8017c3b3399105d18a617815660cae7ea20403b0#diff-efa483686f42a79ef50333db5c3ae74a&gt;
?

@@ -5,5 +5,5 @@

     xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd&quot;&gt;

   <bean id="iso19139ANZLICSchemaPlugin"

- class="org.fao.geonet.schema.iso19139anzlic.
ISO19139ANZLICSchemaPlugin"/>

+ class="org.fao.geonet.schema.iso19139.ISO19139SchemaPlugin"/>

</beans>

Each schema when you build GeoNetwork generates a jar file that includes
the Java code in the schema (if available as not mandatory) and this file.
You need to build the schema from the source code.

In any case not really sure if that is really required as the schema
doesn't have Java code. I think probably you can ignore that file.

   1. I have problem with iso19139.anzlic plugin.

If a record has schemaid = ‘iso19139.anzlic’, in edit mode, it *does not
show* the ‘Associated Resources’ for me to attach a parent.

   1. If a record has schemaid = ‘iso19139’, ‘Associated Resources’ is
   present.
   2. Please see the 2 attached images to make what I trying to say
   clearer.

Is there anything else I need to add to make the iso19139.anzlic to show
‘‘Associated Resources’ in edit mode?

In 3.4.2 were done some changes in the way the side panel is configured,
previously was used a setting in the database, but now is configured in the
config-editor.xml, see https://github.com/geonetwork/
core-geonetwork/blob/3.4.x/schemas/iso19139/src/main/
plugin/iso19139/layout/config-editor.xml#L3076-L3085

You need to add that snippet in the views of your schema config-editor.xml

Any help/lead will be much appreciated.

Thanks.

Peck

*-----------------------------------------------------------------------------------------------------*

*Peck Choo Tan I Analyst Programmer GNS Science I Te Pῡ Ao*
1 Fairway Drive, Avalon 5010, PO Box 30368, Lower Hutt 5040, New Zealand

*Ph* 04 570 4739 I *Mob* 021 2178684

*http://www.gns.cri.nz/ *| Email*:
p.tan@anonymised.com <p.tan@anonymised.com>*

Notice: This email and any attachments are confidential and may not be
used, published or redistributed without the prior written consent of the
Institute of Geological and Nuclear Sciences Limited (GNS Science). If
received in error please destroy and immediately notify GNS Science. Do not
copy or disclose the contents.

--

Vriendelijke groeten / Kind regards,

Jose García

<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664 <+31318416664>

<https://www.facebook.com/geocatbv&gt; <https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;

Please consider the environment before printing this email.
Notice: This email and any attachments are confidential and may not be
used, published or redistributed without the prior written consent of the
Institute of Geological and Nuclear Sciences Limited (GNS Science). If
received in error please destroy and immediately notify GNS Science. Do not
copy or disclose the contents.

--

*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv&gt;
<https://twitter.com/geocat_bv&gt;
<https://plus.google.com/u/1/+GeocatNetbv/posts&gt;Please consider the
environment before printing this email.*