[GeoNetwork-users] GN 3.0.4 - How to display thesaurus picker in custom editor view?

Hello,

I've created a custom editor view of ISO19139 and would like to include the
thesaurus picker. Unfortunately, although existing keywords are displaying,
the picker is not. I've found that if I change the xpath of the field to
the parent of descriptiveKeywords, which is MD_DataIdentification, then the
picker does appear.

For ease of use we're focusing on a small set of fields, and I really don't
want all of MD_DataIdentification, but we really need the thesaurus picker
available. Any suggestions?

Below is the current code of my custom view. Thanks for any help.

<view name="cic-gddp">
      <tab id="default" default="true" >
            <section name="cic-gddp-identification">

                <!-- title -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/gmd:CI_Citation/gmd:title"
/>

                <!-- abstract -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"
/>

                <!-- originator -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue='originator']/../../gmd:CI_ResponsibleParty"
/>

                <!-- topic category(ies) -->
                <field
                  xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode"
/>

            </section>

            <section name="cic-gddp-keywords">
              <!-- keywords -->
              <field xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"

</field>

            </section>

            <section name="cic-gddp-temporal">

                <!-- temporal extent -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement"
/>

                <!-- date -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='publication']/../../../gmd:CI_Date"
/>

            </section>

</tab>

</view>

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

Just to be clear, by thesaurus picker, I mean the Add new keywords / or
select them in a thesaurus interface that follows any existing keywords.

Thanks.

On Wed, Apr 13, 2016 at 11:51 AM, Kevin Dyke <dykex005@anonymised.com> wrote:

Hello,

I've created a custom editor view of ISO19139 and would like to include
the thesaurus picker. Unfortunately, although existing keywords are
displaying, the picker is not. I've found that if I change the xpath of the
field to the parent of descriptiveKeywords, which is MD_DataIdentification,
then the picker does appear.

For ease of use we're focusing on a small set of fields, and I really
don't want all of MD_DataIdentification, but we really need the thesaurus
picker available. Any suggestions?

Below is the current code of my custom view. Thanks for any help.

<view name="cic-gddp">
      <tab id="default" default="true" >
            <section name="cic-gddp-identification">

                <!-- title -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/gmd:CI_Citation/gmd:title"
/>

                <!-- abstract -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"
/>

                <!-- originator -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue='originator']/../../gmd:CI_ResponsibleParty"
/>

                <!-- topic category(ies) -->
                <field
                  xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode"
/>

            </section>

            <section name="cic-gddp-keywords">
              <!-- keywords -->
              <field xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"
></field>

            </section>

            <section name="cic-gddp-temporal">

                <!-- temporal extent -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement"
/>

                <!-- date -->
                <field
                    xpath=
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='publication']/../../../gmd:CI_Date"
/>

            </section>

</tab>

</view>

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

(attachments)

Screen Shot 2016-04-13 at 12.05.50 PM.png

Hi,

See
http://geonetwork-opensource.org/manuals/trunk/eng/users/customizing-application/editor-ui/creating-custom-editor.html#configuring-complex-element-display
and some more details added here
https://github.com/geonetwork/core-geonetwork/blob/6a689e43f47ed3f676f217b6accd0c7b8538d531/schemas/config-editor.xsd#L470

HTH.

Francois

2016-04-13 19:07 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Just to be clear, by thesaurus picker, I mean the Add new keywords / or
select them in a thesaurus interface that follows any existing keywords.

Thanks.

On Wed, Apr 13, 2016 at 11:51 AM, Kevin Dyke <dykex005@anonymised.com> wrote:

> Hello,
>
> I've created a custom editor view of ISO19139 and would like to include
> the thesaurus picker. Unfortunately, although existing keywords are
> displaying, the picker is not. I've found that if I change the xpath of
the
> field to the parent of descriptiveKeywords, which is
MD_DataIdentification,
> then the picker does appear.
>
> For ease of use we're focusing on a small set of fields, and I really
> don't want all of MD_DataIdentification, but we really need the thesaurus
> picker available. Any suggestions?
>
> Below is the current code of my custom view. Thanks for any help.
>
> <view name="cic-gddp">
> <tab id="default" default="true" >
> <section name="cic-gddp-identification">
>
> <!-- title -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/gmd:CI_Citation/gmd:title"
> />
>
> <!-- abstract -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"
> />
>
> <!-- originator -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue='originator']/../../gmd:CI_ResponsibleParty"
> />
>
> <!-- topic category(ies) -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode"
> />
>
>
>
> </section>
>
> <section name="cic-gddp-keywords">
> <!-- keywords -->
> <field xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"
> ></field>
>
> </section>
>
>
> <section name="cic-gddp-temporal">
>
> <!-- temporal extent -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement"
> />
>
> <!-- date -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='publication']/../../../gmd:CI_Date"
> />
>
> </section>
>
> </tab>
>
> </view>
>
> --
> Kevin Dyke
> Spatial Data Analyst/Curator
> John R. Borchert Map Library, University of Minnesota Libraries
> Office: 612.301.3932
> Email: dykex005@anonymised.com
> Web: kevinrdyke.com
>

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications
Manager
Applications Manager provides deep performance insights into multiple
tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
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

Thanks for the pointers Francois! However, when using the field as written
in the docs you link to:

<field

xpath="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*/gmd:keyword"
     or="keyword"

in="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*"/>

along with the flatModeExceptions set, while I am now able to add new
keywords within a given descriptiveKeywords element, the thesaurus picker
directive is not invoked. Without it, it's pretty much like entering
keywords freehand, which we have to avoid.

Any other suggestions? Could I use an action to embed the
gn-thesaurus-selector directive within the section containing all of the
keywords?

Thanks again,
Kevin

On Fri, Apr 15, 2016 at 10:07 AM, Francois Prunayre <fx.prunayre@anonymised.com>
wrote:

Hi,

See

http://geonetwork-opensource.org/manuals/trunk/eng/users/customizing-application/editor-ui/creating-custom-editor.html#configuring-complex-element-display
and some more details added here

https://github.com/geonetwork/core-geonetwork/blob/6a689e43f47ed3f676f217b6accd0c7b8538d531/schemas/config-editor.xsd#L470

HTH.

Francois

2016-04-13 19:07 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Just to be clear, by thesaurus picker, I mean the Add new keywords / or
select them in a thesaurus interface that follows any existing keywords.

Thanks.

On Wed, Apr 13, 2016 at 11:51 AM, Kevin Dyke <dykex005@anonymised.com> wrote:

> Hello,
>
> I've created a custom editor view of ISO19139 and would like to include
> the thesaurus picker. Unfortunately, although existing keywords are
> displaying, the picker is not. I've found that if I change the xpath of
the
> field to the parent of descriptiveKeywords, which is
MD_DataIdentification,
> then the picker does appear.
>
> For ease of use we're focusing on a small set of fields, and I really
> don't want all of MD_DataIdentification, but we really need the
thesaurus
> picker available. Any suggestions?
>
> Below is the current code of my custom view. Thanks for any help.
>
> <view name="cic-gddp">
> <tab id="default" default="true" >
> <section name="cic-gddp-identification">
>
> <!-- title -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/gmd:CI_Citation/gmd:title"
> />
>
> <!-- abstract -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"
> />
>
> <!-- originator -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue='originator']/../../gmd:CI_ResponsibleParty"
> />
>
> <!-- topic category(ies) -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode"
> />
>
>
>
> </section>
>
> <section name="cic-gddp-keywords">
> <!-- keywords -->
> <field xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"
> ></field>
>
> </section>
>
>
> <section name="cic-gddp-temporal">
>
> <!-- temporal extent -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement"
> />
>
> <!-- date -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='publication']/../../../gmd:CI_Date"
> />
>
> </section>
>
> </tab>
>
> </view>
>
> --
> Kevin Dyke
> Spatial Data Analyst/Curator
> John R. Borchert Map Library, University of Minnesota Libraries
> Office: 612.301.3932
> Email: dykex005@anonymised.com
> Web: kevinrdyke.com
>

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications
Manager
Applications Manager provides deep performance insights into multiple
tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
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

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

