Skip to content

Commit c01e91c

Browse files
danalvrziFlameingdavisagli
authored
Add custom person view (#236)
* add custom person view * remove logger * fix person behaviour, css and missing data * fix css lint * Update kitconcept.core and VLT * Update example content, tests * lint --------- Co-authored-by: iFlameing <ialokkumarsingh0@gmail.com> Co-authored-by: David Glick <david@glicksoftware.com>
1 parent 04907bb commit c01e91c

41 files changed

Lines changed: 1721 additions & 1515 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

backend/news/236.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change the Person `department` field to use Textarea instead of input. @iFlameing

backend/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ classifiers = [
2525
"Programming Language :: Python :: 3.12",
2626
]
2727
dependencies = [
28-
"kitconcept.core==1.0.0a27",
28+
"kitconcept.core==1.0.0a28",
2929
"plone.api",
3030
"plone.distribution",
3131
"plone.restapi",
@@ -289,9 +289,9 @@ constraint-dependencies = [
289289
"jsonschema-specifications==2025.4.1",
290290
"jsonschema==4.24.0",
291291
"keyring==25.6.0",
292-
"kitconcept.core==1.0.0a27",
292+
"kitconcept.core==1.0.0a28",
293293
"kitconcept.solr==2.0.0a1",
294-
"kitconcept.voltolighttheme==7.0.0b2",
294+
"kitconcept.voltolighttheme==7.0.0b4",
295295
"legacy-cgi==2.6.2",
296296
"lockfile==0.12.2",
297297
"lxml-html-clean==0.4.2",

backend/src/kitconcept/intranet/behaviors/person.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class IPersonBehavior(model.Schema):
2222
required=False,
2323
)
2424

25-
department = schema.TextLine(
25+
department = schema.Text(
2626
title=_("Department"),
2727
required=False,
2828
)

backend/src/kitconcept/intranet/distributions/intranet/content/content/059feee144a44bf88a3b38fbe9deca65/data.json

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,8 @@
33
"@type": "Person",
44
"UID": "059feee144a44bf88a3b38fbe9deca65",
55
"academic_title": null,
6+
"address": null,
67
"allow_discussion": null,
7-
"blocks": {
8-
"08dbd45c-3579-499d-bd80-825fb220f15a": {
9-
"@layout": "aad6de27-6178-4b09-b19a-56ad8c5829e4",
10-
"@type": "description",
11-
"block": "08dbd45c-3579-499d-bd80-825fb220f15a",
12-
"fixed": true,
13-
"required": true
14-
},
15-
"8d7cfcc8-ff59-47bc-a04e-f165b5a265b1": {
16-
"@layout": "2444e746-f496-4c3e-a3c7-f6eea28cad16",
17-
"@type": "slate",
18-
"block": "8d7cfcc8-ff59-47bc-a04e-f165b5a265b1",
19-
"plaintext": "",
20-
"styles": {},
21-
"value": [
22-
{
23-
"children": [
24-
{
25-
"text": ""
26-
}
27-
],
28-
"type": "p"
29-
}
30-
]
31-
},
32-
"e5152e88-33ec-4104-9c3a-d1c76b9df9c4": {
33-
"@layout": "4ffbd230-2a04-44bb-89f4-6d9e0b71e0c5",
34-
"@type": "title",
35-
"block": "e5152e88-33ec-4104-9c3a-d1c76b9df9c4",
36-
"fixed": true,
37-
"readOnly": true,
38-
"required": true
39-
}
40-
},
41-
"blocks_layout": {
42-
"items": [
43-
"e5152e88-33ec-4104-9c3a-d1c76b9df9c4",
44-
"08dbd45c-3579-499d-bd80-825fb220f15a",
45-
"8d7cfcc8-ff59-47bc-a04e-f165b5a265b1"
46-
]
47-
},
488
"changeNote": "",
499
"contact_building": "B19",
5010
"contact_email": "tim.werner@example.com",
@@ -53,10 +13,11 @@
5313
"contact_website": "https://plone.org",
5414
"created": "2025-06-12T11:23:38+00:00",
5515
"department": null,
56-
"description": "Tim Werner, LL.M. ist Pr\u00fcfer im Bereich \u00d6ffentliche Finanzen und in der Abteilung Haushalts- und Strukturkontrolle t\u00e4tig. Seine Schwerpunkte liegen im Haushaltsrecht, der Mittelverwendung und der Bewertung \u00f6ffentlicher Projekte. Er f\u00fchrt Pr\u00fcfungen durch, erstellt fundierte Pr\u00fcfberichte und ber\u00e4t zu Optimierungspotenzialen im Haushaltsvollzug. Mit seiner juristischen Expertise im Verwaltungsrecht, seiner Erfahrung in der Bilanzanalyse sowie dem sicheren Umgang mit MS Excel und spezialisierter Pr\u00fcfsoftware tr\u00e4gt er zur Transparenz und Effizienz \u00f6ffentlicher Finanzen bei.",
16+
"description": "",
5717
"exclude_from_nav": false,
5818
"exportimport.constrains": {},
5919
"exportimport.conversation": [],
20+
"fax": null,
6021
"first_name": "Tim",
6122
"head_title": null,
6223
"id": "tim-werner-ll-m",
@@ -79,10 +40,16 @@
7940
},
8041
"modified": "2025-09-04T08:21:03+00:00",
8142
"nav_title": null,
43+
"office_phone": null,
8244
"review_state": "published",
8345
"roles": [
8446
"member"
8547
],
48+
"text": {
49+
"content-type": "text/html",
50+
"data": "<p>Tim Werner, LL.M. ist Pr\u00fcfer im Bereich \u00d6ffentliche Finanzen und in der Abteilung Haushalts- und Strukturkontrolle t\u00e4tig. Seine Schwerpunkte liegen im Haushaltsrecht, der Mittelverwendung und der Bewertung \u00f6ffentlicher Projekte. Er f\u00fchrt Pr\u00fcfungen durch, erstellt fundierte Pr\u00fcfberichte und ber\u00e4t zu Optimierungspotenzialen im Haushaltsvollzug. Mit seiner juristischen Expertise im Verwaltungsrecht, seiner Erfahrung in der Bilanzanalyse sowie dem sicheren Umgang mit MS Excel und spezialisierter Pr\u00fcfsoftware tr\u00e4gt er zur Transparenz und Effizienz \u00f6ffentlicher Finanzen bei.</p>",
51+
"encoding": "utf8"
52+
},
8653
"title": "Tim Werner, LL.M.",
8754
"type_title": "Person",
8855
"version": "current",

backend/src/kitconcept/intranet/distributions/intranet/content/content/1cdfd0c5a337469f8c41ade1fba5274d/data.json

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,8 @@
33
"@type": "Person",
44
"UID": "1cdfd0c5a337469f8c41ade1fba5274d",
55
"academic_title": null,
6+
"address": null,
67
"allow_discussion": null,
7-
"blocks": {
8-
"5568d237-e7d6-4418-8be8-9ad914b7b7bb": {
9-
"@layout": "2444e746-f496-4c3e-a3c7-f6eea28cad16",
10-
"@type": "slate",
11-
"block": "5568d237-e7d6-4418-8be8-9ad914b7b7bb",
12-
"plaintext": "",
13-
"styles": {},
14-
"value": [
15-
{
16-
"children": [
17-
{
18-
"text": ""
19-
}
20-
],
21-
"type": "p"
22-
}
23-
]
24-
},
25-
"7c42288b-1dbc-414b-910b-f03cbcd95097": {
26-
"@layout": "4ffbd230-2a04-44bb-89f4-6d9e0b71e0c5",
27-
"@type": "title",
28-
"block": "7c42288b-1dbc-414b-910b-f03cbcd95097",
29-
"fixed": true,
30-
"readOnly": true,
31-
"required": true
32-
},
33-
"e1877148-3b50-421f-8848-b86bed67a239": {
34-
"@layout": "aad6de27-6178-4b09-b19a-56ad8c5829e4",
35-
"@type": "description",
36-
"block": "e1877148-3b50-421f-8848-b86bed67a239",
37-
"fixed": true,
38-
"required": true
39-
}
40-
},
41-
"blocks_layout": {
42-
"items": [
43-
"7c42288b-1dbc-414b-910b-f03cbcd95097",
44-
"e1877148-3b50-421f-8848-b86bed67a239",
45-
"5568d237-e7d6-4418-8be8-9ad914b7b7bb"
46-
]
47-
},
488
"changeNote": "",
499
"contact_building": "B32",
5010
"contact_email": "ayla.demir@example.com",
@@ -53,10 +13,11 @@
5313
"contact_website": "https://plone.org",
5414
"created": "2025-06-12T11:26:07+00:00",
5515
"department": null,
56-
"description": "Dr. Ayla Demir ist Projektkoordinatorin f\u00fcr Internationale Zusammenarbeit in der Abteilung Wissenschaftspolitische Beziehungen. Sie koordiniert internationale Partnerschaften, begleitet das Antragsmanagement f\u00fcr EU- und Drittmittelprojekte und organisiert Fachkonferenzen. Ihre Schwerpunkte liegen in der Entwicklung von F\u00f6rderprogrammen, dem Aufbau wissenschaftlicher Netzwerke und der strategischen Projektentwicklung. Mit fundierten Kenntnissen im Drittmittelrecht (z.\u202fB. Horizon, BMBF), interkultureller Kommunikation sowie Projektmanagement-Standards wie PRINCE2 und GPM/IPMA unterst\u00fctzt sie wirkungsvoll die internationale Wissenschaftskooperation.",
16+
"description": "",
5717
"exclude_from_nav": false,
5818
"exportimport.constrains": {},
5919
"exportimport.conversation": [],
20+
"fax": null,
6021
"first_name": "Dr. Ayla",
6122
"head_title": null,
6223
"id": "dr-ayla-demir",
@@ -79,10 +40,16 @@
7940
},
8041
"modified": "2025-09-04T08:18:07+00:00",
8142
"nav_title": null,
43+
"office_phone": null,
8244
"review_state": "published",
8345
"roles": [
8446
"member"
8547
],
48+
"text": {
49+
"content-type": "text/html",
50+
"data": "<p>Dr. Ayla Demir ist Projektkoordinatorin f\u00fcr Internationale Zusammenarbeit in der Abteilung Wissenschaftspolitische Beziehungen. Sie koordiniert internationale Partnerschaften, begleitet das Antragsmanagement f\u00fcr EU- und Drittmittelprojekte und organisiert Fachkonferenzen. Ihre Schwerpunkte liegen in der Entwicklung von F\u00f6rderprogrammen, dem Aufbau wissenschaftlicher Netzwerke und der strategischen Projektentwicklung. Mit fundierten Kenntnissen im Drittmittelrecht (z.\u202fB. Horizon, BMBF), interkultureller Kommunikation sowie Projektmanagement-Standards wie PRINCE2 und GPM/IPMA unterst\u00fctzt sie wirkungsvoll die internationale Wissenschaftskooperation.</p>",
51+
"encoding": "utf8"
52+
},
8653
"title": "Dr. Ayla Demir",
8754
"type_title": "Person",
8855
"version": "current",

backend/src/kitconcept/intranet/distributions/intranet/content/content/29619a2394d7421980fabaa99b742eda/data.json

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,8 @@
33
"@type": "Person",
44
"UID": "29619a2394d7421980fabaa99b742eda",
55
"academic_title": null,
6+
"address": null,
67
"allow_discussion": null,
7-
"blocks": {
8-
"02128ed8-c460-4754-a1c2-7c6cb5b0cf71": {
9-
"@layout": "4ffbd230-2a04-44bb-89f4-6d9e0b71e0c5",
10-
"@type": "title",
11-
"block": "379f3a1b-c374-476b-abb4-492832181331",
12-
"fixed": true,
13-
"readOnly": true,
14-
"required": true
15-
},
16-
"934077e1-fdbf-4cd2-93ae-ff27feb7effb": {
17-
"@layout": "2444e746-f496-4c3e-a3c7-f6eea28cad16",
18-
"@type": "slate",
19-
"block": "d00b0465-ff56-4f8e-974d-228e179a6940",
20-
"plaintext": "",
21-
"styles": {},
22-
"value": [
23-
{
24-
"children": [
25-
{
26-
"text": ""
27-
}
28-
],
29-
"type": "p"
30-
}
31-
]
32-
},
33-
"f7e78b18-8c49-4814-b08f-3604e274dbcf": {
34-
"@layout": "aad6de27-6178-4b09-b19a-56ad8c5829e4",
35-
"@type": "description",
36-
"block": "ca2d5971-afab-40a9-91fd-40acb3558bd3",
37-
"fixed": true,
38-
"required": true
39-
}
40-
},
41-
"blocks_layout": {
42-
"items": [
43-
"02128ed8-c460-4754-a1c2-7c6cb5b0cf71",
44-
"f7e78b18-8c49-4814-b08f-3604e274dbcf",
45-
"934077e1-fdbf-4cd2-93ae-ff27feb7effb"
46-
]
47-
},
488
"changeNote": "",
499
"contact_building": "b243",
5010
"contact_email": "lukas.brandt@example.com",
@@ -53,10 +13,11 @@
5313
"contact_website": "https://plone.org",
5414
"created": "2025-06-12T10:41:42+00:00",
5515
"department": null,
56-
"description": "Lukas Brandt, M.Sc. ist IT-Systemarchitekt im Rechenzentrum und spezialisiert auf Hochleistungsrechner, Netzwerksicherheit und IT-Automatisierung. Er plant und betreut die Serverinfrastruktur, \u00fcberwacht und optimiert Netzwerke und ist f\u00fcr die Anbindung von Forschungsdatenbanken zust\u00e4ndig. Seine Fachkenntnisse in der Linux-Administration, modernen Netzwerkarchitekturen sowie der Automatisierung mit Ansible und Terraform bilden die Grundlage f\u00fcr einen stabilen und leistungsf\u00e4higen IT-Betrieb.",
16+
"description": "",
5717
"exclude_from_nav": false,
5818
"exportimport.constrains": {},
5919
"exportimport.conversation": [],
20+
"fax": null,
6021
"first_name": "Lukas",
6122
"head_title": null,
6223
"id": "lukas-brandt-m-sc",
@@ -79,10 +40,16 @@
7940
},
8041
"modified": "2025-09-04T08:20:09+00:00",
8142
"nav_title": null,
43+
"office_phone": null,
8244
"review_state": "published",
8345
"roles": [
8446
"member"
8547
],
48+
"text": {
49+
"content-type": "text/html",
50+
"data": "<p>Lukas Brandt, M.Sc. ist IT-Systemarchitekt im Rechenzentrum und spezialisiert auf Hochleistungsrechner, Netzwerksicherheit und IT-Automatisierung. Er plant und betreut die Serverinfrastruktur, \u00fcberwacht und optimiert Netzwerke und ist f\u00fcr die Anbindung von Forschungsdatenbanken zust\u00e4ndig. Seine Fachkenntnisse in der Linux-Administration, modernen Netzwerkarchitekturen sowie der Automatisierung mit Ansible und Terraform bilden die Grundlage f\u00fcr einen stabilen und leistungsf\u00e4higen IT-Betrieb.</p>",
51+
"encoding": "utf8"
52+
},
8653
"title": "Lukas Brandt, M.Sc.",
8754
"type_title": "Person",
8855
"version": "current",

