Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
fd74a304
Commit
fd74a304
authored
3 years ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Fixup with local changes from transitional operation
parent
39c175fd
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!17
Stage System soll in Zukunft Master Branch erhalten
,
!3
Fixup with local changes from transitional operation
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ckanext/odsh/helpers.py
+3
-0
3 additions, 0 deletions
ckanext/odsh/helpers.py
ckanext/odsh/templates/snippets/search_form.html
+2
-2
2 additions, 2 deletions
ckanext/odsh/templates/snippets/search_form.html
ckanext/odsh/validation.py
+2
-2
2 additions, 2 deletions
ckanext/odsh/validation.py
with
7 additions
and
4 deletions
ckanext/odsh/helpers.py
+
3
−
0
View file @
fd74a304
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/templates/snippets/search_form.html
+
2
−
2
View file @
fd74a304
...
...
@@ -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 %}
This diff is collapsed.
Click to expand it.
ckanext/odsh/validation.py
+
2
−
2
View file @
fd74a304
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment