Generating directives for use in GeoNetwork 3.4.X [SEC=UNCLASSIFIED]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Generating directives for use in GeoNetwork 3.4.X [SEC=UNCLASSIFIED]

Bleys, Evert-3
Hi Guys
Could someone possibly help me in generating directives for use in GeoNetwork 3.4.X editing interface

Are the three places I need to work:
1) .../WEB-INF/data/config/schema_plugins/iso19115-3/layout/config-editor.xml
                        identify the root of snippets to be used
2) ... /WEB-INF/data/config/schema_plugins//iso19115-3/index-fields/index-subtemplate-fileds.xsl
                Or is that  
        ... /WEB-INF/data/config/schema_plugins//iso19115-3/index-fields/index-subtemplate.xsl
                        Create the snippets and identify their anchors
3) .../catalog/locales/en-editor.json
                        Create the handles for the snippets

Eg:
1)   IN .../WEB-INF/data/config/schema_plugins/iso19115-3/layout/config-editor.xml
   <for name="cit:party" addDirective="data-gn-directory-entry-selector">
      <directiveAttributes
              data-template-add-action="true"
              data-search-action="false"
              data-popup-action="true"
              data-template-type="contact"
              data-filter='{"_root": "cit:CI_*n*i*i*"}'
              data-variables="cit:role/cit:CI_RoleCode/@codeListValue~{role}"/>
        <!--I believe  cit:CI_orgaNIsatIon and cit:CI_iNdIvIdual are unique -->
    </for>

2)   IN index-subtemplate-fileds.xsl
        I note there seems to have been a change from:
                index-subtemplate-fileds.xsl to index-subtemplate.xsl;
                or vice versa
  <!-- Indexing Organisation -->
  <xsl:template mode="index"
                match="cit:CI_Organisation[count(ancestor::node()) =  1 and cit:name/gco:CharacterString]">
    <xsl:variable name="type" select="local-name(.)"/>
    <xsl:variable name="name"
                  select="string-join(cit:name/gco:CharacterString, ', ')"/>
    <Field name="_title"
           string="{if ($name != '')
                    then $name
                    else $type}"
           store="true" index="true"/>
    <xsl:call-template name="subtemplate-common-fields"/>
  </xsl:template>

3)  IN .../catalog/locales/en-editor.json
        I can't quite work out what/when this is used
      "searchAnOrganisation": "Search for an organisation ...",
OR IS THAT
      "searchAorganisation": "Search for an organisation ...",


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: [hidden email]

> -----Original Message-----
> From: Peck-Choo Tan [mailto:[hidden email]]
> Sent: Sunday, 22 July 2018 16:06
> To: raean <[hidden email]>; geonetwork-
> [hidden email]
> Subject: Re: [GeoNetwork-users] Associated Resources not displaying
> [Marketing Mail] [SEC=UNCLASSIFIED]
>
> Hi Andrew,
>
> This is Jose's answer to me regarding the same problem:
> -------------
> 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
> ------------
> Thanks.
> Peck
>
> -----Original Message-----
> From: raean [mailto:[hidden email]]
> Sent: Friday, 20 July 2018 9:53 PM
> To: [hidden email]
> Subject: Re: [GeoNetwork-users] Associated Resources not displaying
>
> I am having the same issue with the loss of my Associating resources panel
> recently as well, when moving from 3.02 to 3.42. I have yet to resolve it.
>
> However I do have some clues in 3.02 the editor could be configured by
> pasting a snippet of json code in a field under settings metadata
> configuration > metadata editor  configuration. e.g. This is the setup I used
> for 3.0.2
>
> For example
> {"iso19110":{"defaultTab":"default","displayToolTip":false,"related":{"display
> ":true,"readonly":true,"categories":["dataset"]},"validation":{"display":true}}
> ,"iso19139":{"defaultTab":"default","displayToolTip":false,"related":{"display
> ":true,"categories":[]},"suggestion":{"display":true},"validation":{"display":tr
> ue}},"dublin-
> core":{"defaultTab":"default","related":{"display":true,"readonly":false,"cat
> egories":["parent","onlinesrc"]}},"iso19115-
> 3":{"defaultTab":"default","displayToolTip":false,"related":{"display":true,"c
> ategories":[]},"suggestion":{"display":true},"validation":{"display":true}},"iso
> 19139.anzlic":{"defaultTab":"default","displayToolTip":false,"related":{"displa
> y":true,"categories":disp[]},"suggestion":{"display":true},"validation":{"displ
> ay":true}}}
>
> In the snippet of code you can see the various flags for switching things off
> and on. Unfortunately I can no longer find it in 3.4.2 maybe it has moved else
> where. I had a look under the editor application settings in user interface
> settings to no luck. once this snippet is stored in the right place it may fix the
> problem of configuring the editor for different schema.
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-
> f3860293.html
>
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
> 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.
>
> ------------------------------------------------------------------------------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork

------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Generating directives for use in GeoNetwork 3.4.X [SEC=UNCLASSIFIED]

Francois Prunayre
Hi Bleys,

Le mar. 31 juil. 2018 à 08:16, Bleys, Evert <[hidden email]>
a écrit :

> Hi Guys
> Could someone possibly help me in generating directives for use in
> GeoNetwork 3.4.X editing interface
>
> Are the three places I need to work:
> 1)
> .../WEB-INF/data/config/schema_plugins/iso19115-3/layout/config-editor.xml
>                         identify the root of snippets to be used
> 2)       ...
> /WEB-INF/data/config/schema_plugins//iso19115-3/index-fields/index-subtemplate-fileds.xsl
>                 Or is that
>         ...
> /WEB-INF/data/config/schema_plugins//iso19115-3/index-fields/index-subtemplate.xsl
>                         Create the snippets and identify their anchors
> 3)      .../catalog/locales/en-editor.json
>                         Create the handles for the snippets
>
> Eg:
> 1)   IN
> .../WEB-INF/data/config/schema_plugins/iso19115-3/layout/config-editor.xml
>    <for name="cit:party" addDirective="data-gn-directory-entry-selector">
>       <directiveAttributes
>               data-template-add-action="true"
>               data-search-action="false"
>               data-popup-action="true"
>               data-template-type="contact"
>               data-filter='{"_root": "cit:CI_*n*i*i*"}'
>
> data-variables="cit:role/cit:CI_RoleCode/@codeListValue~{role}"/>
>         <!--I believe  cit:CI_orgaNIsatIon and cit:CI_iNdIvIdual are
> unique -->
>     </for>
>
> 2)   IN index-subtemplate-fileds.xsl
>         I note there seems to have been a change from:
>                 index-subtemplate-fileds.xsl to index-subtemplate.xsl;
>                 or vice versa
>   <!-- Indexing Organisation -->
>   <xsl:template mode="index"
>                 match="cit:CI_Organisation[count(ancestor::node()) =  1
> and cit:name/gco:CharacterString]">
>     <xsl:variable name="type" select="local-name(.)"/>
>     <xsl:variable name="name"
>                   select="string-join(cit:name/gco:CharacterString, ',
> ')"/>
>     <Field name="_title"
>            string="{if ($name != '')
>                     then $name
>                     else $type}"
>            store="true" index="true"/>
>     <xsl:call-template name="subtemplate-common-fields"/>
>   </xsl:template>
>
> 3)  IN .../catalog/locales/en-editor.json
>         I can't quite work out what/when this is used
>       "searchAnOrganisation": "Search for an organisation ...",
> OR IS THAT
>       "searchAorganisation": "Search for an organisation ...",
>

