[GeoNetwork-users] Related records

Hi all,

recently I've upgraded my GN instance from 3.0.1 to 3.2.1. I have a problem
with displayng "Download and links" section in metadata record view page.
Here [1] is how the links are stored in XML.

In the old version in metadata record view there is a section "Download and
links" where are some related links to university catalog system, geoserver
WMS GetMap request and so on. If I inspect the html elements I get the
section with it [2]. It works with no problem. However I the new version
where I use the same data and no records were changed I cannot display the
section "Download and links". If I inspect the record page I find similar
<div> section but nothing in it.
I think it's related with these files:
catalog/components/metadataactions/RelatedDirective.js and
catalog/components/metadataactions/partials/related.html. But as I'm not
very familiar with Angular I cannot find the solutions.

What've changed between the versions? Any idea or solution for my problem?
Thanks in advance.
Adam

[1]:
<gmd:transferOptions>
    <gmd:MD_DigitalTransferOptions>
        <gmd:onLine>
            <gmd:CI_OnlineResource>
                <gmd:linkage>
                    <gmd:URL>
                        http://mapy2.natur.cuni.cz:
8080/geoserver/MapovaSbirka7/wms?version=1.1.0&request=
GetMap&layers=MapovaSbirka7:D1_00107_00053_300dpi&styles=&
bbox=16.597778000000,49.190000000000,16.616667000000,
49.199167000000&width=1300&height=700&srs=EPSG:4326&
format=application/openlayers
                    </gmd:URL>
                </gmd:linkage>
                <gmd:protocol>
                    <gco:CharacterString>WWW:LINK-1.0-http--related</gco:
CharacterString>
                </gmd:protocol>
                <gmd:name>
                    <gco:CharacterString>Otevře náhled v openLayers</gco:
CharacterString>
                </gmd:name>
                <gmd:description>
                    <gco:CharacterString>OpenLayers
náhled</gco:CharacterString>
                </gmd:description>
            </gmd:CI_OnlineResource>
        </gmd:onLine>
    </gmd:MD_DigitalTransferOptions>
</gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo>

[2]:
<div data-gn-related="mdView.current.record" data-types="online"
data-title="Download and links"
     class="ng-isolate-scope">
    <div class="gn-related-resources" data-ng-show="relations.length >
0"><h2 class="ng-binding">Download and links</h2>
        <!-- ngRepeat: r in relations track by $index --><!-- ngIf:
r['@type'] !== 'thumbnail' -->
        <!-- ngIf: r['@type'] !== 'thumbnail' -->
        <div class="row list-group-item gn-related-item ng-scope"
data-ng-repeat="r in relations track by $index"
             data-ng-init="mainType = config.getType(r);type = r['@type'];"
data-ng-if="r['@type'] !== 'thumbnail'">
            <div class="col-xs-1"><strong><i class="fa fa-2x fa-link"
data-ng-class="config.getClassIcon(mainType)"></i>&nbsp;
            </strong></div>
            <div class="col-xs-7"><!-- WMS & WFS contains layer name in
title -->
                <!-- ngIf: mainType !== 'WMS' && mainType !== 'WCS' &&