I would like to add the same keyword picker (the same as in Simple view), but
I am also without clue how to add it. In Simple view, there is just
xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification",
but a lot of other things are added, if I change this to
xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"
then only INSPIRE themes selector is added. No idea what to do.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GN-3-0-4-How-to-display-thesaurus-picker-in-custom-editor-view-tp5261095p5261808.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Kevin

2016-04-15 19:45 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Thanks for the pointers Francois! However, when using the field as written
in the docs you link to:

<field

xpath="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*/gmd:keyword"
     or="keyword"

in="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*"/>

The thesaurus picker is taking care of adding a gmd:descriptiveKeywords

element, not a keyword element.

So display any keywords or the add descriptiveKeywords widget:
<field
  xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/
  gmd:descriptiveKeywords"
  or="descriptiveKeywords"
  in="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification"/>

Display only the widget (in this case, you've to take care of
displaying keywords added somewhere else in the form):

<field
  xpath="/nomatch"
  or="descriptiveKeywords"

in="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification"/>

HTH

Francois

along with the flatModeExceptions set, while I am now able to add new
keywords within a given descriptiveKeywords element, the thesaurus picker
directive is not invoked. Without it, it's pretty much like entering
keywords freehand, which we have to avoid.

Any other suggestions? Could I use an action to embed the
gn-thesaurus-selector directive within the section containing all of the
keywords?

Thanks again,
Kevin

On Fri, Apr 15, 2016 at 10:07 AM, Francois Prunayre <fx.prunayre@anonymised.com
> wrote:

Hi,

See

http://geonetwork-opensource.org/manuals/trunk/eng/users/customizing-application/editor-ui/creating-custom-editor.html#configuring-complex-element-display
and some more details added here

https://github.com/geonetwork/core-geonetwork/blob/6a689e43f47ed3f676f217b6accd0c7b8538d531/schemas/config-editor.xsd#L470

HTH.

Francois

2016-04-13 19:07 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Just to be clear, by thesaurus picker, I mean the Add new keywords / or
select them in a thesaurus interface that follows any existing keywords.

Thanks.

On Wed, Apr 13, 2016 at 11:51 AM, Kevin Dyke <dykex005@anonymised.com> wrote:

> Hello,
>
> I've created a custom editor view of ISO19139 and would like to include
> the thesaurus picker. Unfortunately, although existing keywords are
> displaying, the picker is not. I've found that if I change the xpath
of the
> field to the parent of descriptiveKeywords, which is
MD_DataIdentification,
> then the picker does appear.
>
> For ease of use we're focusing on a small set of fields, and I really
> don't want all of MD_DataIdentification, but we really need the
thesaurus
> picker available. Any suggestions?
>
> Below is the current code of my custom view. Thanks for any help.
>
> <view name="cic-gddp">
> <tab id="default" default="true" >
> <section name="cic-gddp-identification">
>
> <!-- title -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/gmd:CI_Citation/gmd:title"
> />
>
> <!-- abstract -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"
> />
>
> <!-- originator -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue='originator']/../../gmd:CI_ResponsibleParty"
> />
>
> <!-- topic category(ies) -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode"
> />
>
>
>
> </section>
>
> <section name="cic-gddp-keywords">
> <!-- keywords -->
> <field xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"
> ></field>
>
> </section>
>
>
> <section name="cic-gddp-temporal">
>
> <!-- temporal extent -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement"
> />
>
> <!-- date -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='publication']/../../../gmd:CI_Date"
> />
>
> </section>
>
> </tab>
>
> </view>
>
> --
> Kevin Dyke
> Spatial Data Analyst/Curator
> John R. Borchert Map Library, University of Minnesota Libraries
> Office: 612.301.3932
> Email: dykex005@anonymised.com
> Web: kevinrdyke.com
>

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications
Manager
Applications Manager provides deep performance insights into multiple
tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
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

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

Ahh it worked! Thank you! I'm not sure why I didn't try this in the first
place. I think I got so far as to include the *xpath* to
descriptiveKeywords, but I did not include the *or *option. It's clearer to
me now, but the *or* option is a little difficult to understand from the
documentation.

Thanks again Francois.

On Thu, May 26, 2016 at 12:31 AM, Francois Prunayre <fx.prunayre@anonymised.com>
wrote:

Hi Kevin

2016-04-15 19:45 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Thanks for the pointers Francois! However, when using the field as
written in the docs you link to:

<field

xpath="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*/gmd:keyword"
     or="keyword"

in="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*"/>

The thesaurus picker is taking care of adding a gmd:descriptiveKeywords

element, not a keyword element.

So display any keywords or the add descriptiveKeywords widget:
<field
  xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/
  gmd:descriptiveKeywords"
  or="descriptiveKeywords"
  in="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification"/>

Display only the widget (in this case, you've to take care of displaying keywords added somewhere else in the form):

<field
  xpath="/nomatch"
  or="descriptiveKeywords"

in="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification"/>

HTH

Francois

along with the flatModeExceptions set, while I am now able to add new
keywords within a given descriptiveKeywords element, the thesaurus
picker directive is not invoked. Without it, it's pretty much like entering
keywords freehand, which we have to avoid.

Any other suggestions? Could I use an action to embed the
gn-thesaurus-selector directive within the section containing all of the
keywords?

Thanks again,
Kevin

On Fri, Apr 15, 2016 at 10:07 AM, Francois Prunayre <
fx.prunayre@anonymised.com> wrote:

Hi,

See

http://geonetwork-opensource.org/manuals/trunk/eng/users/customizing-application/editor-ui/creating-custom-editor.html#configuring-complex-element-display
and some more details added here

https://github.com/geonetwork/core-geonetwork/blob/6a689e43f47ed3f676f217b6accd0c7b8538d531/schemas/config-editor.xsd#L470

HTH.

Francois

2016-04-13 19:07 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Just to be clear, by thesaurus picker, I mean the Add new keywords / or
select them in a thesaurus interface that follows any existing keywords.

Thanks.

On Wed, Apr 13, 2016 at 11:51 AM, Kevin Dyke <dykex005@anonymised.com> wrote:

> Hello,
>
> I've created a custom editor view of ISO19139 and would like to
include
> the thesaurus picker. Unfortunately, although existing keywords are
> displaying, the picker is not. I've found that if I change the xpath
of the
> field to the parent of descriptiveKeywords, which is
MD_DataIdentification,
> then the picker does appear.
>
> For ease of use we're focusing on a small set of fields, and I really
> don't want all of MD_DataIdentification, but we really need the
thesaurus
> picker available. Any suggestions?
>
> Below is the current code of my custom view. Thanks for any help.
>
> <view name="cic-gddp">
> <tab id="default" default="true" >
> <section name="cic-gddp-identification">
>
> <!-- title -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/gmd:CI_Citation/gmd:title"
> />
>
> <!-- abstract -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"
> />
>
> <!-- originator -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue='originator']/../../gmd:CI_ResponsibleParty"
> />
>
> <!-- topic category(ies) -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode"
> />
>
>
>
> </section>
>
> <section name="cic-gddp-keywords">
> <!-- keywords -->
> <field xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"
> ></field>
>
> </section>
>
>
> <section name="cic-gddp-temporal">
>
> <!-- temporal extent -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement"
> />
>
> <!-- date -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='publication']/../../../gmd:CI_Date"
> />
>
> </section>
>
> </tab>
>
> </view>
>
> --
> Kevin Dyke
> Spatial Data Analyst/Curator
> John R. Borchert Map Library, University of Minnesota Libraries
> Office: 612.301.3932
> Email: dykex005@anonymised.com
> Web: kevinrdyke.com
>

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications
Manager
Applications Manager provides deep performance insights into multiple
tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
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

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

2016-06-02 15:26 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Ahh it worked! Thank you! I'm not sure why I didn't try this in the first
place. I think I got so far as to include the *xpath* to
descriptiveKeywords, but I did not include the *or *option. It's clearer
to me now, but the *or* option is a little difficult to understand from
the documentation.

I know, it basically mean if there is no element matching the "xpath", then
search an element with name "or" in the "in". It's quite related to the
document being processed (metadocument which combines the schema and the
record). If you've better wording, don't hesitate to propose something.

Cheers.

Francois

Thanks again Francois.

On Thu, May 26, 2016 at 12:31 AM, Francois Prunayre <fx.prunayre@anonymised.com
> wrote:

Hi Kevin

2016-04-15 19:45 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Thanks for the pointers Francois! However, when using the field as
written in the docs you link to:

<field

xpath="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*/gmd:keyword"
     or="keyword"

in="/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:descriptiveKeywords/*"/>

The thesaurus picker is taking care of adding a gmd:descriptiveKeywords

element, not a keyword element.

So display any keywords or the add descriptiveKeywords widget:
<field
  xpath="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/
  gmd:descriptiveKeywords"
  or="descriptiveKeywords"
  in="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification"/>

Display only the widget (in this case, you've to take care of displaying keywords added somewhere else in the form):

<field
  xpath="/nomatch"
  or="descriptiveKeywords"

in="/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification"/>

HTH

Francois

along with the flatModeExceptions set, while I am now able to add new
keywords within a given descriptiveKeywords element, the thesaurus
picker directive is not invoked. Without it, it's pretty much like entering
keywords freehand, which we have to avoid.

Any other suggestions? Could I use an action to embed the
gn-thesaurus-selector directive within the section containing all of the
keywords?

Thanks again,
Kevin

On Fri, Apr 15, 2016 at 10:07 AM, Francois Prunayre <
fx.prunayre@anonymised.com> wrote:

Hi,

See

http://geonetwork-opensource.org/manuals/trunk/eng/users/customizing-application/editor-ui/creating-custom-editor.html#configuring-complex-element-display
and some more details added here

https://github.com/geonetwork/core-geonetwork/blob/6a689e43f47ed3f676f217b6accd0c7b8538d531/schemas/config-editor.xsd#L470

HTH.

Francois

2016-04-13 19:07 GMT+02:00 Kevin Dyke <dykex005@anonymised.com>:

Just to be clear, by thesaurus picker, I mean the Add new keywords /
or
select them in a thesaurus interface that follows any existing
keywords.

Thanks.

On Wed, Apr 13, 2016 at 11:51 AM, Kevin Dyke <dykex005@anonymised.com> wrote:

> Hello,
>
> I've created a custom editor view of ISO19139 and would like to
include
> the thesaurus picker. Unfortunately, although existing keywords are
> displaying, the picker is not. I've found that if I change the xpath
of the
> field to the parent of descriptiveKeywords, which is
MD_DataIdentification,
> then the picker does appear.
>
> For ease of use we're focusing on a small set of fields, and I really
> don't want all of MD_DataIdentification, but we really need the
thesaurus
> picker available. Any suggestions?
>
> Below is the current code of my custom view. Thanks for any help.
>
> <view name="cic-gddp">
> <tab id="default" default="true" >
> <section name="cic-gddp-identification">
>
> <!-- title -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/*/gmd:citation/gmd:CI_Citation/gmd:title"
> />
>
> <!-- abstract -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract"
> />
>
> <!-- originator -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:citedResponsibleParty/gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode[@codeListValue='originator']/../../gmd:CI_ResponsibleParty"
> />
>
> <!-- topic category(ies) -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:topicCategory/gmd:MD_TopicCategoryCode"
> />
>
>
>
> </section>
>
> <section name="cic-gddp-keywords">
> <!-- keywords -->
> <field xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords"
> ></field>
>
> </section>
>
>
> <section name="cic-gddp-temporal">
>
> <!-- temporal extent -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement"
> />
>
> <!-- date -->
> <field
> xpath=
>
"/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode[@codeListValue='publication']/../../../gmd:CI_Date"
> />
>
> </section>
>
> </tab>
>
> </view>
>
> --
> Kevin Dyke
> Spatial Data Analyst/Curator
> John R. Borchert Map Library, University of Minnesota Libraries
> Office: 612.301.3932
> Email: dykex005@anonymised.com
> Web: kevinrdyke.com
>

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications
Manager
Applications Manager provides deep performance insights into multiple
tiers of
your business applications. It resolves application problems quickly
and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
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

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com

--
Kevin Dyke
Spatial Data Analyst/Curator
John R. Borchert Map Library, University of Minnesota Libraries
Office: 612.301.3932
Email: dykex005@anonymised.com
Web: kevinrdyke.com