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

feat: Hinweis juris.de

parent a1c8b564
No related branches found
No related tags found
No related merge requests found
......@@ -223,3 +223,12 @@ def git_commit_hash():
except:
return 'unknown'
return subprocess.check_output([command], shell=True, cwd=current_dir)
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
'tpsh_get_address_org':helpers_tpsh.get_address_org,
'tpsh_get_body_mail':helpers_tpsh.get_body_mail,
'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
score = s
if score > 0:
dict_pkg['openness'] = OdshPlugin.scores[score-1]
......@@ -2837,3 +2837,8 @@ body.filters-modal div.row > aside.secondary.span3 {
.tpsh-collection-list {
list-style-type: none;
}
.tpsh-hint-gerichtsurteile {
font-size: 18px;
padding-top: 20px;
}
......@@ -24,6 +24,12 @@ method="get" data-module="select-switch">
{{ super() }}
{% endblock %}
{% 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) }}
{% endblock %}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment