Use labels for types in CIS & StV searchbar

This commit is contained in:
chfhtw
2025-07-30 12:33:48 +02:00
parent 79720a77c2
commit ee13cfadba
3 changed files with 152 additions and 12 deletions
+8 -8
View File
@@ -15,14 +15,14 @@ const app = Vue.createApp({
origin: "cis",
cssclass: "",
calcheightonly: true,
types: [
"employee",
"student",
"room",
"organisationunit",
"cms",
"dms"
],
types: {
employee: Vue.computed(() => this.$p.t("search/type_employee")),
student: Vue.computed(() => this.$p.t("search/type_student")),
room: Vue.computed(() => this.$p.t("search/type_room")),
organisationunit: Vue.computed(() => this.$p.t("search/type_organisationunit")),
cms: Vue.computed(() => this.$p.t("search/type_cms")),
dms: Vue.computed(() => this.$p.t("search/type_dms"))
},
actions: {
employee: {
defaultaction: {
@@ -75,10 +75,10 @@ export default {
origin: 'stv',
cssclass: "position-relative",
calcheightonly: true,
types: [
"student",
"prestudent"
],
types: {
student: Vue.computed(() => this.$p.t('search/type_student')),
prestudent: Vue.computed(() => this.$p.t('search/type_prestudent'))
},
actions: {
student: {
defaultaction: {
+140
View File
@@ -41897,6 +41897,146 @@ and represent the current state of research on the topic. The prescribed citatio
)
)
),
array(
'app' => 'core',
'category' => 'search',
'phrase' => 'type_employee',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Mitarbeiter',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'employees',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'search',
'phrase' => 'type_student',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Studenten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'students',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'search',
'phrase' => 'type_prestudent',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Prestudenten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'prestudents',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'search',
'phrase' => 'type_room',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Räume',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'rooms',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'search',
'phrase' => 'type_organisationunit',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Organisationseinheiten',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'organisation units',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'search',
'phrase' => 'type_cms',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Inhalte',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'sites',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'search',
'phrase' => 'type_dms',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Dokumente',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'documents',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'search',