backend/src/kitconcept/intranet/distributions/intranet/content/content/2e17746a030b479a918afefc50d5ff4c/data.json

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,8 @@
33
"@type": "Person",
44
"UID": "2e17746a030b479a918afefc50d5ff4c",
55
"academic_title": null,
6+
"address": null,
67
"allow_discussion": null,
7-
"blocks": {
8-
"5699d5b6-3df6-4b3c-bbb3-e629294a9145": {
9-
"@layout": "4ffbd230-2a04-44bb-89f4-6d9e0b71e0c5",
10-
"@type": "title",
11-
"block": "5699d5b6-3df6-4b3c-bbb3-e629294a9145",
12-
"fixed": true,
13-
"readOnly": true,
14-
"required": true
15-
},
16-
"b4669771-cddb-4b62-87f1-902d67622e9f": {
17-
"@layout": "2444e746-f496-4c3e-a3c7-f6eea28cad16",
18-
"@type": "slate",
19-
"block": "b4669771-cddb-4b62-87f1-902d67622e9f",
20-
"plaintext": "",
21-
"styles": {},
22-
"value": [
23-
{
24-
"children": [
25-
{
26-
"text": ""
27-
}
28-
],
29-
"type": "p"
30-
}
31-
]
32-
},
33-
"f7fe81db-4bc0-49a0-9db7-736a131fca51": {
34-
"@layout": "aad6de27-6178-4b09-b19a-56ad8c5829e4",
35-
"@type": "description",
36-
"block": "f7fe81db-4bc0-49a0-9db7-736a131fca51",
37-
"fixed": true,
38-
"required": true
39-
}
40-
},
41-
"blocks_layout": {
42-
"items": [
43-
"5699d5b6-3df6-4b3c-bbb3-e629294a9145",
44-
"f7fe81db-4bc0-49a0-9db7-736a131fca51",
45-
"b4669771-cddb-4b62-87f1-902d67622e9f"
46-
]
47-
},
488
"changeNote": "",
499
"contact_building": "B32",
5010
"contact_email": "clara.beck@example.com",
@@ -53,10 +13,11 @@
5313
"contact_website": "https://plone.org",
5414
"created": "2025-06-12T11:31:42+00:00",
5515
"department": null,
56-
"description": "Dr. Clara Beck ist wissenschaftliche Beraterin f\u00fcr Gesundheits- und Umweltschutz in der Abteilung Politikberatung und Wissenschaftstransfer. Sie erstellt evidenzbasierte Gutachten, begleitet politische Entscheidungsprozesse fachlich und pflegt den Austausch mit relevanten Stakeholdern. Ihre Arbeit verbindet Risikoanalyse mit gezielter \u00d6ffentlichkeitsarbeit, um wissenschaftliche Erkenntnisse wirksam in die Praxis zu \u00fcberf\u00fchren. Mit ihrer Expertise in Wissenschaftskommunikation, fundierter Literaturrecherche und Metaanalysen sowie dem Verfassen pr\u00e4gnanter Policy Briefs tr\u00e4gt sie zur fundierten und transparenten politischen Beratung bei.",
16+
"description": "",
5717
"exclude_from_nav": false,
5818
"exportimport.constrains": {},
5919
"exportimport.conversation": [],
20+
"fax": null,
6021
"first_name": "Dr. Clara",
6122
"head_title": null,
6223
"id": "dr-clara-beck",
@@ -79,10 +40,16 @@
7940
},
8041
"modified": "2025-09-04T08:18:23+00:00",
8142
"nav_title": null,
43+
"office_phone": null,
8244
"review_state": "published",
8345
"roles": [
8446
"member"
8547
],
48+
"text": {
49+
"content-type": "text/html",
50+
"data": "<p>Dr. Clara Beck ist wissenschaftliche Beraterin f\u00fcr Gesundheits- und Umweltschutz in der Abteilung Politikberatung und Wissenschaftstransfer. Sie erstellt evidenzbasierte Gutachten, begleitet politische Entscheidungsprozesse fachlich und pflegt den Austausch mit relevanten Stakeholdern. Ihre Arbeit verbindet Risikoanalyse mit gezielter \u00d6ffentlichkeitsarbeit, um wissenschaftliche Erkenntnisse wirksam in die Praxis zu \u00fcberf\u00fchren. Mit ihrer Expertise in Wissenschaftskommunikation, fundierter Literaturrecherche und Metaanalysen sowie dem Verfassen pr\u00e4gnanter Policy Briefs tr\u00e4gt sie zur fundierten und transparenten politischen Beratung bei.</p>",
51+
"encoding": "utf8"
52+
},
8653
"title": "Dr. Clara Beck",
8754
"type_title": "Person",
8855
"version": "current",

0 commit comments

Comments
 (0)