{# Copyright 2020 Karlsruhe Institute of Technology # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #} {% extends "records/base.html" %} {% block content %} {% include "snippets/resources/search/form.html" %}
{% if has_permission(current_user, "create", "record", None) %} {% endif %}
{% trans %}Results per page{% endtrans %}: {$ perPage $}
{% snippet "resources/search/filter", title=_("Filter by tag"), placeholder=_("No tags."), param="tag", limit_param="tag_limit", endpoint="records.records", values=tags, limit=25, total=total_tags, query_params=query_params %} {% snippet "resources/search/filter", title=_("Filter by type"), placeholder=_("No types."), param="type", limit_param="type_limit", endpoint="records.records", values=record_types, limit=25, total=total_record_types, query_params=query_params %} {% snippet "resources/search/filter", title=_("Filter by MIME type"), placeholder=_("No MIME types."), param="mimetype", limit_param="mimetype_limit", endpoint="records.records", values=mimetypes, limit=25, total=total_mimetypes, query_params=query_params %}
{% trans trimmed %} Records are the basic components of Kadi4Mat, as they contain data and connect it with metadata. {% endtrans %} {% trans trimmed %} The data of a record can either consist of a single file or of multiple files (e.g. a series of multiple images) all sharing the same metadata. {% endtrans %}
{{ total_records }} {{ ngettext("record", "records", total_records) }} {% trans %}found{% endtrans %}
{% snippet "resources/search/results", resources=records, view_endpoint="records.view_record", preview_image=False %} {% if total_records > query_params.per_page %}
{% snippet "resources/search/pagination", pagination=pagination, endpoint="records.records", query_params=query_params %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}