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
07963775
Commit
07963775
authored
1 year ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed indentation
parent
48019173
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!50
Upgraded to CKAN 2.10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/plugin.py
+38
-38
38 additions, 38 deletions
ckanext/odsh/plugin.py
with
38 additions
and
38 deletions
ckanext/odsh/plugin.py
+
38
−
38
View file @
07963775
...
@@ -301,6 +301,12 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
...
@@ -301,6 +301,12 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
return
dict_pkg
return
dict_pkg
# Add the custom parameters to Solr's facet queries
# use several daterange queries agains temporal_start and temporal_end field
# TODO: use field of type date_range in solr index instead
def
before_dataset_search
(
self
,
search_params
):
return
search
.
before_dataset_search
(
search_params
)
# ITemplateHelpers
# ITemplateHelpers
def
get_helpers
(
self
):
def
get_helpers
(
self
):
...
@@ -349,12 +355,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
...
@@ -349,12 +355,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
def
get_validators
(
self
):
def
get_validators
(
self
):
return
validation
.
get_validators
()
return
validation
.
get_validators
()
# Add the custom parameters to Solr's facet queries
# use several daterange queries agains temporal_start and temporal_end field
# TODO: use field of type date_range in solr index instead
def
before_search
(
self
,
search_params
):
return
search
.
before_search
(
search_params
)
scores
=
[[
'
0OL
'
],
[
'
0OL
'
,
'
1RE
'
],
[
'
0OL
'
,
'
1RE
'
,
'
2OF
'
],
[
scores
=
[[
'
0OL
'
],
[
'
0OL
'
,
'
1RE
'
],
[
'
0OL
'
,
'
1RE
'
,
'
2OF
'
],
[
'
0OL
'
,
'
1RE
'
,
'
2OF
'
,
'
3URI
'
],
[
'
0OL
'
,
'
1RE
'
,
'
2OF
'
,
'
3URI
'
,
'
4LD
'
]]
'
0OL
'
,
'
1RE
'
,
'
2OF
'
,
'
3URI
'
],
[
'
0OL
'
,
'
1RE
'
,
'
2OF
'
,
'
3URI
'
,
'
4LD
'
]]
...
...
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