Skip to content
Snippets Groups Projects
Commit fd74a304 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Fixup with local changes from transitional operation

parent 39c175fd
Branches
Tags
2 merge requests!17Stage System soll in Zukunft Master Branch erhalten,!3Fixup with local changes from transitional operation
......@@ -92,6 +92,9 @@ def compute_bounding_box(coords):
if len(coords) == 0:
return None
if type(coords[0]) != list:
return [coords[0], coords[0], coords[1], coords[1]]
coords = [c for sublist in coords for c in sublist]
if type(coords[0][0]) == list:
# multipolygon
......
......@@ -71,7 +71,7 @@
{% endblock %}
{% block search_facets %}
{% if facets %}
{% if facets and facets.search %}
<p class="filter-list">
{% for field in facets.fields %}
{% set search_facets_items = facets.search.get(field)['items'] %}
......@@ -202,4 +202,4 @@
{% trans %}
<p id="search-error"><strong>There was an error while searching.</strong> Please try again.</p>
{% endtrans %}
{% endif %}
\ No newline at end of file
{% endif %}
......@@ -201,8 +201,8 @@ def known_spatial_uri(key, data, errors, context):
poly = pkg.extras.get('spatial', None)
if (not poly) and require_spatial_uri:
raise toolkit.Invalid(error_message_spatial_uri_empty)
if has_old_uri and require_spatial_uri:
raise toolkit.Invalid(error_message_spatial_uri_empty)
#if has_old_uri and require_spatial_uri:
# raise toolkit.Invalid(error_message_spatial_uri_empty)
else:
if poly:
new_index = next_extra_index(data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment