@@ -41,43 +41,49 @@ export class ResourcesSearchConstraintsComponent extends SearchConstraintsCompon
41
41
42
42
public getFieldLabel ( field : Field ) : string {
43
43
44
- if ( field . name === 'geometry' ) {
45
- return this . i18n ( {
46
- id : 'resources.searchBar.constraints.geometry' ,
47
- value : 'Geometrie'
48
- } ) ;
49
- } else if ( field . name === 'isDepictedIn' ) {
50
- return this . i18n ( {
51
- id : 'resources.searchBar.constraints.linkedImages' ,
52
- value : 'Verknüpfte Bilder'
53
- } ) ;
54
- } else if ( field . name === 'isSameAs' ) {
55
- return this . i18n ( {
56
- id : 'resources.searchBar.constraints.isSameAs' ,
57
- value : 'Verknüpfte identische Ressourcen'
58
- } ) ;
59
- } else if ( field . name === 'isInstanceOf' ) {
60
- return this . i18n ( {
61
- id : 'resources.searchBar.constraints.isInstanceOf' ,
62
- value : 'Verknüpfte Typen'
63
- } ) ;
64
- } else if ( field . name === 'hasInstance' ) {
65
- return this . i18n ( {
66
- id : 'resources.searchBar.constraints.hasInstance' ,
67
- value : 'Verknüpfte Funde'
68
- } ) ;
69
- } else if ( field . name === 'isStoragePlaceOf' ) {
70
- return this . i18n ( {
71
- id : 'resources.searchBar.constraints.isStoragePlaceOf' ,
72
- value : 'Verknüpfte Objekte'
73
- } ) ;
74
- } else if ( field . name === 'isStoredIn' ) {
75
- return this . i18n ( {
76
- id : 'resources.searchBar.constraints.isStoredIn' ,
77
- value : 'Verknüpfter Aufbewahrungsort'
78
- } ) ;
79
- } else {
80
- return super . getFieldLabel ( field ) ;
44
+ switch ( field . name ) {
45
+ case 'isChildOf' :
46
+ return this . i18n ( {
47
+ id : 'resources.searchBar.constraints.hasChildren' ,
48
+ value : 'Untergeordnete Ressourcen'
49
+ } ) ;
50
+ case 'geometry' :
51
+ return this . i18n ( {
52
+ id : 'resources.searchBar.constraints.geometry' ,
53
+ value : 'Geometrie'
54
+ } ) ;
55
+ case 'isDepictedIn' :
56
+ return this . i18n ( {
57
+ id : 'resources.searchBar.constraints.linkedImages' ,
58
+ value : 'Verknüpfte Bilder'
59
+ } ) ;
60
+ case 'isSameAs' :
61
+ return this . i18n ( {
62
+ id : 'resources.searchBar.constraints.isSameAs' ,
63
+ value : 'Verknüpfte identische Ressourcen'
64
+ } ) ;
65
+ case 'isInstanceOf' :
66
+ return this . i18n ( {
67
+ id : 'resources.searchBar.constraints.isInstanceOf' ,
68
+ value : 'Verknüpfte Typen'
69
+ } ) ;
70
+ case 'hasInstance' :
71
+ return this . i18n ( {
72
+ id : 'resources.searchBar.constraints.hasInstance' ,
73
+ value : 'Verknüpfte Funde'
74
+ } ) ;
75
+ case 'isStoragePlaceOf' :
76
+ return this . i18n ( {
77
+ id : 'resources.searchBar.constraints.isStoragePlaceOf' ,
78
+ value : 'Verknüpfte Objekte'
79
+ } ) ;
80
+ case 'isStoredIn' :
81
+ return this . i18n ( {
82
+ id : 'resources.searchBar.constraints.isStoredIn' ,
83
+ value : 'Verknüpfter Aufbewahrungsort'
84
+ } ) ;
85
+ default :
86
+ return super . getFieldLabel ( field ) ;
81
87
}
82
88
}
83
89
@@ -86,6 +92,12 @@ export class ResourcesSearchConstraintsComponent extends SearchConstraintsCompon
86
92
87
93
this . defaultFields = [ ] ;
88
94
95
+ this . defaultFields . push ( {
96
+ name : 'isChildOf' ,
97
+ inputType : 'default' ,
98
+ constraintIndexed : true
99
+ } ) ;
100
+
89
101
if ( ! this . viewFacade . isInTypesManagement ( ) ) {
90
102
this . defaultFields . push ( {
91
103
name : 'geometry' ,
0 commit comments