Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next version (primeng) #3805

Draft
wants to merge 4 commits into
base: staging
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RELEASE-NOTES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2411,7 +2411,7 @@ Metadata
others).
- Renames person module into contribution module.
- Sorts the contribution roles in the document editor (with
``selectWithSort`` form option).
``select`` form option).
- Updates the conversion of documents with contribution references from
IdRef.
- Corrects MARC to JSON conversion for subjects.
Expand Down
8 changes: 5 additions & 3 deletions rero_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
5 changes: 4 additions & 1 deletion rero_ils/jsonschemas/common/cantons-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
"hide": "field?.parent?.model?.country !== 'sz'"
},
"props": {
"itemCssClass": "col-lg-4",
"sort": true,
"placeholder": "Select an option…",
"sortOrder": "asc",
"filter": true,
"options": [
{
"label": "canton_ag",
Expand Down
7 changes: 5 additions & 2 deletions rero_ils/jsonschemas/common/countries-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@
"widget": {
"formlyConfig": {
"props": {
"itemCssClass": "col-lg-4",
"sort": true,
"placeholder": "Select an option…",
"sortOrder": "asc",
"filter": true,
"options": [
{
"label": "country_aa",
Expand Down Expand Up @@ -1887,4 +1890,4 @@
}
}
}
}
}
7 changes: 5 additions & 2 deletions rero_ils/jsonschemas/common/currency-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
"pattern": "^[A-Z]{3}$",
"widget": {
"formlyConfig": {
"type": "selectWithSort"
"type": "select",
"props": {
"sort": true
}
}
}
}
}
}
3 changes: 2 additions & 1 deletion rero_ils/jsonschemas/common/languages-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,9 @@
],
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"sort": true,
"itemCssClass": "col-lg-6",
"options": [
{
Expand Down
5 changes: 3 additions & 2 deletions rero_ils/jsonschemas/common/ui-languages-v0.0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
],
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"sort": true,
"itemCssClass": "col-lg-2",
"options": [
{
Expand All @@ -35,4 +36,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,9 @@
"default": "in progress",
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"selectWithSortOptions": {
"order": "label"
},
"sort": true,
"options": [
{
"value": "in_progress",
Expand All @@ -167,7 +165,7 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"props": {
"validation": {
"messages": {
Expand Down Expand Up @@ -206,11 +204,9 @@
],
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"selectWithSortOptions": {
"order": "label"
},
"sort": true,
"options": [
{
"value": "shipping_and_handling",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@
"default": "staff_note",
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"sort": true,
"options": [
{
"label": "vendor_note",
Expand Down Expand Up @@ -191,7 +192,7 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"expressions": {
"props.required": "field?.parent?.model?.status === 'ordered' || field?.parent?.model?.status === 'received'",
"hide": "field?.parent?.model?.status !== 'ordered' && field?.parent?.model?.status !== 'received'"
Expand All @@ -214,7 +215,7 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"expressions": {
"props.required": "field?.parent?.model?.status === 'received'",
"hide": "field?.parent?.model?.status !== 'received'"
Expand Down Expand Up @@ -278,13 +279,14 @@
"pattern": "^https://bib.rero.ch/api/documents/.+?$",
"widget": {
"formlyConfig": {
"type": "remoteAutoComplete",
"props": {
"validation": {
"messages": {
"patternMessage": "Should be in the following format: https://bib.rero.ch/api/documents/<PID>."
}
},
"remoteTypeahead": {
"queryOptions": {
"type": "documents",
"filter": "NOT harvested:true"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
"default": "monograph",
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"sort": true,
"options": [
{
"value": "monograph",
Expand Down Expand Up @@ -112,8 +113,9 @@
"default": "staff_note",
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"sort": true,
"options": [
{
"label": "vendor_note",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"props": {
"validation": {
"messages": {
Expand Down Expand Up @@ -162,8 +162,9 @@
"default": "staff_note",
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"sort": true,
"options": [
{
"label": "staff_note",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@
"default": "staff_note",
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"sort": true,
"options": [
{
"label": "staff_note",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"props": {
"validation": {
"messages": {
Expand All @@ -77,7 +77,7 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"props": {
"validation": {
"messages": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@
],
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"wrappers": [
"form-field"
],
"props": {
"selectWithSortOptions": {
"order": "label"
},
"sort": true,
"options": [
{
"label": "course",
Expand Down Expand Up @@ -161,17 +159,17 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"props": {
"validation": {
"messages": {
"patternMessage": "Should be in the following format: 2022-12-31 (YYYY-MM-DD).",
"dateMustBeLessThan": "The start date must be less than the end date."
"datesGreaterThan": "The start date must be less than the end date."
},
"validators": {
"dateMustBeLessThan": {
"startDate": "start_date",
"endDate": "end_date",
"datesGreaterThan": {
"dateFirst": "start_date",
"dateLast": "end_date",
"strict": true
}
}
Expand All @@ -187,17 +185,17 @@
"pattern": "^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
"widget": {
"formlyConfig": {
"type": "datepicker",
"type": "datePicker",
"props": {
"validation": {
"messages": {
"patternMessage": "Should be in the following format: 2022-12-31 (YYYY-MM-DD).",
"datesMustBeGreaterThan": "The end date must be greater than the start date."
"datesGreaterThan": "The end date must be greater than the start date."
},
"validators": {
"dateMustBeGreaterThan": {
"startDate": "start_date",
"endDate": "end_date",
"datesGreaterThan": {
"dateFirst": "start_date",
"dateLast": "end_date",
"strict": true
}
}
Expand Down Expand Up @@ -257,8 +255,9 @@
"pattern": "^https://bib.rero.ch/api/items/.*?$",
"widget": {
"formlyConfig": {
"type": "remoteAutoComplete",
"props": {
"remoteTypeahead": {
"queryOptions": {
"type": "items"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@
],
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"itemCssClass": "col-lg-6",
"sort": true,
"options": [
{
"label": "Full level",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
],
"widget": {
"formlyConfig": {
"type": "selectWithSort",
"type": "select",
"props": {
"selectWithSortOptions": {
"order": "label"
},
"sort": true,
"cssClass": "w-md-50",
"options": [
{
Expand All @@ -41,4 +39,4 @@
}
}
}
}
}
Loading
Loading