It is used here
https://github.com/geonetwork/core-geonetwork/blob/5d6be625c00afe9da3e522b1573b08e1bd9b8f23/web-ui/src/main/resources/catalog/components/edit/directoryentryselector/partials/directoryentrylistselector.html#L6
to set the placeholder depending on the type of directory.

Francois


>
>
> 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: [hidden email]
>
> > -----Original Message-----
> > From: Peck-Choo Tan [mailto:[hidden email]]
> > Sent: Sunday, 22 July 2018 16:06
> > To: raean <[hidden email]>; geonetwork-
> > [hidden email]
> > Subject: Re: [GeoNetwork-users] Associated Resources not displaying
> > [Marketing Mail] [SEC=UNCLASSIFIED]
> >
> > Hi Andrew,
> >
> > This is Jose's answer to me regarding the same problem:
> > -------------
> > 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
> > ------------
> > Thanks.
> > Peck
> >
> > -----Original Message-----
> > From: raean [mailto:[hidden email]]
> > Sent: Friday, 20 July 2018 9:53 PM
> > To: [hidden email]
> > Subject: Re: [GeoNetwork-users] Associated Resources not displaying
> >
> > I am having the same issue with the loss of my Associating resources
> panel
> > recently as well, when moving from 3.02 to 3.42. I have yet to resolve
> it.
> >
> > However I do have some clues in 3.02 the editor could be configured by
> > pasting a snippet of json code in a field under settings metadata
> > configuration > metadata editor  configuration. e.g. This is the setup I
> used
> > for 3.0.2
> >
> > For example
> >
> {"iso19110":{"defaultTab":"default","displayToolTip":false,"related":{"display
> >
> ":true,"readonly":true,"categories":["dataset"]},"validation":{"display":true}}
> >
> ,"iso19139":{"defaultTab":"default","displayToolTip":false,"related":{"display
> >
> ":true,"categories":[]},"suggestion":{"display":true},"validation":{"display":tr
> > ue}},"dublin-
> >
> core":{"defaultTab":"default","related":{"display":true,"readonly":false,"cat
> > egories":["parent","onlinesrc"]}},"iso19115-
> >
> 3":{"defaultTab":"default","displayToolTip":false,"related":{"display":true,"c
> >
> ategories":[]},"suggestion":{"display":true},"validation":{"display":true}},"iso
> >
> 19139.anzlic":{"defaultTab":"default","displayToolTip":false,"related":{"displa
> >
> y":true,"categories":disp[]},"suggestion":{"display":true},"validation":{"displ
> > ay":true}}}
> >
> > In the snippet of code you can see the various flags for switching
> things off
> > and on. Unfortunately I can no longer find it in 3.4.2 maybe it has
> moved else
> > where. I had a look under the editor application settings in user
> interface
> > settings to no luck. once this snippet is stored in the right place it
> may fix the
> > problem of configuring the editor for different schema.
> >
> >
> >
> >
> > --
> > Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-
> > f3860293.html
> >
> >
> ------------------------------------------------------------------------------
> > 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
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> > GeoNetwork OpenSource is maintained at
> > http://sourceforge.net/projects/geonetwork
> > 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.
> >
> >
> ------------------------------------------------------------------------------
> > 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
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> > GeoNetwork OpenSource is maintained at
> > http://sourceforge.net/projects/geonetwork
>
> ------
> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork