[GeoNetwork-users] problem with adding new fields to metadata default view

Hi friends,

I want to add some new fields like "supplementalInformation", "useConstraints" and "accessConstraints" to metadata default view. For adding supplementalInformation I followed instructions according to this link:
https://gis.stackexchange.com/questions/202539/change-geonetwork-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.record.supplementalInformation">, but the code does not enter to this div even for a metadata that I am sure it has supplemental information(by looking at XML view). I also cleared formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to do. I also have a metadata which includes these constraints but they are not shown in metadata default view.
Any help please?

Best,
Samin

Hi Samin

Just to be sure, did you reindex the catalogue, adding a new field in the
index requires a reindex, otherwise the new fields are not added.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:01 PM, Samin Payrosangari <s6sapayr@anonymised.com>
wrote:

Hi friends,

I want to add some new fields like "supplementalInformation",
"useConstraints" and "accessConstraints" to metadata default view. For
adding supplementalInformation I followed instructions according to this
link:
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.record.supplementalInformation">,
but the code does not enter to this div even for a metadata that I am sure
it has supplemental information(by looking at XML view). I also cleared
formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to do.
I also have a metadata which includes these constraints but they are not
shown in metadata default view.
Any help please?

Best,
Samin

------------------------------------------------------------
------------------
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/project
s/geonetwork

--

*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,

Actually, reindexing is in progress for a long time. I did not know that it is important for adding fields. So I should be waiting until it finishes to see the result.
What about accessConstraints and useConstraints? How should I activate them? For example in this metadata https://wascal-dataportal.org/geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f , that I harvested from wascal geoportal, there are several constraints, but my portal only displays other constraints and calls them legal constraints.
When I look at the code in default.xsl, it seems that they are part of the resourceConstraints which is already included in recordView.html. But why my portal does not show them(I have geonetwork 3.2).

Best,
Samin
   On Tue, 29 Aug 2017 15:13:02 +0200
  Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

Just to be sure, did you reindex the catalogue, adding a new field in the
index requires a reindex, otherwise the new fields are not added.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:01 PM, Samin Payrosangari <s6sapayr@anonymised.com>
wrote:

Hi friends,

I want to add some new fields like "supplementalInformation",
"useConstraints" and "accessConstraints" to metadata default view. For
adding supplementalInformation I followed instructions according to this
link:
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.record.supplementalInformation">,
but the code does not enter to this div even for a metadata that I am sure
it has supplemental information(by looking at XML view). I also cleared
formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to do.
I also have a metadata which includes these constraints but they are not
shown in metadata default view.
Any help please?

Best,
Samin

------------------------------------------------------------
------------------
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/project
s/geonetwork

--

*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.*

Dear Jose,

I rebuilt index. Still nothing appears for supplementalInformation :(.

Best,
Samin
On Tue, 29 Aug 2017 15:24:00 +0200
  "Samin Payrosangari" <s6sapayr@anonymised.com> wrote:

Hi Jose,

Actually, reindexing is in progress for a long time. I did not know that it is important for adding fields. So I should be waiting until it finishes to see the result.
What about accessConstraints and useConstraints? How should I activate them? For example in this metadata https://wascal-dataportal.org/geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f , that I harvested from wascal geoportal, there are several constraints, but my portal only displays other constraints and calls them legal constraints.
When I look at the code in default.xsl, it seems that they are part of the resourceConstraints which is already included in recordView.html. But why my portal does not show them(I have geonetwork 3.2).

Best,
Samin
  On Tue, 29 Aug 2017 15:13:02 +0200
Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

Just to be sure, did you reindex the catalogue, adding a new field in the
index requires a reindex, otherwise the new fields are not added.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:01 PM, Samin Payrosangari <s6sapayr@anonymised.com>
wrote:

Hi friends,

I want to add some new fields like "supplementalInformation",
"useConstraints" and "accessConstraints" to metadata default view. For
adding supplementalInformation I followed instructions according to this
link:
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.record.supplementalInformation">,
but the code does not enter to this div even for a metadata that I am sure
it has supplemental information(by looking at XML view). I also cleared
formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to do.
I also have a metadata which includes these constraints but they are not
shown in metadata default view.
Any help please?

Best,
Samin

------------------------------------------------------------
------------------
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/project
s/geonetwork

--

*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 Samin

I'll check to test locally tomorrow to see what can be missing.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:28 PM, Samin Payrosangari <s6sapayr@anonymised.com>
wrote:

Dear Jose,

I rebuilt index. Still nothing appears for supplementalInformation :(.

Best,
Samin
On Tue, 29 Aug 2017 15:24:00 +0200

"Samin Payrosangari" <s6sapayr@anonymised.com> wrote:

Hi Jose,

Actually, reindexing is in progress for a long time. I did not know that
it is important for adding fields. So I should be waiting until it finishes
to see the result.
What about accessConstraints and useConstraints? How should I activate
them? For example in this metadata https://wascal-dataportal.org/
geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f , that
I harvested from wascal geoportal, there are several constraints, but my
portal only displays other constraints and calls them legal constraints.
When I look at the code in default.xsl, it seems that they are part of
the resourceConstraints which is already included in recordView.html. But
why my portal does not show them(I have geonetwork 3.2).

Best,
Samin
  On Tue, 29 Aug 2017 15:13:02 +0200
Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

Just to be sure, did you reindex the catalogue, adding a new field in the
index requires a reindex, otherwise the new fields are not added.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:01 PM, Samin Payrosangari <
s6sapayr@anonymised.com>
wrote:

Hi friends,

I want to add some new fields like "supplementalInformation",
"useConstraints" and "accessConstraints" to metadata default view. For
adding supplementalInformation I followed instructions according to this
link:
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.rec
ord.supplementalInformation">,
but the code does not enter to this div even for a metadata that I am
sure
it has supplemental information(by looking at XML view). I also cleared
formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to
do.
I also have a metadata which includes these constraints but they are not
shown in metadata default view.
Any help please?

Best,
Samin

------------------------------------------------------------
------------------
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/project
s/geonetwork

--

*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.*

--

*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,

Thanks, I'll be waiting for you.

Best,
Samin
On Tue, 29 Aug 2017 17:36:48 +0200
  Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

I'll check to test locally tomorrow to see what can be missing.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:28 PM, Samin Payrosangari <s6sapayr@anonymised.com>
wrote:

Dear Jose,

I rebuilt index. Still nothing appears for supplementalInformation :(.

Best,
Samin
On Tue, 29 Aug 2017 15:24:00 +0200

"Samin Payrosangari" <s6sapayr@anonymised.com> wrote:

Hi Jose,

Actually, reindexing is in progress for a long time. I did not know that
it is important for adding fields. So I should be waiting until it finishes
to see the result.
What about accessConstraints and useConstraints? How should I activate
them? For example in this metadata https://wascal-dataportal.org/
geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f , that
I harvested from wascal geoportal, there are several constraints, but my
portal only displays other constraints and calls them legal constraints.
When I look at the code in default.xsl, it seems that they are part of
the resourceConstraints which is already included in recordView.html. But
why my portal does not show them(I have geonetwork 3.2).

Best,
Samin
  On Tue, 29 Aug 2017 15:13:02 +0200
Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

Just to be sure, did you reindex the catalogue, adding a new field in the
index requires a reindex, otherwise the new fields are not added.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:01 PM, Samin Payrosangari <
s6sapayr@anonymised.com>
wrote:

Hi friends,

I want to add some new fields like "supplementalInformation",
"useConstraints" and "accessConstraints" to metadata default view. For
adding supplementalInformation I followed instructions according to this
link:
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.rec
ord.supplementalInformation">,
but the code does not enter to this div even for a metadata that I am
sure
it has supplemental information(by looking at XML view). I also cleared
formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to
do.
I also have a metadata which includes these constraints but they are not
shown in metadata default view.
Any help please?

Best,
Samin

------------------------------------------------------------
------------------
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/project
s/geonetwork

--

*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.*

--

*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 Samin

I have done these steps (similar to the ones described in
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.). Please check with your changes (tested with
3.2.x branch):

1) Assuming the paths from the deployed war file (highlighted the changes),
update the following files:

*$TOMCAT_DIR/geonetwork/WEB-INF/config-lucene.xml*

      <field name="_groupWebsite" tagName="groupWebsite"/>
      <field name="attributeTable" tagName="attributeTable"/>
    * <field name="supplementalInformation"
tagName="supplementalInformation"/>*
    </dumpFields>
  </search>

*$TOMCAT_DIR/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/index-fields/default.xsl*

      <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -->

     * <xsl:for-each
select="gmd:supplementalInformation/gco:CharacterString">*
* <Field name="supplementalInformation" string="{string(.)}"
store="true" index="true"/>*
* </xsl:for-each>*

      <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -->

      <xsl:for-each select="gmd:topicCategory/gmd:MD_TopicCategoryCode">
        <Field name="topicCat" string="{string(.)}" store="true"
index="true"/>
        <Field name="keyword"

string="{util:getCodelistTranslation('gmd:MD_TopicCategoryCode',
string(.), string($isoLangId))}"
               store="true" index="true"/>
      </xsl:for-each>

*$TOMCAT_DIR/geonetwork/*
*/catalog/views/default/templates/recordView.html*

        <h2 data-translate="">aboutThisResource</h2>
        <table class="table table-striped">
          <tbody>
          <tr data-ng-if="mdView.current.record.supplementalInformation">
            <th data-translate="">supplementalInfo</th>
            <td>
              <p
data-ng-bind-html="mdView.current.record.supplementalInformation |
newlines">
                </p>
            </td>
          </tr>

          <tr data-ng-if="mdView.current.record.inspirethemewithac.length >
0 ||
                          mdView.current.record.inspirethemewithac.length >
0">
            <th data-translate="">inspireThemes</th>

2) After these changes startup Geonetwork and re-index the catalogue from
the Administration panel. (
http://SERVER/geonetwork/srv/eng/admin.console?debug#/tools)

3) From same option cleanup JS&CSS cache.

4) Import a metadata with supplemental information, like
https://wascal-dataportal.org/geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f

5) Search for the metadata and display the metadata detail page. I get the
following:

About this resource
supplementalInfo

Codes were assigned so that each variable can directly be linked to the
corresponding question in the questionnaire.

The code is generated on the basis of the section number (I), number of
question (1,2,3,...) and subcategories of each question (x.1, x.2, x.3,...
or A,B,C,...)

Please compare with questionnaire file.
Categories Interactive resources Farming
Keywords

   - household <http://localhost:8080/geonetwork/srv/eng/catalog.search?&gt;
   - farmers <http://localhost:8080/geonetwork/srv/eng/catalog.search?&gt;

Regards,
Jose García

On Wed, Aug 30, 2017 at 11:16 AM, Samin Payrosangari <s6sapayr@anonymised.com>
wrote:

Hi Jose,

Thanks, I'll be waiting for you.

Best,
Samin
On Tue, 29 Aug 2017 17:36:48 +0200
Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

I'll check to test locally tomorrow to see what can be missing.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:28 PM, Samin Payrosangari <s6sapayr@anonymised.com
>
wrote:

Dear Jose,

I rebuilt index. Still nothing appears for supplementalInformation :(.

Best,
Samin
On Tue, 29 Aug 2017 15:24:00 +0200

"Samin Payrosangari" <s6sapayr@anonymised.com> wrote:

Hi Jose,

Actually, reindexing is in progress for a long time. I did not know that
it is important for adding fields. So I should be waiting until it
finishes
to see the result.
What about accessConstraints and useConstraints? How should I activate
them? For example in this metadata https://wascal-dataportal.org/
geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f ,
that
I harvested from wascal geoportal, there are several constraints, but my
portal only displays other constraints and calls them legal constraints.
When I look at the code in default.xsl, it seems that they are part of
the resourceConstraints which is already included in recordView.html.
But
why my portal does not show them(I have geonetwork 3.2).

Best,
Samin
  On Tue, 29 Aug 2017 15:13:02 +0200
Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

Just to be sure, did you reindex the catalogue, adding a new field in
the
index requires a reindex, otherwise the new fields are not added.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:01 PM, Samin Payrosangari <
s6sapayr@anonymised.com>
wrote:

Hi friends,

I want to add some new fields like "supplementalInformation",
"useConstraints" and "accessConstraints" to metadata default view. For
adding supplementalInformation I followed instructions according to
this
link:
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.rec
ord.supplementalInformation">,
but the code does not enter to this div even for a metadata that I am
sure
it has supplemental information(by looking at XML view). I also
cleared
formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to
do.
I also have a metadata which includes these constraints but they are
not
shown in metadata default view.
Any help please?

Best,
Samin

------------------------------------------------------------
------------------
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/project
s/geonetwork

--

*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.*

--

*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.*

--

*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,

Thanks, its working. I think the problem was which part of default.xsl to enter the code.
should I do the same for adding access constraints and use constraints which are also included in the same metadata I sent you for testing? According to the source code, I've done something but I don not know if its right.

Best,
Samin

Best,
Samin
On Wed, 30 Aug 2017 21:25:21 +0200
  Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

I have done these steps (similar to the ones described in
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.). Please check with your changes (tested with
3.2.x branch):

1) Assuming the paths from the deployed war file (highlighted the changes),
update the following files:

*$TOMCAT_DIR/geonetwork/WEB-INF/config-lucene.xml*

     <field name="_groupWebsite" tagName="groupWebsite"/>
     <field name="attributeTable" tagName="attributeTable"/>
   * <field name="supplementalInformation"
tagName="supplementalInformation"/>*
   </dumpFields>
</search>

*$TOMCAT_DIR/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/index-fields/default.xsl*

     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -->

    * <xsl:for-each
select="gmd:supplementalInformation/gco:CharacterString">*
* <Field name="supplementalInformation" string="{string(.)}"
store="true" index="true"/>*
* </xsl:for-each>*

     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -->

     <xsl:for-each select="gmd:topicCategory/gmd:MD_TopicCategoryCode">
       <Field name="topicCat" string="{string(.)}" store="true"
index="true"/>
       <Field name="keyword"

string="{util:getCodelistTranslation('gmd:MD_TopicCategoryCode',
string(.), string($isoLangId))}"
              store="true" index="true"/>
     </xsl:for-each>

*$TOMCAT_DIR/geonetwork/*
*/catalog/views/default/templates/recordView.html*

       <h2 data-translate="">aboutThisResource</h2>
       <table class="table table-striped">
         <tbody>
         <tr data-ng-if="mdView.current.record.supplementalInformation">
           <th data-translate="">supplementalInfo</th>
           <td>
             <p
data-ng-bind-html="mdView.current.record.supplementalInformation |
newlines">
               </p>
           </td>
         </tr>

         <tr data-ng-if="mdView.current.record.inspirethemewithac.length

0 ||
                         mdView.current.record.inspirethemewithac.length

0">
           <th data-translate="">inspireThemes</th>

2) After these changes startup Geonetwork and re-index the catalogue from
the Administration panel. (
http://SERVER/geonetwork/srv/eng/admin.console?debug#/tools)

3) From same option cleanup JS&CSS cache.

4) Import a metadata with supplemental information, like
https://wascal-dataportal.org/geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f

5) Search for the metadata and display the metadata detail page. I get the
following:

About this resource
supplementalInfo

Codes were assigned so that each variable can directly be linked to the
corresponding question in the questionnaire.

The code is generated on the basis of the section number (I), number of
question (1,2,3,...) and subcategories of each question (x.1, x.2, x.3,...
or A,B,C,...)

Please compare with questionnaire file.
Categories Interactive resources Farming
Keywords

  - household <http://localhost:8080/geonetwork/srv/eng/catalog.search?&gt;
  - farmers <http://localhost:8080/geonetwork/srv/eng/catalog.search?&gt;

Regards,
Jose García

On Wed, Aug 30, 2017 at 11:16 AM, Samin Payrosangari <s6sapayr@anonymised.com>
wrote:

Hi Jose,

Thanks, I'll be waiting for you.

Best,
Samin
On Tue, 29 Aug 2017 17:36:48 +0200
Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

I'll check to test locally tomorrow to see what can be missing.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:28 PM, Samin Payrosangari <s6sapayr@anonymised.com
>
wrote:

Dear Jose,

I rebuilt index. Still nothing appears for supplementalInformation :(.

Best,
Samin
On Tue, 29 Aug 2017 15:24:00 +0200

"Samin Payrosangari" <s6sapayr@anonymised.com> wrote:

Hi Jose,

Actually, reindexing is in progress for a long time. I did not know that
it is important for adding fields. So I should be waiting until it
finishes
to see the result.
What about accessConstraints and useConstraints? How should I activate
them? For example in this metadata https://wascal-dataportal.org/
geonetwork/apps/search/?uuid=43b49387-97b8-4231-b3f2-ad2a3fe54d0f ,
that
I harvested from wascal geoportal, there are several constraints, but my
portal only displays other constraints and calls them legal constraints.
When I look at the code in default.xsl, it seems that they are part of
the resourceConstraints which is already included in recordView.html.
But
why my portal does not show them(I have geonetwork 3.2).

Best,
Samin
  On Tue, 29 Aug 2017 15:13:02 +0200
Jose Garcia <jose.garcia@anonymised.com> wrote:

Hi Samin

Just to be sure, did you reindex the catalogue, adding a new field in
the
index requires a reindex, otherwise the new fields are not added.

Regards,
Jose García

On Tue, Aug 29, 2017 at 3:01 PM, Samin Payrosangari <
s6sapayr@anonymised.com>
wrote:

Hi friends,

I want to add some new fields like "supplementalInformation",
"useConstraints" and "accessConstraints" to metadata default view. For
adding supplementalInformation I followed instructions according to
this
link:
https://gis.stackexchange.com/questions/202539/change-geonet
work-default-metadata-view.
However it does not work. I use <div data-ng-if="mdView.current.rec
ord.supplementalInformation">,
but the code does not enter to this div even for a metadata that I am
sure
it has supplemental information(by looking at XML view). I also
cleared
formatter and js caches and restarted tomcat.

For adding useConstraints and accessConstraints, I don't know what to
do.
I also have a metadata which includes these constraints but they are
not
shown in metadata default view.
Any help please?

Best,
Samin

------------------------------------------------------------
------------------
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/project
s/geonetwork

--

*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.*

--

*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.*

--

*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.*