-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from stuartwoodman/AUS-4113-4115-InfoPanel-Ad…
…justments AUS-4113 and AUS-4115 InfoPanel Adjustments
- Loading branch information
Showing
3 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 37 additions & 38 deletions
75
src/app/menupanel/common/infopanel/subpanel/subpanel.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,48 @@ | ||
<!-- Title --> | ||
<p><b>{{cswRecord.name}}</b></p> | ||
<p><b style="font-size:large;">{{cswRecord.name}}</b></p> | ||
|
||
<!-- Preview --> | ||
<div *ngIf="wmsUrl!==undefined"> | ||
<b>WMS Preview: </b> | ||
<!-- Place images one on top of the other --> | ||
<div style="display: inline-block; position: relative; opacity: 50%;"> | ||
<img appImgLoading src="{{outlineUrl}}" (error)="onImgError($event)" height="200" width="200"/> | ||
</div> | ||
<div style="display: inline-block; position: relative; top: -200px; left: 100px; opacity: 50%;"> | ||
<img appImgLoading src="{{wmsUrl}}" (error)="onImgError($event)" height="200" width="200"/> | ||
<b>WMS Preview:</b> | ||
<div style="position:relative; height:200px; margin:0.5rem 0;"> | ||
<!-- Place images one on top of the other --> | ||
<div style="display:inline-block; position:absolute; top:0px; left:50px; opacity: 50%;"> | ||
<img appImgLoading src="{{outlineUrl}}" (error)="onImgError($event)" height="200" width="200"/> | ||
</div> | ||
<div style="display:inline-block; position:absolute; top:0px; left:50px; opacity:50%;"> | ||
<img appImgLoading src="{{wmsUrl}}" (error)="onImgError($event)" height="200" width="200"/> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Move div up the page if there is a valid WMS Preview --> | ||
<div style="display: inline-block; position: relative;" [ngStyle]="{'top': wmsUrl===undefined? '0px':'-200px'}"> | ||
|
||
|
||
<!-- Legend --> | ||
<p *ngIf="legendUrl!==undefined"> | ||
<b>Legend: </b> | ||
<img appImgLoading src="{{legendUrl}}" (error)="onImgError($event)" class="infopanel-legend"/> | ||
</p> | ||
<div style="display:inline-block; position:relative;"> | ||
<!-- Legend --> | ||
<p *ngIf="legendUrl!==undefined"> | ||
<b>Legend: </b> | ||
<img appImgLoading src="{{legendUrl}}" (error)="onImgError($event)" class="infopanel-legend"/> | ||
</p> | ||
|
||
<!-- Abstract --> | ||
<p>{{cswRecord.description}}</p> | ||
<!-- Abstract --> | ||
<p>{{cswRecord.description}}</p> | ||
|
||
<!-- Organisation etc. --> | ||
<p><b>Contact org: </b>{{cswRecord.contactOrg}}</p> | ||
<p *ngIf="cswRecord.funderOrg && cswRecord.funderOrg !== 'Unknown'"><b>Funder: </b>{{cswRecord.funderOrg}}</p> | ||
<p *ngIf='cleanConstraints(cswRecord.constraints).length > 0'><b>Constraints: </b>{{cleanConstraints(cswRecord.constraints)}}</p> | ||
<p *ngIf='selectConstraints(layer.capabilityRecords, cswRecord.accessConstraints).length > 0'><b>Access Constraints: </b>{{selectConstraints(layer.capabilityRecords, cswRecord.accessConstraints)}}</p> | ||
<p *ngIf="cswRecord.recordInfoUrl && cswRecord.recordInfoUrl.length > 0"><b>Info URL: </b><a target="_blank" href="{{cswRecord.recordInfoUrl}}">Link to Geonetwork Record</a></p> | ||
<div *ngFor="let onlineResource of cswRecord.onlineResources"> | ||
<p *ngIf="onlineResource.type==='DOI'"> | ||
<span class="label label-default"><b>DOI Name: </b></span> {{onlineResource.name}}<br> | ||
<span class="label label-default"><b>Description: </b></span> {{onlineResource.description}}<br> | ||
<span class="label label-default"><b>URL: </b></span><a target="_blank" href="{{onlineResource.url}}">{{onlineResource.url}}</a><br> | ||
</p> | ||
<p *ngIf="onlineResource.type!=='Unsupported' && onlineResource.type!=='DOI'"> | ||
<span *ngIf="isGetCapabilitiesType(onlineResource)" class="label label-default"><b>{{onlineResource.type}}: </b></span> | ||
<a *ngIf="isGetCapabilitiesType(onlineResource)" target="_blank" href="{{ onlineResourceGetCapabilitiesUrl(onlineResource) }}">{{onlineResource.type}} GetCapabilities Info</a> | ||
<span *ngIf="!isGetCapabilitiesType(onlineResource) && onlineResource.url" class="label label-default"><b>{{onlineResource.name.split('_').join(' ')}}: </b></span> | ||
<a *ngIf="!isGetCapabilitiesType(onlineResource)" target="_blank" href="{{ removeProxy(onlineResource.url) }}">{{ removeProxy(onlineResource.url) }}</a> | ||
</p> | ||
</div> | ||
<!-- Organisation etc. --> | ||
<p><b>Contact org: </b>{{cswRecord.contactOrg}}</p> | ||
<p *ngIf="cswRecord.funderOrg && cswRecord.funderOrg !== 'Unknown'"><b>Funder: </b>{{cswRecord.funderOrg}}</p> | ||
<p *ngIf='cleanConstraints(cswRecord.constraints).length > 0'><b>Constraints: </b>{{cleanConstraints(cswRecord.constraints)}}</p> | ||
<p *ngIf='selectConstraints(layer.capabilityRecords, cswRecord.accessConstraints).length > 0'><b>Access Constraints: </b>{{selectConstraints(layer.capabilityRecords, cswRecord.accessConstraints)}}</p> | ||
<p *ngIf="cswRecord.recordInfoUrl && cswRecord.recordInfoUrl.length > 0"><b>Info URL: </b><a target="_blank" href="{{cswRecord.recordInfoUrl}}">Link to Geonetwork Record</a></p> | ||
<div *ngFor="let onlineResource of cswRecord.onlineResources"> | ||
<p *ngIf="onlineResource.type==='DOI'"> | ||
<span class="label label-default"><b>DOI Name: </b></span> {{onlineResource.name}}<br> | ||
<span class="label label-default"><b>Description: </b></span> {{onlineResource.description}}<br> | ||
<span class="label label-default"><b>URL: </b></span><a target="_blank" href="{{onlineResource.url}}">{{onlineResource.url}}</a><br> | ||
</p> | ||
<p *ngIf="onlineResource.type!=='Unsupported' && onlineResource.type!=='DOI'"> | ||
<span *ngIf="isGetCapabilitiesType(onlineResource)" class="label label-default"><b>{{onlineResource.type}}: </b></span> | ||
<a *ngIf="isGetCapabilitiesType(onlineResource)" target="_blank" href="{{ onlineResourceGetCapabilitiesUrl(onlineResource) }}">{{onlineResource.type}} GetCapabilities Info</a> | ||
<span *ngIf="!isGetCapabilitiesType(onlineResource) && onlineResource.url" class="label label-default"><b>{{onlineResource.name.split('_').join(' ')}}: </b></span> | ||
<a *ngIf="!isGetCapabilitiesType(onlineResource)" target="_blank" href="{{ removeProxy(onlineResource.url) }}">{{ removeProxy(onlineResource.url) }}</a> | ||
</p> | ||
</div> | ||
|
||
</div> |