mainType !== 'LINKDOWNLOAD' && mainType !== 'LINK' && r.protocol !==
'OGC:WFS' -->
                <!-- Display description if available -->
                <!-- ngIf: (mainType === 'WMS' || mainType === 'WCS' ||
mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
r['abstract'] && r['abstract'].length > 0 -->
                <h4 data-ng-if="(mainType === 'WMS' || mainType === 'WCS'
|| mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &amp;&amp;
r['abstract'] &amp;&amp; r['abstract'].length > 0"
                    class="ng-binding ng-scope"> OpenLayers náhled </h4>
                <!-- end ngIf: (mainType === 'WMS' || mainType === 'WCS' ||
mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
r['abstract'] && r['abstract'].length > 0 -->
                <!-- ngIf: mainType.indexOf('MD') == 0 --><!-- ngIf:
mainType === 'WMS' -->
                <!-- ngIf: r.protocol === 'OGC:WFS' --><!-- ngIf: mainType
=== 'WCS' --><!-- ngIf: mainType === 'DB' -->
                <!-- ngIf: mainType === 'FILE' --><!-- ngIf: mainType ===
'LINKDOWNLOAD' -->
                <!-- ngIf: mainType === 'LINK' --><p class="text-muted
ng-binding ng-scope"
                                                     data-ng-if="mainType
=== 'LINK'"> Otevře náhled v openLayers </p>
                <!-- end ngIf: mainType === 'LINK' --></div>
            <div class="col-xs-4">
                <button type="button" class="btn btn-default btn-lg
btn-block" data-ng-show="hasAction(mainType)"
                        data-ng-click="config.doAction(mainType, r,
md)"><span class="visible-lg-* ng-binding"> Open link </span>
                </button>
            </div>
        </div><!-- end ngIf: r['@type'] !== 'thumbnail' --><!-- end
ngRepeat: r in relations track by $index -->
</div>

[3]:
<div data-gn-related="mdView.current.record" data-types="online"
data-title="Download and links" class="ng-isolate-scope"><!-- ngIf:
relationFound --></div>

Hi Adam,

I think this is related to an issue I am also seeing, where related records
don't display. Are you using tomcat8 by any chance? I think it's to do with
the use of the | parameter in the URL for the related records call. I
raised this a week or so ago on the developers list but got no response. If
you are also using tomcat8 then I will create a github issue for it.

Jo

On Fri, Mar 24, 2017 at 11:26 AM, Adam Laža <ad.laza32@anonymised.com> wrote:

Hi all,

recently I've upgraded my GN instance from 3.0.1 to 3.2.1. I have a problem
with displayng "Download and links" section in metadata record view page.
Here [1] is how the links are stored in XML.

In the old version in metadata record view there is a section "Download and
links" where are some related links to university catalog system, geoserver
WMS GetMap request and so on. If I inspect the html elements I get the
section with it [2]. It works with no problem. However I the new version
where I use the same data and no records were changed I cannot display the
section "Download and links". If I inspect the record page I find similar
<div> section but nothing in it.
I think it's related with these files:
catalog/components/metadataactions/RelatedDirective.js and
catalog/components/metadataactions/partials/related.html. But as I'm not
very familiar with Angular I cannot find the solutions.

What've changed between the versions? Any idea or solution for my problem?
Thanks in advance.
Adam

[1]:
<gmd:transferOptions>
    <gmd:MD_DigitalTransferOptions>
        <gmd:onLine>
            <gmd:CI_OnlineResource>
                <gmd:linkage>
                    <gmd:URL>
                        http://mapy2.natur.cuni.cz:
8080/geoserver/MapovaSbirka7/wms?version=1.1.0&request=
GetMap&layers=MapovaSbirka7:D1_00107_00053_300dpi&styles=&
bbox=16.597778000000,49.190000000000,16.616667000000,
49.199167000000&width=1300&height=700&srs=EPSG:4326&
format=application/openlayers
                    </gmd:URL>
                </gmd:linkage>
                <gmd:protocol>
                    <gco:CharacterString>WWW:LINK-1.0-http--related</gco:
CharacterString>
                </gmd:protocol>
                <gmd:name>
                    <gco:CharacterString>Otevře náhled v openLayers</gco:
CharacterString>
                </gmd:name>
                <gmd:description>
                    <gco:CharacterString>OpenLayers
náhled</gco:CharacterString>
                </gmd:description>
            </gmd:CI_OnlineResource>
        </gmd:onLine>
    </gmd:MD_DigitalTransferOptions>
</gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo>

[2]:
<div data-gn-related="mdView.current.record" data-types="online"
data-title="Download and links"
     class="ng-isolate-scope">
    <div class="gn-related-resources" data-ng-show="relations.length >
0"><h2 class="ng-binding">Download and links</h2>
        <!-- ngRepeat: r in relations track by $index --><!-- ngIf:
r['@type'] !== 'thumbnail' -->
        <!-- ngIf: r['@type'] !== 'thumbnail' -->
        <div class="row list-group-item gn-related-item ng-scope"
data-ng-repeat="r in relations track by $index"
             data-ng-init="mainType = config.getType(r);type = r['@type'];"
data-ng-if="r['@type'] !== 'thumbnail'">
            <div class="col-xs-1"><strong><i class="fa fa-2x fa-link"
data-ng-class="config.getClassIcon(mainType)"></i>&nbsp;
            </strong></div>
            <div class="col-xs-7"><!-- WMS & WFS contains layer name in
title -->
                <!-- ngIf: mainType !== 'WMS' && mainType !== 'WCS' &&
mainType !== 'LINKDOWNLOAD' && mainType !== 'LINK' && r.protocol !==
'OGC:WFS' -->
                <!-- Display description if available -->
                <!-- ngIf: (mainType === 'WMS' || mainType === 'WCS' ||
mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
r['abstract'] && r['abstract'].length > 0 -->
                <h4 data-ng-if="(mainType === 'WMS' || mainType === 'WCS'
|| mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &amp;&amp;
r['abstract'] &amp;&amp; r['abstract'].length > 0"
                    class="ng-binding ng-scope"> OpenLayers náhled </h4>
                <!-- end ngIf: (mainType === 'WMS' || mainType === 'WCS' ||
mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
r['abstract'] && r['abstract'].length > 0 -->
                <!-- ngIf: mainType.indexOf('MD') == 0 --><!-- ngIf:
mainType === 'WMS' -->
                <!-- ngIf: r.protocol === 'OGC:WFS' --><!-- ngIf: mainType
=== 'WCS' --><!-- ngIf: mainType === 'DB' -->
                <!-- ngIf: mainType === 'FILE' --><!-- ngIf: mainType ===
'LINKDOWNLOAD' -->
                <!-- ngIf: mainType === 'LINK' --><p class="text-muted
ng-binding ng-scope"
                                                     data-ng-if="mainType
=== 'LINK'"> Otevře náhled v openLayers </p>
                <!-- end ngIf: mainType === 'LINK' --></div>
            <div class="col-xs-4">
                <button type="button" class="btn btn-default btn-lg
btn-block" data-ng-show="hasAction(mainType)"
                        data-ng-click="config.doAction(mainType, r,
md)"><span class="visible-lg-* ng-binding"> Open link </span>
                </button>
            </div>
        </div><!-- end ngIf: r['@type'] !== 'thumbnail' --><!-- end
ngRepeat: r in relations track by $index -->
</div>

[3]:
<div data-gn-related="mdView.current.record" data-types="online"
data-title="Download and links" class="ng-isolate-scope"><!-- ngIf:
relationFound --></div>
------------------------------------------------------------
------------------
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

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

Register here:
https://www.eventbrite.co.uk/e/astun-user-conference-2017-tickets-31457635635?aff=es2
Astun User Conference web page:
https://astuntechnology.com/astun-user-conference/
iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi

Not really sure if the same problem as the related service is different in
3.2.x and seem it worked for Adam in 3.0.x, but to check further.

Adam, do you have a metadata to try this?

Regards,
Jose García

On Fri, Mar 24, 2017 at 12:40 PM, Jo Cook <jocook@anonymised.com>
wrote:

Hi Adam,

I think this is related to an issue I am also seeing, where related records
don't display. Are you using tomcat8 by any chance? I think it's to do with
the use of the | parameter in the URL for the related records call. I
raised this a week or so ago on the developers list but got no response. If
you are also using tomcat8 then I will create a github issue for it.

Jo

On Fri, Mar 24, 2017 at 11:26 AM, Adam Laža <ad.laza32@anonymised.com> wrote:

> Hi all,
>
> recently I've upgraded my GN instance from 3.0.1 to 3.2.1. I have a
problem
> with displayng "Download and links" section in metadata record view page.
> Here [1] is how the links are stored in XML.
>
> In the old version in metadata record view there is a section "Download
and
> links" where are some related links to university catalog system,
geoserver
> WMS GetMap request and so on. If I inspect the html elements I get the
> section with it [2]. It works with no problem. However I the new version
> where I use the same data and no records were changed I cannot display
the
> section "Download and links". If I inspect the record page I find similar
> <div> section but nothing in it.
> I think it's related with these files:
> catalog/components/metadataactions/RelatedDirective.js and
> catalog/components/metadataactions/partials/related.html. But as I'm not
> very familiar with Angular I cannot find the solutions.
>
> What've changed between the versions? Any idea or solution for my
problem?
> Thanks in advance.
> Adam
>
> [1]:
> <gmd:transferOptions>
> <gmd:MD_DigitalTransferOptions>
> <gmd:onLine>
> <gmd:CI_OnlineResource>
> <gmd:linkage>
> <gmd:URL>
> http://mapy2.natur.cuni.cz:
> 8080/geoserver/MapovaSbirka7/wms?version=1.1.0&request=
> GetMap&layers=MapovaSbirka7:D1_00107_00053_300dpi&styles=&
> bbox=16.597778000000,49.190000000000,16.616667000000,
> 49.199167000000&width=1300&height=700&srs=EPSG:4326&
> format=application/openlayers
> </gmd:URL>
> </gmd:linkage>
> <gmd:protocol>
> <gco:CharacterString>WWW:LINK-
1.0-http--related</gco:
> CharacterString>
> </gmd:protocol>
> <gmd:name>
> <gco:CharacterString>Otevře náhled v openLayers</gco:
> CharacterString>
> </gmd:name>
> <gmd:description>
> <gco:CharacterString>OpenLayers
> náhled</gco:CharacterString>
> </gmd:description>
> </gmd:CI_OnlineResource>
> </gmd:onLine>
> </gmd:MD_DigitalTransferOptions>
> </gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo>
>
> [2]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links"
> class="ng-isolate-scope">
> <div class="gn-related-resources" data-ng-show="relations.length >
> 0"><h2 class="ng-binding">Download and links</h2>
> <!-- ngRepeat: r in relations track by $index --><!-- ngIf:
> r['@type'] !== 'thumbnail' -->
> <!-- ngIf: r['@type'] !== 'thumbnail' -->
> <div class="row list-group-item gn-related-item ng-scope"
> data-ng-repeat="r in relations track by $index"
> data-ng-init="mainType = config.getType(r);type =
r['@type'];"
> data-ng-if="r['@type'] !== 'thumbnail'">
> <div class="col-xs-1"><strong><i class="fa fa-2x fa-link"
> data-ng-class="config.getClassIcon(mainType)"></i>&nbsp;
> </strong></div>
> <div class="col-xs-7"><!-- WMS & WFS contains layer name in
> title -->
> <!-- ngIf: mainType !== 'WMS' && mainType !== 'WCS' &&
> mainType !== 'LINKDOWNLOAD' && mainType !== 'LINK' && r.protocol !==
> 'OGC:WFS' -->
> <!-- Display description if available -->
> <!-- ngIf: (mainType === 'WMS' || mainType === 'WCS' ||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <h4 data-ng-if="(mainType === 'WMS' || mainType === 'WCS'
> || mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &amp;&amp;
> r['abstract'] &amp;&amp; r['abstract'].length > 0"
> class="ng-binding ng-scope"> OpenLayers náhled </h4>
> <!-- end ngIf: (mainType === 'WMS' || mainType === 'WCS'
||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <!-- ngIf: mainType.indexOf('MD') == 0 --><!-- ngIf:
> mainType === 'WMS' -->
> <!-- ngIf: r.protocol === 'OGC:WFS' --><!-- ngIf:
mainType
> === 'WCS' --><!-- ngIf: mainType === 'DB' -->
> <!-- ngIf: mainType === 'FILE' --><!-- ngIf: mainType ===
> 'LINKDOWNLOAD' -->
> <!-- ngIf: mainType === 'LINK' --><p class="text-muted
> ng-binding ng-scope"
> data-ng-if="mainType
> === 'LINK'"> Otevře náhled v openLayers </p>
> <!-- end ngIf: mainType === 'LINK' --></div>
> <div class="col-xs-4">
> <button type="button" class="btn btn-default btn-lg
> btn-block" data-ng-show="hasAction(mainType)"
> data-ng-click="config.doAction(mainType, r,
> md)"><span class="visible-lg-* ng-binding"> Open link </span>
> </button>
> </div>
> </div><!-- end ngIf: r['@type'] !== 'thumbnail' --><!-- end
> ngRepeat: r in relations track by $index -->
> </div>
>
> [3]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links" class="ng-isolate-scope"><!-- ngIf:
> relationFound --></div>
> ------------------------------------------------------------
> ------------------
> 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
>

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

Register here:
https://www.eventbrite.co.uk/e/astun-user-conference-2017-
tickets-31457635635?aff=es2
Astun User Conference web page:
https://astuntechnology.com/astun-user-conference/
iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.
------------------------------------------------------------
------------------
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

--

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

@Jo: Yes, I'm using Tomcat 8 (8.0.26) but not really sure if my problem is
related with Tomcat. I run the old version of GN on another server with
Tomcat 8 and there are no problems.
@Jose: I don't understand what should I try. I have two servers, both with
Tomcat 8, on the first there is GN 3.0.1 on the second GN 3.2.1. Metadata
on both servers are the same. I can see download section on the old version
but not on the new one. I'm very happy to help with testing just tell me
what exactly do you need.

A.

2017-03-24 13:47 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Not really sure if the same problem as the related service is different in
3.2.x and seem it worked for Adam in 3.0.x, but to check further.

Adam, do you have a metadata to try this?

Regards,
Jose García

On Fri, Mar 24, 2017 at 12:40 PM, Jo Cook <jocook@anonymised.com>
wrote:

Hi Adam,

I think this is related to an issue I am also seeing, where related
records
don't display. Are you using tomcat8 by any chance? I think it's to do
with
the use of the | parameter in the URL for the related records call. I
raised this a week or so ago on the developers list but got no response.
If
you are also using tomcat8 then I will create a github issue for it.

Jo

On Fri, Mar 24, 2017 at 11:26 AM, Adam Laža <ad.laza32@anonymised.com> wrote:

> Hi all,
>
> recently I've upgraded my GN instance from 3.0.1 to 3.2.1. I have a
problem
> with displayng "Download and links" section in metadata record view
page.
> Here [1] is how the links are stored in XML.
>
> In the old version in metadata record view there is a section "Download
and
> links" where are some related links to university catalog system,
geoserver
> WMS GetMap request and so on. If I inspect the html elements I get the
> section with it [2]. It works with no problem. However I the new version
> where I use the same data and no records were changed I cannot display
the
> section "Download and links". If I inspect the record page I find
similar
> <div> section but nothing in it.
> I think it's related with these files:
> catalog/components/metadataactions/RelatedDirective.js and
> catalog/components/metadataactions/partials/related.html. But as I'm
not
> very familiar with Angular I cannot find the solutions.
>
> What've changed between the versions? Any idea or solution for my
problem?
> Thanks in advance.
> Adam
>
> [1]:
> <gmd:transferOptions>
> <gmd:MD_DigitalTransferOptions>
> <gmd:onLine>
> <gmd:CI_OnlineResource>
> <gmd:linkage>
> <gmd:URL>
> http://mapy2.natur.cuni.cz:
> 8080/geoserver/MapovaSbirka7/wms?version=1.1.0&request=
> GetMap&layers=MapovaSbirka7:D1_00107_00053_300dpi&styles=&
> bbox=16.597778000000,49.190000000000,16.616667000000,
> 49.199167000000&width=1300&height=700&srs=EPSG:4326&
> format=application/openlayers
> </gmd:URL>
> </gmd:linkage>
> <gmd:protocol>
> <gco:CharacterString>WWW:
LINK-1.0-http--related</gco:
> CharacterString>
> </gmd:protocol>
> <gmd:name>
> <gco:CharacterString>Otevře náhled v
openLayers</gco:
> CharacterString>
> </gmd:name>
> <gmd:description>
> <gco:CharacterString>OpenLayers
> náhled</gco:CharacterString>
> </gmd:description>
> </gmd:CI_OnlineResource>
> </gmd:onLine>
> </gmd:MD_DigitalTransferOptions>
> </gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo>
>
> [2]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links"
> class="ng-isolate-scope">
> <div class="gn-related-resources" data-ng-show="relations.length >
> 0"><h2 class="ng-binding">Download and links</h2>
> <!-- ngRepeat: r in relations track by $index --><!-- ngIf:
> r['@type'] !== 'thumbnail' -->
> <!-- ngIf: r['@type'] !== 'thumbnail' -->
> <div class="row list-group-item gn-related-item ng-scope"
> data-ng-repeat="r in relations track by $index"
> data-ng-init="mainType = config.getType(r);type =
r['@type'];"
> data-ng-if="r['@type'] !== 'thumbnail'">
> <div class="col-xs-1"><strong><i class="fa fa-2x fa-link"
> data-ng-class="config.getClassIcon(mainType)"></i>&nbsp;
> </strong></div>
> <div class="col-xs-7"><!-- WMS & WFS contains layer name in
> title -->
> <!-- ngIf: mainType !== 'WMS' && mainType !== 'WCS' &&
> mainType !== 'LINKDOWNLOAD' && mainType !== 'LINK' && r.protocol !==
> 'OGC:WFS' -->
> <!-- Display description if available -->
> <!-- ngIf: (mainType === 'WMS' || mainType === 'WCS' ||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <h4 data-ng-if="(mainType === 'WMS' || mainType ===
'WCS'
> || mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS')
&amp;&amp;
> r['abstract'] &amp;&amp; r['abstract'].length > 0"
> class="ng-binding ng-scope"> OpenLayers náhled </h4>
> <!-- end ngIf: (mainType === 'WMS' || mainType ===
'WCS' ||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <!-- ngIf: mainType.indexOf('MD') == 0 --><!-- ngIf:
> mainType === 'WMS' -->
> <!-- ngIf: r.protocol === 'OGC:WFS' --><!-- ngIf:
mainType
> === 'WCS' --><!-- ngIf: mainType === 'DB' -->
> <!-- ngIf: mainType === 'FILE' --><!-- ngIf: mainType

> 'LINKDOWNLOAD' -->
> <!-- ngIf: mainType === 'LINK' --><p class="text-muted
> ng-binding ng-scope"
>
data-ng-if="mainType
> === 'LINK'"> Otevře náhled v openLayers </p>
> <!-- end ngIf: mainType === 'LINK' --></div>
> <div class="col-xs-4">
> <button type="button" class="btn btn-default btn-lg
> btn-block" data-ng-show="hasAction(mainType)"
> data-ng-click="config.doAction(mainType, r,
> md)"><span class="visible-lg-* ng-binding"> Open link </span>
> </button>
> </div>
> </div><!-- end ngIf: r['@type'] !== 'thumbnail' --><!-- end
> ngRepeat: r in relations track by $index -->
> </div>
>
> [3]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links" class="ng-isolate-scope"><!-- ngIf:
> relationFound --></div>
> ------------------------------------------------------------
> ------------------
> 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
>

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey, KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

Register here:
https://www.eventbrite.co.uk/e/astun-user-conference-2017-ti
ckets-31457635635?aff=es2
Astun User Conference web page:
https://astuntechnology.com/astun-user-conference/
iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.
------------------------------------------------------------
------------------
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 Adam

Sorry, I was not clear. I would like to test in 3.2.1 in my computer and
want to get the metadata you're facing the problems. Can you send the xml
or if it's in a public server, send me the link to download it?

Regards,
Jose García

On Fri, Mar 24, 2017 at 2:24 PM, Adam Laža <ad.laza32@anonymised.com> wrote:

Hi,

@Jo: Yes, I'm using Tomcat 8 (8.0.26) but not really sure if my problem is
related with Tomcat. I run the old version of GN on another server with
Tomcat 8 and there are no problems.
@Jose: I don't understand what should I try. I have two servers, both with
Tomcat 8, on the first there is GN 3.0.1 on the second GN 3.2.1. Metadata
on both servers are the same. I can see download section on the old version
but not on the new one. I'm very happy to help with testing just tell me
what exactly do you need.

A.

2017-03-24 13:47 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Not really sure if the same problem as the related service is different
in 3.2.x and seem it worked for Adam in 3.0.x, but to check further.

Adam, do you have a metadata to try this?

Regards,
Jose García

On Fri, Mar 24, 2017 at 12:40 PM, Jo Cook <jocook@anonymised.com>
wrote:

Hi Adam,

I think this is related to an issue I am also seeing, where related
records
don't display. Are you using tomcat8 by any chance? I think it's to do
with
the use of the | parameter in the URL for the related records call. I
raised this a week or so ago on the developers list but got no response.
If
you are also using tomcat8 then I will create a github issue for it.

Jo

On Fri, Mar 24, 2017 at 11:26 AM, Adam Laža <ad.laza32@anonymised.com> wrote:

> Hi all,
>
> recently I've upgraded my GN instance from 3.0.1 to 3.2.1. I have a
problem
> with displayng "Download and links" section in metadata record view
page.
> Here [1] is how the links are stored in XML.
>
> In the old version in metadata record view there is a section
"Download and
> links" where are some related links to university catalog system,
geoserver
> WMS GetMap request and so on. If I inspect the html elements I get the
> section with it [2]. It works with no problem. However I the new
version
> where I use the same data and no records were changed I cannot display
the
> section "Download and links". If I inspect the record page I find
similar
> <div> section but nothing in it.
> I think it's related with these files:
> catalog/components/metadataactions/RelatedDirective.js and
> catalog/components/metadataactions/partials/related.html. But as I'm
not
> very familiar with Angular I cannot find the solutions.
>
> What've changed between the versions? Any idea or solution for my
problem?
> Thanks in advance.
> Adam
>
> [1]:
> <gmd:transferOptions>
> <gmd:MD_DigitalTransferOptions>
> <gmd:onLine>
> <gmd:CI_OnlineResource>
> <gmd:linkage>
> <gmd:URL>
> http://mapy2.natur.cuni.cz:
> 8080/geoserver/MapovaSbirka7/wms?version=1.1.0&request=
> GetMap&layers=MapovaSbirka7:D1_00107_00053_300dpi&styles=&
> bbox=16.597778000000,49.190000000000,16.616667000000,
> 49.199167000000&width=1300&height=700&srs=EPSG:4326&
> format=application/openlayers
> </gmd:URL>
> </gmd:linkage>
> <gmd:protocol>
> <gco:CharacterString>WWW:LINK
-1.0-http--related</gco:
> CharacterString>
> </gmd:protocol>
> <gmd:name>
> <gco:CharacterString>Otevře náhled v
openLayers</gco:
> CharacterString>
> </gmd:name>
> <gmd:description>
> <gco:CharacterString>OpenLayers
> náhled</gco:CharacterString>
> </gmd:description>
> </gmd:CI_OnlineResource>
> </gmd:onLine>
> </gmd:MD_DigitalTransferOptions>
> </gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo>
>
> [2]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links"
> class="ng-isolate-scope">
> <div class="gn-related-resources" data-ng-show="relations.length >
> 0"><h2 class="ng-binding">Download and links</h2>
> <!-- ngRepeat: r in relations track by $index --><!-- ngIf:
> r['@type'] !== 'thumbnail' -->
> <!-- ngIf: r['@type'] !== 'thumbnail' -->
> <div class="row list-group-item gn-related-item ng-scope"
> data-ng-repeat="r in relations track by $index"
> data-ng-init="mainType = config.getType(r);type =
r['@type'];"
> data-ng-if="r['@type'] !== 'thumbnail'">
> <div class="col-xs-1"><strong><i class="fa fa-2x fa-link"
> data-ng-class="config.getClassIcon(mainType)"></i>&nbsp;
> </strong></div>
> <div class="col-xs-7"><!-- WMS & WFS contains layer name in
> title -->
> <!-- ngIf: mainType !== 'WMS' && mainType !== 'WCS' &&
> mainType !== 'LINKDOWNLOAD' && mainType !== 'LINK' && r.protocol !==
> 'OGC:WFS' -->
> <!-- Display description if available -->
> <!-- ngIf: (mainType === 'WMS' || mainType === 'WCS' ||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <h4 data-ng-if="(mainType === 'WMS' || mainType ===
'WCS'
> || mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS')
&amp;&amp;
> r['abstract'] &amp;&amp; r['abstract'].length > 0"
> class="ng-binding ng-scope"> OpenLayers náhled
</h4>
> <!-- end ngIf: (mainType === 'WMS' || mainType ===
'WCS' ||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <!-- ngIf: mainType.indexOf('MD') == 0 --><!-- ngIf:
> mainType === 'WMS' -->
> <!-- ngIf: r.protocol === 'OGC:WFS' --><!-- ngIf:
mainType
> === 'WCS' --><!-- ngIf: mainType === 'DB' -->
> <!-- ngIf: mainType === 'FILE' --><!-- ngIf: mainType

> 'LINKDOWNLOAD' -->
> <!-- ngIf: mainType === 'LINK' --><p class="text-muted
> ng-binding ng-scope"
>
data-ng-if="mainType
> === 'LINK'"> Otevře náhled v openLayers </p>
> <!-- end ngIf: mainType === 'LINK' --></div>
> <div class="col-xs-4">
> <button type="button" class="btn btn-default btn-lg
> btn-block" data-ng-show="hasAction(mainType)"
> data-ng-click="config.doAction(mainType, r,
> md)"><span class="visible-lg-* ng-binding"> Open link </span>
> </button>
> </div>
> </div><!-- end ngIf: r['@type'] !== 'thumbnail' --><!-- end
> ngRepeat: r in relations track by $index -->
> </div>
>
> [3]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links" class="ng-isolate-scope"><!-- ngIf:
> relationFound --></div>
> ------------------------------------------------------------
> ------------------
> 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
>

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey,
KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

Register here:
https://www.eventbrite.co.uk/e/astun-user-conference-2017-ti
ckets-31457635635?aff=es2
Astun User Conference web page:
https://astuntechnology.com/astun-user-conference/
iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.
------------------------------------------------------------
------------------
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,

both servers are public.
GN 3.2.1
http://mapy.natur.cuni.cz:8080/geonetwork/
GN 3.0.1
http://mapy2.natur.cuni.cz:8080/geonetwork/

E.g.
http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/formatters/xml

Br,
Adam

2017-03-24 14:26 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi Adam

Sorry, I was not clear. I would like to test in 3.2.1 in my computer and
want to get the metadata you're facing the problems. Can you send the xml
or if it's in a public server, send me the link to download it?

Regards,
Jose García

On Fri, Mar 24, 2017 at 2:24 PM, Adam Laža <ad.laza32@anonymised.com> wrote:

Hi,

@Jo: Yes, I'm using Tomcat 8 (8.0.26) but not really sure if my problem
is related with Tomcat. I run the old version of GN on another server with
Tomcat 8 and there are no problems.
@Jose: I don't understand what should I try. I have two servers, both
with Tomcat 8, on the first there is GN 3.0.1 on the second GN 3.2.1.
Metadata on both servers are the same. I can see download section on the
old version but not on the new one. I'm very happy to help with testing
just tell me what exactly do you need.

A.

2017-03-24 13:47 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Not really sure if the same problem as the related service is different
in 3.2.x and seem it worked for Adam in 3.0.x, but to check further.

Adam, do you have a metadata to try this?

Regards,
Jose García

On Fri, Mar 24, 2017 at 12:40 PM, Jo Cook <jocook@anonymised.com>
wrote:

Hi Adam,

I think this is related to an issue I am also seeing, where related
records
don't display. Are you using tomcat8 by any chance? I think it's to do
with
the use of the | parameter in the URL for the related records call. I
raised this a week or so ago on the developers list but got no
response. If
you are also using tomcat8 then I will create a github issue for it.

Jo

On Fri, Mar 24, 2017 at 11:26 AM, Adam Laža <ad.laza32@anonymised.com>
wrote:

> Hi all,
>
> recently I've upgraded my GN instance from 3.0.1 to 3.2.1. I have a
problem
> with displayng "Download and links" section in metadata record view
page.
> Here [1] is how the links are stored in XML.
>
> In the old version in metadata record view there is a section
"Download and
> links" where are some related links to university catalog system,
geoserver
> WMS GetMap request and so on. If I inspect the html elements I get the
> section with it [2]. It works with no problem. However I the new
version
> where I use the same data and no records were changed I cannot
display the
> section "Download and links". If I inspect the record page I find
similar
> <div> section but nothing in it.
> I think it's related with these files:
> catalog/components/metadataactions/RelatedDirective.js and
> catalog/components/metadataactions/partials/related.html. But as I'm
not
> very familiar with Angular I cannot find the solutions.
>
> What've changed between the versions? Any idea or solution for my
problem?
> Thanks in advance.
> Adam
>
> [1]:
> <gmd:transferOptions>
> <gmd:MD_DigitalTransferOptions>
> <gmd:onLine>
> <gmd:CI_OnlineResource>
> <gmd:linkage>
> <gmd:URL>
> http://mapy2.natur.cuni.cz:
> 8080/geoserver/MapovaSbirka7/wms?version=1.1.0&request=
> GetMap&layers=MapovaSbirka7:D1_00107_00053_300dpi&styles=&
> bbox=16.597778000000,49.190000000000,16.616667000000,
> 49.199167000000&width=1300&height=700&srs=EPSG:4326&
> format=application/openlayers
> </gmd:URL>
> </gmd:linkage>
> <gmd:protocol>
> <gco:CharacterString>WWW:LINK
-1.0-http--related</gco:
> CharacterString>
> </gmd:protocol>
> <gmd:name>
> <gco:CharacterString>Otevře náhled v
openLayers</gco:
> CharacterString>
> </gmd:name>
> <gmd:description>
> <gco:CharacterString>OpenLayers
> náhled</gco:CharacterString>
> </gmd:description>
> </gmd:CI_OnlineResource>
> </gmd:onLine>
> </gmd:MD_DigitalTransferOptions>
> </gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo>
>
> [2]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links"
> class="ng-isolate-scope">
> <div class="gn-related-resources" data-ng-show="relations.length >
> 0"><h2 class="ng-binding">Download and links</h2>
> <!-- ngRepeat: r in relations track by $index --><!-- ngIf:
> r['@type'] !== 'thumbnail' -->
> <!-- ngIf: r['@type'] !== 'thumbnail' -->
> <div class="row list-group-item gn-related-item ng-scope"
> data-ng-repeat="r in relations track by $index"
> data-ng-init="mainType = config.getType(r);type =
r['@type'];"
> data-ng-if="r['@type'] !== 'thumbnail'">
> <div class="col-xs-1"><strong><i class="fa fa-2x fa-link"
> data-ng-class="config.getClassIcon(mainType)"></i>&nbsp;
> </strong></div>
> <div class="col-xs-7"><!-- WMS & WFS contains layer name
in
> title -->
> <!-- ngIf: mainType !== 'WMS' && mainType !== 'WCS' &&
> mainType !== 'LINKDOWNLOAD' && mainType !== 'LINK' && r.protocol !==
> 'OGC:WFS' -->
> <!-- Display description if available -->
> <!-- ngIf: (mainType === 'WMS' || mainType === 'WCS'
||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <h4 data-ng-if="(mainType === 'WMS' || mainType ===
'WCS'
> || mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS')
&amp;&amp;
> r['abstract'] &amp;&amp; r['abstract'].length > 0"
> class="ng-binding ng-scope"> OpenLayers náhled
</h4>
> <!-- end ngIf: (mainType === 'WMS' || mainType ===
'WCS' ||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <!-- ngIf: mainType.indexOf('MD') == 0 --><!-- ngIf:
> mainType === 'WMS' -->
> <!-- ngIf: r.protocol === 'OGC:WFS' --><!-- ngIf:
mainType
> === 'WCS' --><!-- ngIf: mainType === 'DB' -->
> <!-- ngIf: mainType === 'FILE' --><!-- ngIf: mainType

> 'LINKDOWNLOAD' -->
> <!-- ngIf: mainType === 'LINK' --><p class="text-muted
> ng-binding ng-scope"
>
data-ng-if="mainType
> === 'LINK'"> Otevře náhled v openLayers </p>
> <!-- end ngIf: mainType === 'LINK' --></div>
> <div class="col-xs-4">
> <button type="button" class="btn btn-default btn-lg
> btn-block" data-ng-show="hasAction(mainType)"
> data-ng-click="config.doAction(mainType, r,
> md)"><span class="visible-lg-* ng-binding"> Open link </span>
> </button>
> </div>
> </div><!-- end ngIf: r['@type'] !== 'thumbnail' --><!-- end
> ngRepeat: r in relations track by $index -->
> </div>
>
> [3]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links" class="ng-isolate-scope"><!-- ngIf:
> relationFound --></div>
> ------------------------------------------------------------
> ------------------
> 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
>

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey,
KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

Register here:
https://www.eventbrite.co.uk/e/astun-user-conference-2017-ti
ckets-31457635635?aff=es2
Astun User Conference web page:
https://astuntechnology.com/astun-user-conference/
iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.
------------------------------------------------------------
------------------
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

I have loaded the metadata in the latest branch of 3.2.x and works fine for
me displaying the links, but in your server, I notice that the requests
that retrieve the online resources and other related resources fail, like
this one:

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=online

Returns this error:

<apiError>
<code>runtime_exception</code>
<description>
Failed to convert value of type [java.lang.String] to required type
[org.fao.geonet.api.records.model.related.RelatedItemType]; nested
exception is org.springframework.core.convert.ConversionFailedException:
Failed to convert from type [java.lang.String] to type
[org.fao.geonet.api.records.model.related.RelatedItemType] for value
'online'; nested exception is java.lang.IllegalArgumentException: No enum
constant org.fao.geonet.api.records.model.related.RelatedItemType.online
</description>
<message>MethodArgumentTypeMismatchException</message>
</apiError>

That causes the problem. I haven't test in 3.2.1, but in latest 3.2.x
branch, so not sure if was a issue in 3.2.1 and now solved, but also notice
that in your system reports 3.2.1.SNAPSHOT, are you using the official
3.2.1? Or you made a custom build from 3.2.x branch?

If you have an option build latest 3.2.x branch and try it, for it's
working fine.

Regards,
Jose García

On Fri, Mar 24, 2017 at 2:33 PM, Adam Laža <ad.laza32@anonymised.com> wrote:

Hi Jose,

both servers are public.
GN 3.2.1
http://mapy.natur.cuni.cz:8080/geonetwork/
GN 3.0.1
http://mapy2.natur.cuni.cz:8080/geonetwork/

E.g. http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/
records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_
00053_300dpi/formatters/xml

Br,
Adam

2017-03-24 14:26 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi Adam

Sorry, I was not clear. I would like to test in 3.2.1 in my computer and
want to get the metadata you're facing the problems. Can you send the xml
or if it's in a public server, send me the link to download it?

Regards,
Jose García

On Fri, Mar 24, 2017 at 2:24 PM, Adam Laža <ad.laza32@anonymised.com> wrote:

Hi,

@Jo: Yes, I'm using Tomcat 8 (8.0.26) but not really sure if my problem
is related with Tomcat. I run the old version of GN on another server with
Tomcat 8 and there are no problems.
@Jose: I don't understand what should I try. I have two servers, both
with Tomcat 8, on the first there is GN 3.0.1 on the second GN 3.2.1.
Metadata on both servers are the same. I can see download section on the
old version but not on the new one. I'm very happy to help with testing
just tell me what exactly do you need.

A.

2017-03-24 13:47 GMT+01:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi

Not really sure if the same problem as the related service is different
in 3.2.x and seem it worked for Adam in 3.0.x, but to check further.

Adam, do you have a metadata to try this?

Regards,
Jose García

On Fri, Mar 24, 2017 at 12:40 PM, Jo Cook <jocook@anonymised.com>
wrote:

Hi Adam,

I think this is related to an issue I am also seeing, where related
records
don't display. Are you using tomcat8 by any chance? I think it's to do
with
the use of the | parameter in the URL for the related records call. I
raised this a week or so ago on the developers list but got no
response. If
you are also using tomcat8 then I will create a github issue for it.

Jo

On Fri, Mar 24, 2017 at 11:26 AM, Adam Laža <ad.laza32@anonymised.com>
wrote:

> Hi all,
>
> recently I've upgraded my GN instance from 3.0.1 to 3.2.1. I have a
problem
> with displayng "Download and links" section in metadata record view
page.
> Here [1] is how the links are stored in XML.
>
> In the old version in metadata record view there is a section
"Download and
> links" where are some related links to university catalog system,
geoserver
> WMS GetMap request and so on. If I inspect the html elements I get
the
> section with it [2]. It works with no problem. However I the new
version
> where I use the same data and no records were changed I cannot
display the
> section "Download and links". If I inspect the record page I find
similar
> <div> section but nothing in it.
> I think it's related with these files:
> catalog/components/metadataactions/RelatedDirective.js and
> catalog/components/metadataactions/partials/related.html. But as
I'm not
> very familiar with Angular I cannot find the solutions.
>
> What've changed between the versions? Any idea or solution for my
problem?
> Thanks in advance.
> Adam
>
> [1]:
> <gmd:transferOptions>
> <gmd:MD_DigitalTransferOptions>
> <gmd:onLine>
> <gmd:CI_OnlineResource>
> <gmd:linkage>
> <gmd:URL>
> http://mapy2.natur.cuni.cz:
> 8080/geoserver/MapovaSbirka7/wms?version=1.1.0&request=
> GetMap&layers=MapovaSbirka7:D1_00107_00053_300dpi&styles=&
> bbox=16.597778000000,49.190000000000,16.616667000000,
> 49.199167000000&width=1300&height=700&srs=EPSG:4326&
> format=application/openlayers
> </gmd:URL>
> </gmd:linkage>
> <gmd:protocol>
> <gco:CharacterString>WWW:LINK
-1.0-http--related</gco:
> CharacterString>
> </gmd:protocol>
> <gmd:name>
> <gco:CharacterString>Otevře náhled v
openLayers</gco:
> CharacterString>
> </gmd:name>
> <gmd:description>
> <gco:CharacterString>OpenLayers
> náhled</gco:CharacterString>
> </gmd:description>
> </gmd:CI_OnlineResource>
> </gmd:onLine>
> </gmd:MD_DigitalTransferOptions>
> </gmd:transferOptions></gmd:MD_Distribution></gmd:distributionInfo>
>
> [2]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links"
> class="ng-isolate-scope">
> <div class="gn-related-resources" data-ng-show="relations.length
>
> 0"><h2 class="ng-binding">Download and links</h2>
> <!-- ngRepeat: r in relations track by $index --><!-- ngIf:
> r['@type'] !== 'thumbnail' -->
> <!-- ngIf: r['@type'] !== 'thumbnail' -->
> <div class="row list-group-item gn-related-item ng-scope"
> data-ng-repeat="r in relations track by $index"
> data-ng-init="mainType = config.getType(r);type =
r['@type'];"
> data-ng-if="r['@type'] !== 'thumbnail'">
> <div class="col-xs-1"><strong><i class="fa fa-2x fa-link"
> data-ng-class="config.getClassIcon(mainType)"></i>&nbsp;
> </strong></div>
> <div class="col-xs-7"><!-- WMS & WFS contains layer name
in
> title -->
> <!-- ngIf: mainType !== 'WMS' && mainType !== 'WCS'
&&
> mainType !== 'LINKDOWNLOAD' && mainType !== 'LINK' && r.protocol !==
> 'OGC:WFS' -->
> <!-- Display description if available -->
> <!-- ngIf: (mainType === 'WMS' || mainType === 'WCS'
||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <h4 data-ng-if="(mainType === 'WMS' || mainType ===
'WCS'
> || mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS')
&amp;&amp;
> r['abstract'] &amp;&amp; r['abstract'].length > 0"
> class="ng-binding ng-scope"> OpenLayers náhled
</h4>
> <!-- end ngIf: (mainType === 'WMS' || mainType ===
'WCS' ||
> mainType.indexOf('LINK') === 0 || r.protocol === 'OGC:WFS') &&
> r['abstract'] && r['abstract'].length > 0 -->
> <!-- ngIf: mainType.indexOf('MD') == 0 --><!-- ngIf:
> mainType === 'WMS' -->
> <!-- ngIf: r.protocol === 'OGC:WFS' --><!-- ngIf:
mainType
> === 'WCS' --><!-- ngIf: mainType === 'DB' -->
> <!-- ngIf: mainType === 'FILE' --><!-- ngIf:
mainType ===
> 'LINKDOWNLOAD' -->
> <!-- ngIf: mainType === 'LINK' --><p
class="text-muted
> ng-binding ng-scope"
>
data-ng-if="mainType
> === 'LINK'"> Otevře náhled v openLayers </p>
> <!-- end ngIf: mainType === 'LINK' --></div>
> <div class="col-xs-4">
> <button type="button" class="btn btn-default btn-lg
> btn-block" data-ng-show="hasAction(mainType)"
> data-ng-click="config.doAction(mainType, r,
> md)"><span class="visible-lg-* ng-binding"> Open link </span>
> </button>
> </div>
> </div><!-- end ngIf: r['@type'] !== 'thumbnail' --><!-- end
> ngRepeat: r in relations track by $index -->
> </div>
>
> [3]:
> <div data-gn-related="mdView.current.record" data-types="online"
> data-title="Download and links" class="ng-isolate-scope"><!-- ngIf:
> relationFound --></div>
> ------------------------------------------------------------
> ------------------
> 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
>

--
*Jo Cook*
t:+44 7930 524 155/twitter:@archaeogeek

--
--
Astun Technology Ltd, The Coach House, 17 West Street, Epsom, Surrey,
KT18
7RL, UK
t:+44 1372 744 009 w: astuntechnology.com twitter:@astuntech
<https://twitter.com/astuntech&gt;

Register here:
https://www.eventbrite.co.uk/e/astun-user-conference-2017-ti
ckets-31457635635?aff=es2
Astun User Conference web page:
https://astuntechnology.com/astun-user-conference/
iShare - enterprise geographic intelligence platform
<https://astuntechnology.com/ishare/&gt;
GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/services/#training&gt;
Helpdesk and customer portal
<http://support.astuntechnology.com/support/login&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT
no.
864201149.
------------------------------------------------------------
------------------
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,

I have loaded the metadata in the latest branch of 3.2.x and works fine for

me displaying the links, but in your server, I notice that the requests
that retrieve the online resources and other related resources fail, like
this one:

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc
3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/
related?type=online

Returns this error:

<apiError>
<code>runtime_exception</code>
<description>
Failed to convert value of type [java.lang.String] to required type [
org.fao.geonet.api.records.model.related.RelatedItemType]; nested
exception is org.springframework.core.convert.ConversionFailedException:
Failed to convert from type [java.lang.String] to type [
org.fao.geonet.api.records.model.related.RelatedItemType] for value
'online'; nested exception is java.lang.IllegalArgumentException: No enum
constant org.fao.geonet.api.records.model.related.RelatedItemType.online
</description>
<message>MethodArgumentTypeMismatchException</message>
</apiError>

Yes, this error is caused by "related?type=online" in request. I looked to
the API and found out that there isn't type "online" but "onlines" in
plural. However the request with type=onlines doesn't retrieve any related
records either.

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=onlines

Response Body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><related/>

That causes the problem. I haven't test in 3.2.1, but in latest 3.2.x

branch, so not sure if was a issue in 3.2.1 and now solved, but also notice
that in your system reports 3.2.1.SNAPSHOT, are you using the official
3.2.1? Or you made a custom build from 3.2.x branch?

I had downloaded WAR file from GN donwload site [1] and deployed it in
Tomcat. So after that I had had 3.2.1 SNAPSHOT.

If you have an option build latest 3.2.x branch and try it, for it's
working fine.

After your advice I downloaded latest branch from github [2], built it

with maven and then deployed it in Tomcat. Now I have 3.3.0.SNAPSHOT. But
as you can see at [3] still no related records links available.

I would say that the problem is that in my metadata is used type=online
that doesn't match to available types. But it's weird it works for you. And
not sure what's the right solution.

Br,
Adam

[1]: https://sourceforge.net/projects/geonetwork/files/
GeoNetwork_opensource/v3.2.1/
[2]: https://github.com/geonetwork/core-geonetwork.git
[3]: http://mapy.natur.cuni.cz:8080/geonetwork/srv/eng/
catalog.search#/metadata/dc3669ee-843d-4d9a-9b6f_
batch7_layer_D1_00107_00053_300dpi

Hi,

I still have problems with related records. After your suggestion on my
local computer I downloaded latest branch of GN, build it with maven and
run it with Jetty on my computer. After importing some metadata I can see
related records. But if I download latest branch of GN on the server, build
it and then deploy WAR file in Tomcat no related records are displayed in
detail page of imported metadata.
It's same version but under Jetty it works fine but not under Tomcat.

Any idea what could cause the problem?

Thanks in advance.
Br,
Adam

2017-03-31 10:29 GMT+02:00 Adam Laža <ad.laza32@anonymised.com>:

Hi Jose,

I have loaded the metadata in the latest branch of 3.2.x and works fine

for me displaying the links, but in your server, I notice that the requests
that retrieve the online resources and other related resources fail, like
this one:

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc
3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/rel
ated?type=online

Returns this error:

<apiError>
<code>runtime_exception</code>
<description>
Failed to convert value of type [java.lang.String] to required type [
org.fao.geonet.api.records.model.related.RelatedItemType]; nested
exception is org.springframework.core.convert.ConversionFailedException:
Failed to convert from type [java.lang.String] to type [
org.fao.geonet.api.records.model.related.RelatedItemType] for value
'online'; nested exception is java.lang.IllegalArgumentException: No
enum constant org.fao.geonet.api.records.mod
el.related.RelatedItemType.online
</description>
<message>MethodArgumentTypeMismatchException</message>
</apiError>

Yes, this error is caused by "related?type=online" in request. I looked to
the API and found out that there isn't type "online" but "onlines" in
plural. However the request with type=onlines doesn't retrieve any related
records either.

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=onlines

Response Body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><related/>

That causes the problem. I haven't test in 3.2.1, but in latest 3.2.x

branch, so not sure if was a issue in 3.2.1 and now solved, but also notice
that in your system reports 3.2.1.SNAPSHOT, are you using the official
3.2.1? Or you made a custom build from 3.2.x branch?

I had downloaded WAR file from GN donwload site [1] and deployed it in
Tomcat. So after that I had had 3.2.1 SNAPSHOT.

If you have an option build latest 3.2.x branch and try it, for it's
working fine.

After your advice I downloaded latest branch from github [2], built it

with maven and then deployed it in Tomcat. Now I have 3.3.0.SNAPSHOT. But
as you can see at [3] still no related records links available.

I would say that the problem is that in my metadata is used type=online
that doesn't match to available types. But it's weird it works for you. And
not sure what's the right solution.

Br,
Adam

[1]: https://sourceforge.net/projects/geonetwork/files/GeoNetwork
_opensource/v3.2.1/
[2]: https://github.com/geonetwork/core-geonetwork.git
[3]: http://mapy.natur.cuni.cz:8080/geonetwork/srv/eng/catalog.
search#/metadata/dc3669ee-843d-4d9a-9b6f_batch7_layer_
D1_00107_00053_300dpi

Hi Adam

Not really sure what can be the problem unless I try it locally. I'll check
if can manage to test later today.

Have you check in Chrome in the Developer tools the Network tab, if there's
any request related to the related resources failing? Please verify and
attach here the output in case of any error.

Regards,
Jose García

On Wed, Apr 12, 2017 at 9:24 AM, Adam Laža <ad.laza32@anonymised.com> wrote:

Hi,

I still have problems with related records. After your suggestion on my
local computer I downloaded latest branch of GN, build it with maven and
run it with Jetty on my computer. After importing some metadata I can see
related records. But if I download latest branch of GN on the server, build
it and then deploy WAR file in Tomcat no related records are displayed in
detail page of imported metadata.
It's same version but under Jetty it works fine but not under Tomcat.

Any idea what could cause the problem?

Thanks in advance.
Br,
Adam

2017-03-31 10:29 GMT+02:00 Adam Laža <ad.laza32@anonymised.com>:

Hi Jose,

I have loaded the metadata in the latest branch of 3.2.x and works fine

for me displaying the links, but in your server, I notice that the requests
that retrieve the online resources and other related resources fail, like
this one:

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc
3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/rel
ated?type=online

Returns this error:

<apiError>
<code>runtime_exception</code>
<description>
Failed to convert value of type [java.lang.String] to required type [
org.fao.geonet.api.records.model.related.RelatedItemType]; nested
exception is org.springframework.core.convert.ConversionFailedException:
Failed to convert from type [java.lang.String] to type [
org.fao.geonet.api.records.model.related.RelatedItemType] for value
'online'; nested exception is java.lang.IllegalArgumentException: No
enum constant org.fao.geonet.api.records.mod
el.related.RelatedItemType.online
</description>
<message>MethodArgumentTypeMismatchException</message>
</apiError>

Yes, this error is caused by "related?type=online" in request. I looked
to the API and found out that there isn't type "online" but "onlines" in
plural. However the request with type=onlines doesn't retrieve any related
records either.

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=onlines

Response Body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><related/>

That causes the problem. I haven't test in 3.2.1, but in latest 3.2.x

branch, so not sure if was a issue in 3.2.1 and now solved, but also notice
that in your system reports 3.2.1.SNAPSHOT, are you using the official
3.2.1? Or you made a custom build from 3.2.x branch?

I had downloaded WAR file from GN donwload site [1] and deployed it in
Tomcat. So after that I had had 3.2.1 SNAPSHOT.

If you have an option build latest 3.2.x branch and try it, for it's
working fine.

After your advice I downloaded latest branch from github [2], built it

with maven and then deployed it in Tomcat. Now I have 3.3.0.SNAPSHOT.
But as you can see at [3] still no related records links available.

I would say that the problem is that in my metadata is used type=online
that doesn't match to available types. But it's weird it works for you. And
not sure what's the right solution.

Br,
Adam

[1]: https://sourceforge.net/projects/geonetwork/files/GeoNetwork
_opensource/v3.2.1/
[2]: https://github.com/geonetwork/core-geonetwork.git
[3]: http://mapy.natur.cuni.cz:8080/geonetwork/srv/eng/catalog.se
arch#/metadata/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi

--

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

no failing request.
I have these request related to related resources but in both cases they
returns 200.

On local (Jetty) I've got this request:
GET XHR
http://localhost:8080/geonetwork/srv/api/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00265_00045_300dpi/related
[HTTP/1.1 200 OK 211ms]
With response JSON where under key "onlines" I've got array of three
objects (my three related records). It works fine.

On server (Tomcat8) I've got pretty same request:
GET XHR
http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00265_00045_300dpi/related
[HTTP/1.1 200 OK 297ms]
But in response JSON I've got null for "onlines". It's the problem.

In case you need another output let me know.

Br,
Adam

2017-04-12 9:44 GMT+02:00 Jose Garcia <jose.garcia@anonymised.com>:

Hi Adam

Not really sure what can be the problem unless I try it locally. I'll
check if can manage to test later today.

Have you check in Chrome in the Developer tools the Network tab, if
there's any request related to the related resources failing? Please verify
and attach here the output in case of any error.

Regards,
Jose García

On Wed, Apr 12, 2017 at 9:24 AM, Adam Laža <ad.laza32@anonymised.com> wrote:

Hi,

I still have problems with related records. After your suggestion on my
local computer I downloaded latest branch of GN, build it with maven and
run it with Jetty on my computer. After importing some metadata I can see
related records. But if I download latest branch of GN on the server, build
it and then deploy WAR file in Tomcat no related records are displayed in
detail page of imported metadata.
It's same version but under Jetty it works fine but not under Tomcat.

Any idea what could cause the problem?

Thanks in advance.
Br,
Adam

2017-03-31 10:29 GMT+02:00 Adam Laža <ad.laza32@anonymised.com>:

Hi Jose,

I have loaded the metadata in the latest branch of 3.2.x and works fine

for me displaying the links, but in your server, I notice that the requests
that retrieve the online resources and other related resources fail, like
this one:

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc
3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/rel
ated?type=online

Returns this error:

<apiError>
<code>runtime_exception</code>
<description>
Failed to convert value of type [java.lang.String] to required type [
org.fao.geonet.api.records.model.related.RelatedItemType]; nested
exception is org.springframework.core.convert.ConversionFailedException:
Failed to convert from type [java.lang.String] to type [
org.fao.geonet.api.records.model.related.RelatedItemType] for value
'online'; nested exception is java.lang.IllegalArgumentException: No
enum constant org.fao.geonet.api.records.mod
el.related.RelatedItemType.online
</description>
<message>MethodArgumentTypeMismatchException</message>
</apiError>

Yes, this error is caused by "related?type=online" in request. I looked
to the API and found out that there isn't type "online" but "onlines" in
plural. However the request with type=onlines doesn't retrieve any related
records either.

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=onlines

Response Body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><related/>

That causes the problem. I haven't test in 3.2.1, but in latest 3.2.x

branch, so not sure if was a issue in 3.2.1 and now solved, but also notice
that in your system reports 3.2.1.SNAPSHOT, are you using the official
3.2.1? Or you made a custom build from 3.2.x branch?

I had downloaded WAR file from GN donwload site [1] and deployed it in
Tomcat. So after that I had had 3.2.1 SNAPSHOT.

If you have an option build latest 3.2.x branch and try it, for it's
working fine.

After your advice I downloaded latest branch from github [2], built it

with maven and then deployed it in Tomcat. Now I have 3.3.0.SNAPSHOT.
But as you can see at [3] still no related records links available.

I would say that the problem is that in my metadata is used type=online
that doesn't match to available types. But it's weird it works for you. And
not sure what's the right solution.

Br,
Adam

[1]: https://sourceforge.net/projects/geonetwork/files/GeoNetwork
_opensource/v3.2.1/
[2]: https://github.com/geonetwork/core-geonetwork.git
[3]: http://mapy.natur.cuni.cz:8080/geonetwork/srv/eng/catalog.se
arch#/metadata/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107
_00053_300dpi

--

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

I notice the same problem with online resources. It works fine under IE but it does not work under Chrome.
Looking at the development tools on both, I notice that:
Under Chrome, http://localhost:8080/geonetwork/srv/api/records/42639249-b00c-4bba-8f7d-8644d8989b1f/related?type=online is called and return 400 Error
Whereas under IE, http://localhost:8080/geonetwork/srv/api/records/42639249-b00c-4bba-8f7d-8644d8989b1f/related?type=onlines (notice the additional “s” at the end) is called and return 200 Ok.

Hope it help,
Fanny

-----Original Message-----
From: Adam Laža [mailto:ad.laza32@…54…]
Sent: Wednesday, April 12, 2017 10:46 AM
To: Jose Garcia
Cc: Geonetwork-Users@...638...
Subject: Re: [GeoNetwork-users] Related records

Hi Jose,

no failing request.
I have these request related to related resources but in both cases they returns 200.

On local (Jetty) I've got this request:
GET XHR
http://localhost:8080/geonetwork/srv/api/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00265_00045_300dpi/related
[HTTP/1.1 200 OK 211ms]
With response JSON where under key "onlines" I've got array of three objects (my three related records). It works fine.

On server (Tomcat8) I've got pretty same request:
GET XHR
http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00265_00045_300dpi/related
[HTTP/1.1 200 OK 297ms]
But in response JSON I've got null for "onlines". It's the problem.

In case you need another output let me know.

Br,
Adam

2017-04-12 9:44 GMT+02:00 Jose Garcia <jose.garcia@...444...>:

Hi Adam

Not really sure what can be the problem unless I try it locally. I'll
check if can manage to test later today.

Have you check in Chrome in the Developer tools the Network tab, if
there's any request related to the related resources failing? Please
verify and attach here the output in case of any error.

Regards,
Jose García

On Wed, Apr 12, 2017 at 9:24 AM, Adam Laža <ad.laza32@...54...> wrote:

Hi,

I still have problems with related records. After your suggestion on
my local computer I downloaded latest branch of GN, build it with
maven and run it with Jetty on my computer. After importing some
metadata I can see related records. But if I download latest branch
of GN on the server, build it and then deploy WAR file in Tomcat no
related records are displayed in detail page of imported metadata.
It's same version but under Jetty it works fine but not under Tomcat.

Any idea what could cause the problem?

Thanks in advance.
Br,
Adam

2017-03-31 10:29 GMT+02:00 Adam Laža <ad.laza32@...54...>:

Hi Jose,

I have loaded the metadata in the latest branch of 3.2.x and works
fine

for me displaying the links, but in your server, I notice that the
requests that retrieve the online resources and other related
resources fail, like this one:

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc
3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/rel
ated?type=online

Returns this error:

<apiError>
<code>runtime_exception</code>
<description>
Failed to convert value of type [java.lang.String] to required type
[ org.fao.geonet.api.records.model.related.RelatedItemType];
nested exception is org.springframework.core.convert.ConversionFailedException:
Failed to convert from type [java.lang.String] to type [
org.fao.geonet.api.records.model.related.RelatedItemType] for value
'online'; nested exception is java.lang.IllegalArgumentException:
No enum constant org.fao.geonet.api.records.mod
el.related.RelatedItemType.online </description>
<message>MethodArgumentTypeMismatchException</message>
</apiError>

Yes, this error is caused by "related?type=online" in request. I
looked to the API and found out that there isn't type "online" but
"onlines" in plural. However the request with type=onlines doesn't
retrieve any related records either.

http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669
ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=on
lines

Response Body

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><related/>

That causes the problem. I haven't test in 3.2.1, but in latest
3.2.x

branch, so not sure if was a issue in 3.2.1 and now solved, but
also notice that in your system reports 3.2.1.SNAPSHOT, are you
using the official 3.2.1? Or you made a custom build from 3.2.x branch?

I had downloaded WAR file from GN donwload site [1] and deployed it
in Tomcat. So after that I had had 3.2.1 SNAPSHOT.

If you have an option build latest 3.2.x branch and try it, for
it's working fine.

After your advice I downloaded latest branch from github [2], built
it

with maven and then deployed it in Tomcat. Now I have 3.3.0.SNAPSHOT.
But as you can see at [3] still no related records links available.

I would say that the problem is that in my metadata is used
type=online that doesn't match to available types. But it's weird it
works for you. And not sure what's the right solution.

Br,
Adam

[1]: https://sourceforge.net/projects/geonetwork/files/GeoNetwork
_opensource/v3.2.1/
[2]: https://github.com/geonetwork/core-geonetwork.git
[3]: http://mapy.natur.cuni.cz:8080/geonetwork/srv/eng/catalog.se
arch#/metadata/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107
_00053_300dpi

--

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

------------------------------------------------------------------------------
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
Ce message et toutes les pièces jointes (ci-après le "message") sont établis à l’intention exclusive des destinataires désignés. Il contient des informations confidentielles et pouvant être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de détruire le message. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse de l’émetteur. L'internet ne garantissant pas l'intégrité de ce message lors de son acheminement, Atos (et ses filiales) décline(nt) toute responsabilité au titre de son contenu. Bien que ce message ait fait l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne peut garantir l’absence totale de logiciels malveillants dans son contenu et ne pourrait être tenu pour responsable des dommages engendrés par la transmission de l’un d’eux.

This message and any attachments (the "message") are intended solely for the addressee(s). It contains confidential information, that may be privileged. If you receive this message in error, please notify the sender immediately and delete the message. Any use of the message in violation of its purpose, any dissemination or disclosure, either wholly or partially is strictly prohibited, unless it has been explicitly authorized by the sender. As its integrity cannot be secured on the internet, Atos and its subsidiaries decline any liability for the content of this message. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

Hi,

I've tried Firefox, Chromium, IE and for me there is no difference in used
web browser.
It returns error with "type=online" [1] because type must one of these
options: children, parent, siblings, associated, services ... related,
onlines, thumbnails [2]. It returns 200 OK with "types=online" [3] however
it returns empty array.
But on local machine[4] with same GN version installed and same metadata
imported it returns desired XML (in attachment).

Adam

[1]:
http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=online
[2]:
http://mapy.natur.cuni.cz:8080/geonetwork/doc/api/#!/records/getAssociated
[3]:
http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=onlines
[4]:
http://localhost:8080/geonetwork/srv/api/0.1/records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=onlines

2017-04-12 11:05 GMT+02:00 MARTIN, FANNY <fanny.martin@anonymised.com>:

Hi,

I notice the same problem with online resources. It works fine under IE
but it does not work under Chrome.
Looking at the development tools on both, I notice that:
Under Chrome, http://localhost:8080/geonetwork/srv/api/records/
42639249-b00c-4bba-8f7d-8644d8989b1f/related?type=online is called and
return 400 Error
Whereas under IE, http://localhost:8080/geonetwork/srv/api/records/
42639249-b00c-4bba-8f7d-8644d8989b1f/related?type=onlines (notice the
additional “s” at the end) is called and return 200 Ok.

Hope it help,
Fanny

-----Original Message-----
From: Adam Laža [mailto:ad.laza32@anonymised.com]
Sent: Wednesday, April 12, 2017 10:46 AM
To: Jose Garcia
Cc: Geonetwork-Users@anonymised.com
Subject: Re: [GeoNetwork-users] Related records

Hi Jose,

no failing request.
I have these request related to related resources but in both cases they
returns 200.

On local (Jetty) I've got this request:
GET XHR
http://localhost:8080/geonetwork/srv/api/records/dc3669ee-843d-4d9a-9b6f_
batch7_layer_D1_00265_00045_300dpi/related
[HTTP/1.1 200 OK 211ms]
With response JSON where under key "onlines" I've got array of three
objects (my three related records). It works fine.

On server (Tomcat8) I've got pretty same request:
GET XHR
http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/
records/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00265_00045_300dpi/related
[HTTP/1.1 200 OK 297ms]
But in response JSON I've got null for "onlines". It's the problem.

In case you need another output let me know.

Br,
Adam

2017-04-12 9:44 GMT+02:00 Jose Garcia <jose.garcia@anonymised.com>:

> Hi Adam
>
> Not really sure what can be the problem unless I try it locally. I'll
> check if can manage to test later today.
>
> Have you check in Chrome in the Developer tools the Network tab, if
> there's any request related to the related resources failing? Please
> verify and attach here the output in case of any error.
>
> Regards,
> Jose García
>
> On Wed, Apr 12, 2017 at 9:24 AM, Adam Laža <ad.laza32@anonymised.com> wrote:
>
>> Hi,
>>
>> I still have problems with related records. After your suggestion on
>> my local computer I downloaded latest branch of GN, build it with
>> maven and run it with Jetty on my computer. After importing some
>> metadata I can see related records. But if I download latest branch
>> of GN on the server, build it and then deploy WAR file in Tomcat no
>> related records are displayed in detail page of imported metadata.
>> It's same version but under Jetty it works fine but not under Tomcat.
>>
>> Any idea what could cause the problem?
>>
>> Thanks in advance.
>> Br,
>> Adam
>>
>>
>>
>> 2017-03-31 10:29 GMT+02:00 Adam Laža <ad.laza32@anonymised.com>:
>>
>>> Hi Jose,
>>>
>>> I have loaded the metadata in the latest branch of 3.2.x and works
>>> fine
>>>> for me displaying the links, but in your server, I notice that the
>>>> requests that retrieve the online resources and other related
>>>> resources fail, like this one:
>>>>
>>>> http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/records/dc
>>>> 3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/rel
>>>> ated?type=online
>>>>
>>>> Returns this error:
>>>>
>>>> <apiError>
>>>> <code>runtime_exception</code>
>>>> <description>
>>>> Failed to convert value of type [java.lang.String] to required type
>>>> [ org.fao.geonet.api.records.model.related.RelatedItemType];
>>>> nested exception is org.springframework.core.convert.
ConversionFailedException:
>>>> Failed to convert from type [java.lang.String] to type [
>>>> org.fao.geonet.api.records.model.related.RelatedItemType] for value
>>>> 'online'; nested exception is java.lang.IllegalArgumentException:
>>>> No enum constant org.fao.geonet.api.records.mod
>>>> el.related.RelatedItemType.online </description>
>>>> <message>MethodArgumentTypeMismatchException</message>
>>>> </apiError>
>>>>
>>>>
>>> Yes, this error is caused by "related?type=online" in request. I
>>> looked to the API and found out that there isn't type "online" but
>>> "onlines" in plural. However the request with type=onlines doesn't
>>> retrieve any related records either.
>>>
>>> http://mapy.natur.cuni.cz:8080/geonetwork/srv/api/0.1/records/dc3669
>>> ee-843d-4d9a-9b6f_batch7_layer_D1_00107_00053_300dpi/related?type=on
>>> lines
>>>
>>> Response Body
>>>
>>> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><related/>
>>>
>>> That causes the problem. I haven't test in 3.2.1, but in latest
>>> 3.2.x
>>>> branch, so not sure if was a issue in 3.2.1 and now solved, but
>>>> also notice that in your system reports 3.2.1.SNAPSHOT, are you
>>>> using the official 3.2.1? Or you made a custom build from 3.2.x
branch?
>>>>
>>>
>>> I had downloaded WAR file from GN donwload site [1] and deployed it
>>> in Tomcat. So after that I had had 3.2.1 SNAPSHOT.
>>>
>>>
>>>>
>>>> If you have an option build latest 3.2.x branch and try it, for
>>>> it's working fine.
>>>>
>>>> After your advice I downloaded latest branch from github [2], built
>>>> it
>>> with maven and then deployed it in Tomcat. Now I have 3.3.0.SNAPSHOT.
>>> But as you can see at [3] still no related records links available.
>>>
>>> I would say that the problem is that in my metadata is used
>>> type=online that doesn't match to available types. But it's weird it
>>> works for you. And not sure what's the right solution.
>>>
>>> Br,
>>> Adam
>>>
>>> [1]: https://sourceforge.net/projects/geonetwork/files/GeoNetwork
>>> _opensource/v3.2.1/
>>> [2]: https://github.com/geonetwork/core-geonetwork.git
>>> [3]: http://mapy.natur.cuni.cz:8080/geonetwork/srv/eng/catalog.se
>>> arch#/metadata/dc3669ee-843d-4d9a-9b6f_batch7_layer_D1_00107
>>> _00053_300dpi
>>>
>>>
>>
>
>
> --
>
>
>
>
>
>
>
>
>
>
>
>
>
> *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.*
>
------------------------------------------------------------
------------------
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
Ce message et toutes les pièces jointes (ci-après le "message") sont
établis à l’intention exclusive des destinataires désignés. Il contient des
informations confidentielles et pouvant être protégé par le secret
professionnel. Si vous recevez ce message par erreur, merci d'en avertir
immédiatement l'expéditeur et de détruire le message. Toute utilisation de
ce message non conforme à sa destination, toute diffusion ou toute
publication, totale ou partielle, est interdite, sauf autorisation expresse
de l’émetteur. L'internet ne garantissant pas l'intégrité de ce message
lors de son acheminement, Atos (et ses filiales) décline(nt) toute
responsabilité au titre de son contenu. Bien que ce message ait fait
l’objet d’un traitement anti-virus lors de son envoi, l’émetteur ne peut
garantir l’absence totale de logiciels malveillants dans son contenu et ne
pourrait être tenu pour responsable des dommages engendrés par la
transmission de l’un d’eux.

This message and any attachments (the "message") are intended solely for
the addressee(s). It contains confidential information, that may be
privileged. If you receive this message in error, please notify the sender
immediately and delete the message. Any use of the message in violation of
its purpose, any dissemination or disclosure, either wholly or partially is
strictly prohibited, unless it has been explicitly authorized by the
sender. As its integrity cannot be secured on the internet, Atos and its
subsidiaries decline any liability for the content of this message.
Although the sender endeavors to maintain a computer virus-free network,
the sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted.

(attachments)

related.xml (2.47 KB)

Hi Jose,

Not really sure what can be the problem unless I try it locally. I'll
check if can manage to test later today.

Any idea what could cause the problem? I'm still struggling with no related
records displayed when using Tomcat.

Thanks in advance.
Adam

Hi all,

finally I found the cause of my problem. The difference why the related
records were displayed on local machine but not on the server was Tomcat.
On both machines was Tomcat8 but the one on the server was installed
according to this tutorial [1]. After removing this package of Tomcat and
installing it again via apt-get install tomcat8 related records are
displayed. I don't know what's the difference in these Tomcat installations
but obviously it's better to use standard apt-get.

Thanks for your help.
Adam

[1]:
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04

2017-04-26 9:20 GMT+02:00 Adam Laža <ad.laza32@anonymised.com>:

Hi Jose,

Not really sure what can be the problem unless I try it locally. I'll
check if can manage to test later today.

Any idea what could cause the problem? I'm still struggling with no
related records displayed when using Tomcat.

Thanks in advance.
Adam