diff --git a/rero_ils/config.py b/rero_ils/config.py
index 7ce7b5ec4d..50bafb2dd8 100644
--- a/rero_ils/config.py
+++ b/rero_ils/config.py
@@ -999,13 +999,15 @@ def _(x):
record_serializers={
"application/json": "rero_ils.modules.serializers:json_v1_response"
},
- record_serializers_aliases={
- "json": "application/json",
- },
+ record_serializers_aliases={"json": "application/json"},
search_serializers={
"application/json": "rero_ils.modules.serializers:json_v1_search",
"application/rero+json": "rero_ils.modules.holdings.serializers:json_holdings_search",
},
+ search_serializers_aliases={
+ "json": "application/json",
+ "rero+json": "application/json",
+ },
list_route="/holdings/",
record_loaders={
"application/json": lambda: Holding(request.get_json()),
diff --git a/rero_ils/jsonschemas/common/countries-v0.0.1.json b/rero_ils/jsonschemas/common/countries-v0.0.1.json
index 27252dbd96..ec62ae505d 100644
--- a/rero_ils/jsonschemas/common/countries-v0.0.1.json
+++ b/rero_ils/jsonschemas/common/countries-v0.0.1.json
@@ -382,6 +382,8 @@
"formlyConfig": {
"props": {
"sort": true,
+ "placeholder": "Select an option…",
+ "sortOrder": "asc",
"filter": true,
"itemCssClass": "col-lg-4",
"options": [
diff --git a/rero_ils/modules/documents/templates/rero_ils/_anonymous_button.html b/rero_ils/modules/documents/templates/rero_ils/_anonymous_button.html
deleted file mode 100644
index 6a2aa26d3c..0000000000
--- a/rero_ils/modules/documents/templates/rero_ils/_anonymous_button.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{# -*- coding: utf-8 -*-
-
- RERO ILS
- Copyright (C) 2019-2022 RERO
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, version 3 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see .
-
-#}
-{%- if current_user.is_anonymous %}
-
- {{ _('Log in (to see request options)') }}
-
-{%- endif %}
diff --git a/rero_ils/modules/documents/templates/rero_ils/_document_online.html b/rero_ils/modules/documents/templates/rero_ils/_document_online.html
deleted file mode 100644
index 0f68c32f3e..0000000000
--- a/rero_ils/modules/documents/templates/rero_ils/_document_online.html
+++ /dev/null
@@ -1,67 +0,0 @@
-{# -*- coding: utf-8 -*-
-
- RERO ILS
- Copyright (C) 2019-2022 RERO
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, version 3 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see .
-
-#}
-{% set holdings = record.pid|online_holdings(viewcode) %}
-{% for library,accesses in holdings.items() %}
-
-
-
-
- {% if record.fiction_statement %}
-
-
{{ _('Fiction statement') }}
-
- {{ _(record.fiction_statement) }}
-
-
- {% endif %}
-
-
- {% with fieldLabel=_('Supplement'), data=record.supplement, header=false %}
- {% include 'rero_ils/_other_edition.html' %}
- {% endwith %}
-
- {% with fieldLabel=_('Related to'), data=record.relatedTo, header=false %}
- {% include 'rero_ils/_other_edition.html' %}
- {% endwith %}
-
-
- {% if record.note %}
- {% set noteGeneral = record.note | note_general %}
- {% if noteGeneral %}
-
-
{{ _('General note') }}
-
-
- {% for note in noteGeneral.general %}
- - {{ note }}
- {% endfor %}
-
-
-
- {% endif %}
- {% endif %}
-
-
- {% if record.credits %}
-
-
{{ _('Other responsibilities') }}
-
-
- {% for credit in record.credits %}
- - {{ credit }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.language and record.language | length > 0 %}
-
-
{{ _('Language') }}
-
-
- {% for language in record.language %}
- - {{ _('lang_' + language.value) }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.originalLanguage and record.originalLanguage | length > 0 %}
-
-
{{ _('Original language') }}
-
-
- {% for language in record.originalLanguage %}
- - {{ _('lang_' + language) }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.originalTitle %}
-
-
{{ _('Original title') }}
-
-
- {% for title in record.originalTitle %}
- - {{ title }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.work_access_point %}
- {% set workauthorized_access_point = record.work_access_point | work_access_point %}
-
-
{{ _('Work') }}
-
-
- {% for work in workauthorized_access_point %}
- - {{ work }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.tableOfContents %}
-
-
{{ _('Contents') }}
-
-
- {% for table in record.tableOfContents %}
- - {{ table }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.dissertation %}
-
-
{{ _('Thesis') }}
-
-
- {% for dissertation in record.dissertation %}
- {% for label in dissertation.label %}
- - {{ label.value }}
- {% endfor %}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.intendedAudience %}
-
-
{{ _('Intended audience') }}
-
-
- {% for audience in record.intendedAudience %}
- - {{ _(audience.value) }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.illustrativeContent %}
-
-
{{ _('Illustrations') }}
-
-
- {% for illustrative in record.illustrativeContent %}
- - {{ illustrative }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.colorContent %}
-
-
{{ _('Colors') }}
-
-
- {% for color in record.colorContent %}
- - {{ _(color) }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.scale %}
-
-
{{ _('Scale') }}
-
-
- {% for scale in record.scale %}
- - {{ scale.label }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.cartographicAttributes %}
- {% set attributes = record.cartographicAttributes | cartographic_attributes %}
- {% if attributes | length > 0 %}
-
-
{{ _('Cartographic data') }}
-
-
- {% for attribute in attributes %}
- -
- {% if 'projection' in attribute %}{{ attribute.projection }}{% endif %}
- {% if ('projection' in attribute) and ('coordinates' in attribute) and ('label' in attribute.coordinates) %};{% endif %}
- {% if ('coordinates' in attribute) and ('label' in attribute.coordinates) %}{{ attribute.coordinates.label }}{% endif %}
-
- {% endfor %}
-
-
-
- {% endif %}
- {% endif %}
-
-
- {% if record.classification %}
-
-
{{ _('Classification') }}
-
-
- {% for classification in record.classification %}
- -
- {{ classification.classificationPortion }}
- {% if 'subdivision' in classification %}
- -
- {% for sub in classification.subdivision %}
- {{ sub }}
- {% if not loop.last %} - {% endif %}
- {% endfor %}
- {% endif %}
- ({{ _(classification.type) }})
-
- {% endfor %}
-
-
-
- {% endif %}
-
-
-
-
-
- {% if record.usageAndAccessPolicy %}
-
-
{{ _('Use and access condition') }}
-
-
- {% for usage in record.usageAndAccessPolicy %}
- - {{ usage.label }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% with fieldLabel=_('Other edition'), data=record.otherEdition, header=false %}
- {% include 'rero_ils/_other_edition.html' %}
- {% endwith %}
-
- {% with fieldLabel=_('Also issued as'), data=record.otherPhysicalFormat, header=false %}
- {% include 'rero_ils/_other_edition.html' %}
- {% endwith %}
-
- {% with fieldLabel=_('Reproduced as'), data=record.hasReproduction, header=false %}
- {% include 'rero_ils/_other_edition.html' %}
- {% endwith %}
-
-
- {% if record.title %}
- {% set variants = record.title | title_variants %}
- {% for key, value in variants.items() %}
-
-
{{ _(key) | capitalize }}
-
-
- {% for title in value %}
- - {{ title }}
- {% endfor %}
-
-
-
- {% endfor %}
- {% endif %}
-
-
- {% if record.responsibilityStatement %}
-
-
{{ _('Statement of responsibility') }}
-
-
- {% for responsibility in record.responsibilityStatement %}
- {% for resp in responsibility %}
- - {{ resp.value }}
- {% endfor %}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.seriesStatement %}
-
-
{{ _('Series statement') }}
-
-
- {% for series in record.seriesStatement | series_statement_format %}
- {% for serie in series %}
- - {{ serie.value }}
- {% endfor %}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.provisionActivity %}
- {% set provisions = record.provisionActivity | provision_activity | provision_activity_not_publication %}
- {% for key, provisions in provisions.items() %}
-
-
{{ _(key) }}
-
-
- {% for provision in provisions %}
- - {{ provision.value }}
- {% endfor %}
-
-
-
- {% endfor %}
- {% endif %}
-
-
- {% if record.provisionActivity %}
- {% set provisions = record.provisionActivity | provision_activity_original_date %}
- {% if provisions | length > 0 %}
-
-
{{ _('Date of the original') }}
-
-
- {% for provision in provisions %}
- - {{ provision }}
- {% endfor %}
-
-
-
- {% endif %}
- {% endif %}
-
-
- {% if record.copyrightDate %}
-
-
{{ _('Copyright date') }}
-
-
- {% for copyright in record.copyrightDate %}
- - {{ copyright }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.sequence_numbering %}
-
-
{{ _('Numbering') }}
-
{{ record.sequence_numbering }}
-
- {% endif %}
-
-
- {% if record.dimensions %}
-
-
{{ _('Dimensions') }}
-
-
- {% for dimension in record.dimensions %}
- - {{ dimension }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.bookFormat %}
-
-
{{ _('Format') }}
-
-
- {% for format in record.bookFormat %}
- - {{ format }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.productionMethod %}
-
-
{{ _('Production method') }}
-
-
- {% for method in record.productionMethod %}
- - {{ _(method) }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.note %}
- {% set notes = record.note | notes_except_general %}
- {% if notes %}
- {% for key, notes in notes.items() %}
-
-
{{ _(key) }}
-
-
- {% for note in notes %}
- - {{ note }}
- {% endfor %}
-
-
-
- {% endfor %}
- {% endif %}
- {% endif %}
-
-
- {% if record.supplementaryContent %}
-
-
{{ _('Supplementary content') }}
-
-
- {% for sup in record.supplementaryContent %}
- - {{ sup }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.acquisitionTerms %}
-
-
{{ _('Terms of availability') }}
-
-
- {% for term in record.acquisitionTerms %}
- - {{ term }}
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.identifiedBy %}
- {% set identifiedby = record.identifiedBy | identified_by %}
- {% if identifiedby | length > 0 %}
-
-
{{ _('Identifier') }}
-
-
- {% for identifier in identifiedby %}
- -
- {% if identifier.type == "uri" %}
- {{ identifier.value }}
- {% else %}
- {{ identifier.value }}
- {% endif %}
- {% if identifier.details != '' %}
- - {{ identifier.details }}
- {% endif %}
- {{ _(identifier.type)|safe }}
-
- {% endfor %}
-
-
-
- {% endif %}
- {% endif %}
-
-
-
-
-
- {% if record.contentMediaCarrier %}
-
-
{{ _('Carrier and content type') }}
-
-
- {% for content in record.contentMediaCarrier %}
- -
- {{ _(content.carrierType) }}
- {%- if 'contentType' in content %}
- ({%- for type in content.contentType -%}
- {{ _(type) }}{% if not loop.last %}, {% endif %}
- {%- endfor -%})
- {% endif %}
-
- {% endfor %}
-
-
-
- {% endif %}
-
-
- {% if record.issuance %}
-
-
{{ _('Mode of issuance') }}
-
- {{ _(record.issuance.main_type) }} / {{ _(record.issuance.subtype) }}
-
-
- {% endif %}
-
-
-
-
{{ _('Permalink') }}
-
- {% set permalink = url_for('invenio_records_ui.doc', viewcode=viewcode, pid_value=record.pid, _external=True) %}
-
{{ permalink }}
-
-
-
diff --git a/rero_ils/modules/documents/templates/rero_ils/_ill_request_button.html b/rero_ils/modules/documents/templates/rero_ils/_ill_request_button.html
deleted file mode 100644
index 941fe4d0b0..0000000000
--- a/rero_ils/modules/documents/templates/rero_ils/_ill_request_button.html
+++ /dev/null
@@ -1,35 +0,0 @@
-{# -*- coding: utf-8 -*-
-
- RERO ILS
- Copyright (C) 2019-2022 RERO
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU Affero General Public License as published by
- the Free Software Foundation, version 3 of the License.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU Affero General Public License for more details.
-
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see