Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ce7f90
commit e3a1796
Showing
16 changed files
with
649 additions
and
248 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
29 changes: 14 additions & 15 deletions
29
python/plugins/MetaSearch/resources/connections-default.xml
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,19 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Guidance: https://docs.qgis.org/testing/en/docs/user_manual/plugins/core_plugins/plugins_metasearch.html#managing-catalog-services --> | ||
<qgsCSWConnections version="1.0"> | ||
<csw name="USA: Data.gov CSW" url="https://catalog.data.gov/csw-all"/> | ||
<csw name="Danmark: National CSW (geodata-info)" url="https://geodata-info.dk/srv/dan/csw"/> | ||
<csw name="Finland: National CSW (Paikkatietohakemisto)" url="http://www.paikkatietohakemisto.fi/geonetwork/srv/fi/csw"/> | ||
<csw name="Iceland: National CSW (Iceland Service)" url="https://gatt.lmi.is/geonetwork/srv/eng/csw"/> | ||
<csw name="Italy: National CSW (Geoportale Nazionale - Servizio di ricerca Italiano)" url="http://www.pcn.minambiente.it/geoportal/csw"/> | ||
<csw name="Italy: RNDT - Repertorio Nazionale dei Dati Territoriali - Servizio di ricerca" url="https://geodati.gov.it/RNDT/csw"/> | ||
<csw name="New Zealand: LINZ Data Service" url="https://data.linz.govt.nz/services/csw/"/> | ||
<csw name="Netherlands: National CSW (Nationaal Georegister)" url="http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw"/> | ||
<csw name="Norway: National CSW (Geonorge)" url="http://www.geonorge.no/geonetwork/srv/no/csw"/> | ||
<csw name="Sweden: National CSW" url="https://www.geodata.se/geodataportalen/srv/eng/csw-inspire"/> | ||
<csw name="UK Location Catalogue Publishing Service" url="https://data.gov.uk/csw"/> | ||
<csw name="UNEP GRID-Geneva Metadata Catalog" url="https://datacore-gn.unepgrid.ch/geonetwork/srv/eng/csw"/> | ||
<csw name="Portugal: Sistema Nacional de Informação Geográfica (SNIG)" url="https://snig.dgterritorio.gov.pt/rndg/srv/eng/csw"/> | ||
<csw name="Spain: Centro Nacional de Información Geográfica (CNIG)" url="http://www.ign.es/csw-inspire/srv/spa/csw"/> | ||
<csw name="Germany: GDI-DE Geodatenkatalog.de" url="https://gdk.gdi-de.org/gdi-de/srv/ger/csw"/> | ||
<csw name="USA: Data.gov CSW" url="https://catalog.data.gov/csw-all" type="OGC CSW 2.0.2"/> | ||
<csw name="Danmark: National CSW (geodata-info)" url="https://geodata-info.dk/srv/dan/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Finland: National CSW (Paikkatietohakemisto)" url="http://www.paikkatietohakemisto.fi/geonetwork/srv/fi/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Iceland: National CSW (Iceland Service)" url="https://gatt.lmi.is/geonetwork/srv/eng/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Italy: National CSW (Geoportale Nazionale - Servizio di ricerca Italiano)" url="http://www.pcn.minambiente.it/geoportal/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Italy: RNDT - Repertorio Nazionale dei Dati Territoriali - Servizio di ricerca" url="https://geodati.gov.it/RNDT/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="New Zealand: LINZ Data Service" url="https://data.linz.govt.nz/services/csw/" type="OGC CSW 2.0.2"/> | ||
<csw name="Netherlands: National CSW (Nationaal Georegister)" url="http://www.nationaalgeoregister.nl/geonetwork/srv/dut/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Norway: National CSW (Geonorge)" url="http://www.geonorge.no/geonetwork/srv/no/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Sweden: National CSW" url="https://www.geodata.se/geodataportalen/srv/eng/csw-inspire" type="OGC CSW 2.0.2"/> | ||
<csw name="UK Location Catalogue Publishing Service" url="https://data.gov.uk/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="UNEP GRID-Geneva Metadata Catalog" url="https://datacore-gn.unepgrid.ch/geonetwork/srv/eng/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Portugal: Sistema Nacional de Informação Geográfica (SNIG)" url="https://snig.dgterritorio.gov.pt/rndg/srv/eng/csw" type="OGC CSW 2.0.2"/> | ||
<csw name="Spain: Centro Nacional de Información Geográfica (CNIG)" url="http://www.ign.es/csw-inspire/srv/spa/csw" type="OGC CSW 2.0.2"/> | ||
</qgsCSWConnections> |
File renamed without changes.
File renamed without changes.
67 changes: 67 additions & 0 deletions
67
python/plugins/MetaSearch/resources/templates/oarec_service_metadata.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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ language }}"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>{{ gettext('Service Metadata') }}</title> | ||
<style type="text/css"> | ||
body,h3, h4 { | ||
background-color: #ffffff; | ||
font-family: arial, verdana, sans-serif; | ||
text-align: left; | ||
float: left; | ||
} | ||
header { | ||
display: inline-block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<h3>{{ gettext('Service Metadata') }}</h3> | ||
</header> | ||
<section id="service-metadata"> | ||
<h4>{{ gettext('Service Identification') }}</h4> | ||
<table> | ||
<tr> | ||
<td>{{ gettext('Title') }}</td> | ||
<td>{{ obj.title }}</td> | ||
</tr> | ||
<tr> | ||
<td>{{ gettext('Abstract') }}</td> | ||
<td>{{ obj.description or obj['title'] }}</td> | ||
</tr> | ||
<tr> | ||
<td>{{ gettext('Service URL') }}</td> | ||
<td><a href="{{ obj.url }}">{{ obj.url}}</a></td> | ||
</tr> | ||
</table> | ||
</section> | ||
|
||
<section id="collections"> | ||
<h4>{{ gettext('Collections') }}</h4> | ||
{% for j in obj.collections()['collections'] %} | ||
{% if j.id in obj.records() %} | ||
<p><b>{{ j.title }}</b><br/>{{ j.description }}</p> | ||
{% endif %} | ||
{% endfor %} | ||
</section> | ||
|
||
<section id="conformance"> | ||
<h4>{{ gettext('Conformance') }}</h4> | ||
<ul> | ||
{% for i in obj.conformance()['conformsTo'] %} | ||
<li><a href="{{ i }}">{{ i }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</section> | ||
|
||
<section id="links"> | ||
<h4>{{ gettext('Links') }}</h4> | ||
<ul> | ||
{% for link in obj.links %} | ||
<li><a href="{{ link['href'] }}">{{ link['title'] }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</section> | ||
</body> | ||
</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
63 changes: 63 additions & 0 deletions
63
python/plugins/MetaSearch/resources/templates/record_metadata_oarec.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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!DOCTYPE html> | ||
{% macro render_item_value(v, width) -%} | ||
{% set val = v | string | trim %} | ||
{% if val|length and val.lower().endswith(('.jpg', '.jpeg', '.png', '.gif', '.bmp')) %} | ||
{# Ends with image extension: render img element with link to image #} | ||
<a href="{{ val }}"><img src="{{ val }}" alt="{{ val.split('/') | last }}" width="{{ width }}"/></a> | ||
{% elif v is string or v is number %} | ||
{{ val | urlize() }} | ||
{% elif v is mapping %} | ||
<ul> | ||
{% for i,j in v.items() %} | ||
<li><i>{{ gettext(i) }}:</i> {{ render_item_value(j, 60) }}</li> | ||
{% endfor %}</ul> | ||
{% elif v is iterable %} | ||
<ul> | ||
{% for i in v %} | ||
<li>{{ render_item_value(i, 60) }}</li> | ||
{% endfor %} | ||
</ul> | ||
{% else %} | ||
{{ val | urlize() }} | ||
{% endif %} | ||
{%- endmacro %} | ||
<html lang="{{ language }}"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>{{ gettext('Record Metadata') }}</title> | ||
<style type="text/css"> | ||
body, h3 { | ||
background-color: #ffffff; | ||
font-family: arial, verdana, sans-serif; | ||
text-align: left; | ||
float: left; | ||
} | ||
header { | ||
display: inline-block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<h3>{{ gettext('Record Metadata') }} (<a href="{{ obj.url }}">{{ gettext('View JSON') }}</a>)</h3> | ||
</header> | ||
<section id="record-metadata"> | ||
<table> | ||
<tr> | ||
<td>gettext('Identifier')</td> | ||
<td>{{ obj['id'] }}</td> | ||
</tr> | ||
{% if (obj['properties']) %} | ||
{% for a,b in obj['properties'].items() %} | ||
{% if a not in ['extent'] %} | ||
<tr> | ||
<td>{{ gettext(a) }}</td> | ||
<td>{{ render_item_value( b, 120 ) }}</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</table> | ||
</section> | ||
</body> | ||
</html> |
Oops, something went wrong.