Skip to content

Commit 01ab5d3

Browse files
jmaiGor milhit
authored and
iGor milhit
committed
API: subject facet resolution
* FIX Fixes missing subject facet. Signed-off-by: Johnny Mariéthoz <[email protected]>
1 parent 5b5e533 commit 01ab5d3

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

rero_ils/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ def _(x):
671671
author__de=dict(terms=dict(field='facet_authors_de')),
672672
author__it=dict(terms=dict(field='facet_authors_it')),
673673
language=dict(terms=dict(field='languages.language')),
674-
subject=dict(terms=dict(field='facet_subject')),
674+
subject=dict(terms=dict(field='facet_subjects')),
675675
status=dict(terms=dict(field='items.status'))
676676
),
677677
filters={
@@ -682,7 +682,7 @@ def _(x):
682682
_('author__de'): terms_filter('facet_authors_de'),
683683
_('author__it'): terms_filter('facet_authors_it'),
684684
_('language'): terms_filter('languages.language'),
685-
_('subject'): terms_filter('facet_subject'),
685+
_('subject'): terms_filter('facet_subjects'),
686686
_('status'): terms_filter('items.status'),
687687
},
688688
),

ui/src/app/core/manual-translations.ts

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ _('rero');
4646

4747
_('author');
4848
_('document_type');
49+
_('subject');
4950
_('language');
5051
_('library');
5152
_('status');

ui/src/assets/i18n/de.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"rero": "RERO",
7373
"author": "Autor",
7474
"document_type": "Dokumenttyp",
75+
"subject": "Schlagwort",
7576
"language": "Sprache",
7677
"library": "Bibliothek",
7778
"status": "Status",
@@ -223,4 +224,4 @@
223224
"Documents": "",
224225
"Persons": "",
225226
"results": "Resultate"
226-
}
227+
}

ui/src/assets/i18n/en.json

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"rero": "rero",
7373
"author": "author",
7474
"document_type": "document_type",
75+
"subject": "subject",
7576
"language": "language",
7677
"library": "library",
7778
"status": "status",

ui/src/assets/i18n/en_US.json

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"rero": "rero",
7373
"author": "author",
7474
"document_type": "document_type",
75+
"subject": "subject",
7576
"language": "language",
7677
"library": "library",
7778
"status": "status",

ui/src/assets/i18n/fr.json

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"rero": "RERO",
7373
"author": "auteur",
7474
"document_type": "type de document",
75+
"subject": "sujet",
7576
"language": "langue",
7677
"library": "bibliothèque",
7778
"status": "status",

ui/src/assets/i18n/it.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"rero": "rero",
7373
"author": "author",
7474
"document_type": "document_type",
75+
"subject": "oggetto",
7576
"language": "language",
7677
"library": "library",
7778
"status": "status",
@@ -223,4 +224,4 @@
223224
"Documents": "",
224225
"Persons": "",
225226
"results": "results"
226-
}
227+
}

0 commit comments

Comments
 (0)