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
8051c22c
Commit
8051c22c
authored
6 years ago
by
chbaeh
Browse files
Options
Downloads
Patches
Plain Diff
fix organization search
parent
e1ea89c6
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/templates/snippets/search_form.html
+4
-0
4 additions, 0 deletions
ckanext/odsh/templates/snippets/search_form.html
ckanext/odsh/templates/snippets/search_result_text.html
+2
-0
2 additions, 0 deletions
ckanext/odsh/templates/snippets/search_result_text.html
with
6 additions
and
0 deletions
ckanext/odsh/templates/snippets/search_form.html
+
4
−
0
View file @
8051c22c
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
{% set placeholder = placeholder if placeholder else _('Search datasets...') %}
{% set placeholder = placeholder if placeholder else _('Search datasets...') %}
{% set sorting_label_prefix = _('Order by') %}
{% set sorting_label_prefix = _('Order by') %}
{% if type=='organization' %}
{% set sorting = sorting if sorting else [(_('Name Ascending'), 'name asc'), (_('Name Descending'), 'name desc')] %}
{% else %}
{% set sorting = [
{% set sorting = [
(_('Relevance'), 'score desc, metadata_modified desc'),
(_('Relevance'), 'score desc, metadata_modified desc'),
(_('Name Ascending'), 'title_string asc'),
(_('Name Ascending'), 'title_string asc'),
...
@@ -10,6 +13,7 @@
...
@@ -10,6 +13,7 @@
(_('Issued Descending'), 'extras_issued desc'),
(_('Issued Descending'), 'extras_issued desc'),
(_('Popular'), 'views_recent desc') if g.tracking_enabled else (false, false) ]
(_('Popular'), 'views_recent desc') if g.tracking_enabled else (false, false) ]
%}
%}
{% endif %}
{% set search_class = search_class if search_class else 'search-giant' %}
{% set search_class = search_class if search_class else 'search-giant' %}
{% set no_bottom_border = no_bottom_border if no_bottom_border else false %}
{% set no_bottom_border = no_bottom_border if no_bottom_border else false %}
{% set form_id = form_id if form_id else false %}
{% set form_id = form_id if form_id else false %}
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/templates/snippets/search_result_text.html
+
2
−
0
View file @
8051c22c
...
@@ -46,4 +46,6 @@ Example:
...
@@ -46,4 +46,6 @@ Example:
{{ text_no_query_none }}
{{ text_no_query_none }}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{%- endif -%}
{% if type == 'dataset' %}
<a
href=
{{h.remove_url_param([''],
controller=
'feed'
,
action=
'custom'
)}}
>
<i
class=
"fa fa-medium fa-rss"
></i></a>
<a
href=
{{h.remove_url_param([''],
controller=
'feed'
,
action=
'custom'
)}}
>
<i
class=
"fa fa-medium fa-rss"
></i></a>
{%- endif -%}
\ No newline at end of file
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