[GeoNetwork-users] Issues with "directories"/"directives"/"sub-template indexes" [SEC=UNCLASSIFIED]

Hi Guys

I'm having issues configuring sub-templates in GeoNetwork 3.4.2 for a complex editing interface using ISO19115-3 records

                In 3.4.1:

Editing interface works

Directives work

Labelling of sub-template instance labels fails for some

Unable to successfully update index-subtemplate.xml

    Sub-template indexes worked in GN3.2.1

I have added the schema_plugin(s) iso19115-3

                No issues (from GitHub)

I have added new iso19115-3/layout/config-editor.xml

                No major issues (copied from 3.2.1 instance)

I have added templates for:

                Describing data (<mdb:MD_Metadata>..</mdb:MD_Metadata>)

                                No issues

                Describing services (<mdb:MD_Metadata>..</mdb:MD_Metadata>)

                                No issues

                Directories/directives

                                Legal constraints (<mco:MD_LegalConstraints>...</mco:MD_LegalConstraints>)

                                                No issues (out of the box directive and sub-template index)

                                Legal constraints (<mco:MD_SecurityConstraints>...</mco:MD_SecurityConstraints>)

                                                No issues (out of the box directive and sub-template index)

                                Organisation & Contacts [& re-settable role] (<cit:CI_Responsibility>...</cit:CI_Responsibility>)

                                                No issues (out of the box directive and sub-template index)

                                Organisation (<cit:CI_Organisation>...</cit:CI_ Organisation >)

                                                ISSUE: does not present name

                                                                Needed as can have multiple organisation with the same role

                                Individual (<cit:CI_Individual>...</cit:CI_Individual>)

                                                ISSUE: does not present name

                                                                Needed as can have multiple individuals with the same role

                                                                Needed as can have multiple individuals within the same organisation with the same role

                                Address (<cit:CI_Address>...</cit:CI_Address>)

                                                ISSUE: does not present "label" (from deliveryPoint, or city)

                                                                Needed as can have multiple addresses per organisation and/or individuals with the same role

                                Format (<mrd:MD_Format>... </mrd:MD_Format>)

                                                ISSUE: does not present title

                                                                Needed

Adding the directive to the schema_plugins/iso19115-3/index-fields/index-subtemplate.xml file

ISSUE: causes GN to crash

Any hints?

    Must I add text into the geonetwork/catalog/locales/en-editor.json file

                So that the sub-templates have appropriate labels?

                                Seemed to make GN to crash (might have been a compounded issue)

Suggestions gratefully accepted!

Cheers

e
BLEYS Evert Mr
Data Manager
Australian Bureau of Agricultural and Resource Economics and Sciences
Department of Agriculture and Water Resources
GPO Box 858 Canberra City ACT Australia 2601
44 Mort St Braddon ACT 2612
Ph: +61 (0)2 6272 5627
Email: Evert.Bleys@anonymised.com

------
IMPORTANT - This email and any attachments have been issued by the Australian Government Department of Agriculture and Water Resources. The material transmitted is for the use of the intended recipient only and may contain confidential, legally privileged, copyright or personal information. You should not copy, use or disclose it without authorisation from the Department. It is your responsibility to check any attachments for viruses and defects before opening or forwarding them.

If you are not an intended recipient, please contact the sender of this email at once by return email and then delete both messages. Unintended recipients must not copy, use, disclose, rely on or publish this email or attachments. The Department of Agriculture and Water Resources is not liable for any loss or damage resulting from unauthorised use or dissemination of, or any reliance on, this email or attachments.

If you have received this e-mail as part of a valid mailing list and no longer want to receive a message such as this one, advise the sender by return e-mail accordingly. This notice should not be deleted or altered
------

Hi

Le mer. 23 mai 2018 à 08:28, Bleys, Evert <Evert.Bleys@anonymised.com>
a écrit :

Hi Guys

I'm having issues configuring sub-templates in GeoNetwork 3.4.2 for a
complex editing interface using ISO19115-3 records

                In 3.4.1:

Editing interface works

Directives work

Labelling of sub-template instance labels fails for some

Unable to successfully update index-subtemplate.xml

    Sub-template indexes worked in GN3.2.1

I have added the schema_plugin(s) iso19115-3

                No issues (from GitHub)

I have added new iso19115-3/layout/config-editor.xml

                No major issues (copied from 3.2.1 instance)

I have added templates for:

                Describing data (<mdb:MD_Metadata>..</mdb:MD_Metadata>)

                                No issues

                Describing services (<mdb:MD_Metadata>..</mdb:MD_Metadata>)

                                No issues

                Directories/directives

                                Legal constraints
(<mco:MD_LegalConstraints>...</mco:MD_LegalConstraints>)

                                                No issues (out of the box
directive and sub-template index)

                                Legal constraints
(<mco:MD_SecurityConstraints>...</mco:MD_SecurityConstraints>)

                                                No issues (out of the box
directive and sub-template index)

                                Organisation & Contacts [& re-settable
role] (<cit:CI_Responsibility>...</cit:CI_Responsibility>)

                                                No issues (out of the box
directive and sub-template index)

                                Organisation
(<cit:CI_Organisation>...</cit:CI_ Organisation >)

                                                ISSUE: does not present
name

                                                                Needed as
can have multiple organisation with the same role

For subtemplates, if you don't have a template in index mode (eg.
https://github.com/metadata101/iso19115-3/blob/3.4.x/src/main/plugin/iso19115-3/index-fields/index-subtemplate.xsl#L75)
matching the root element of the type of your subtemplate, it need further
work. In ISO19115-3, we have CI_Responsibility which could contains
CI_Organisation (which may have CI_Individual) or CI_Individual. For now,
the subtemplate have been configured to support CI_Responsibility as
subtemplate (similar to what 139 does). It makes sense to have
CI_Organisation (to first support one role, multiple org) and maybe also
CI_Individual. An issue I see, is that xlink mode will not work easily on
this as you could create an organisation with different sets of individual
and for this to be supported the xlink should track the list of individuals
to add. Maybe we could progress step by step on this.

                                Individual

(<cit:CI_Individual>...</cit:CI_Individual>)

                                                ISSUE: does not present
name

                                                                Needed as
can have multiple individuals with the same role

                                                                Needed as
can have multiple individuals within the same organisation with the same
role

                                Address
(<cit:CI_Address>...</cit:CI_Address>)

                                                ISSUE: does not present
"label" (from deliveryPoint, or city)

                                                                Needed as
can have multiple addresses per organisation and/or individuals with the
same role

                                Format (<mrd:MD_Format>...
</mrd:MD_Format>)

                                                ISSUE: does not present
title

                                                                Needed

Adding the directive to the
schema_plugins/iso19115-3/index-fields/index-subtemplate.xml file

ISSUE: causes GN to crash

When, on stratup ? on indexing ?

Any hints?

    Must I add text into the geonetwork/catalog/locales/en-editor.json file

                So that the sub-templates have appropriate labels?

                                Seemed to make GN to crash (might have
been a compounded issue)

The only label to add in editor-json is the placeholder eg.
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/locales/en-editor.json#L265-L268
If not set, it should not be a blocker to use the new subtemplate type.
If this cause issue in the app, check json formatting but this should not
even block the editor - it will just not display label translations

HTH

Francois

Suggestions gratefully accepted!

Cheers

e
BLEYS Evert Mr
Data Manager
Australian Bureau of Agricultural and Resource Economics and Sciences
Department of Agriculture and Water Resources
GPO Box 858 Canberra City ACT Australia 2601
44 Mort St Braddon ACT 2612
Ph: +61 (0)2 6272 5627
Email: Evert.Bleys@anonymised.com

------
IMPORTANT - This email and any attachments have been issued by the
Australian Government Department of Agriculture and Water Resources. The
material transmitted is for the use of the intended recipient only and may
contain confidential, legally privileged, copyright or personal
information. You should not copy, use or disclose it without authorisation
from the Department. It is your responsibility to check any attachments for
viruses and defects before opening or forwarding them.

If you are not an intended recipient, please contact the sender of this
email at once by return email and then delete both messages. Unintended
recipients must not copy, use, disclose, rely on or publish this email or
attachments. The Department of Agriculture and Water Resources is not
liable for any loss or damage resulting from unauthorised use or
dissemination of, or any reliance on, this email or attachments.

If you have received this e-mail as part of a valid mailing list and no
longer want to receive a message such as this one, advise the sender by
return e-mail accordingly. This notice should not be deleted or altered
------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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