Skip to content
Snippets Groups Projects
Commit f7fb811e authored by Benjamin Becker's avatar Benjamin Becker
Browse files

feat: Hinweis juris.de

parent a1c8b564
Branches
Tags
No related merge requests found
...@@ -222,4 +222,13 @@ def git_commit_hash(): ...@@ -222,4 +222,13 @@ def git_commit_hash():
command = 'git log -n 1 --format=%H' command = 'git log -n 1 --format=%H'
except: except:
return 'unknown' return 'unknown'
return subprocess.check_output([command], shell=True, cwd=current_dir) return subprocess.check_output([command], shell=True, cwd=current_dir)
\ No newline at end of file
def is_informationsgegenstand_gerichtsurteil_selected(fields):
try:
return "Gerichtsurteil" in fields["subject_text"]
except KeyError:
return False
except:
log.exception("this should not raise an exception, fix please")
return False
...@@ -384,6 +384,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -384,6 +384,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
'tpsh_get_address_org':helpers_tpsh.get_address_org, 'tpsh_get_address_org':helpers_tpsh.get_address_org,
'tpsh_get_body_mail':helpers_tpsh.get_body_mail, 'tpsh_get_body_mail':helpers_tpsh.get_body_mail,
'tpsh_git_commit_hash': helpers_tpsh.git_commit_hash, 'tpsh_git_commit_hash': helpers_tpsh.git_commit_hash,
'tpsh_is_informationsgegenstand_gerichtsurteil_selected': helpers_tpsh.is_informationsgegenstand_gerichtsurteil_selected,
} }
...@@ -413,7 +414,3 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm ...@@ -413,7 +414,3 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
score = s score = s
if score > 0: if score > 0:
dict_pkg['openness'] = OdshPlugin.scores[score-1] dict_pkg['openness'] = OdshPlugin.scores[score-1]
...@@ -2837,3 +2837,8 @@ body.filters-modal div.row > aside.secondary.span3 { ...@@ -2837,3 +2837,8 @@ body.filters-modal div.row > aside.secondary.span3 {
.tpsh-collection-list { .tpsh-collection-list {
list-style-type: none; list-style-type: none;
} }
.tpsh-hint-gerichtsurteile {
font-size: 18px;
padding-top: 20px;
}
...@@ -24,6 +24,12 @@ method="get" data-module="select-switch"> ...@@ -24,6 +24,12 @@ method="get" data-module="select-switch">
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}
{% block package_search_results_list %} {% block package_search_results_list %}
{% if h.tpsh_is_informationsgegenstand_gerichtsurteil_selected(c.fields_grouped) %}
<p class="tpsh-hint-gerichtsurteile">
Gerichtsurteile der Gerichte in Schleswig-Holstein werden nicht im Transparenzportal veröffentlicht sondern bei
<a href="https://www.juris.de">juris.de</a>.
</p>
{% endif %}
{{ h.snippet('snippets/package_list.html', packages=c.page.items) }} {{ h.snippet('snippets/package_list.html', packages=c.page.items) }}
{% endblock %} {% endblock %}
</div> </div>
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block search_facets %} {% block search_facets %}
{% if facets %} {% if facets %}
<p class="filter-list"> <p class="filter-list">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment