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>
</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') &&
r['abstract'] && 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>