Skip to content
Merged
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
1 change: 1 addition & 0 deletions backend/news/134.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a new behavior `kitconcept.intranet.person` with fields academic_title, job_title, department. @ericof
1 change: 1 addition & 0 deletions backend/news/134.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade collective.person to version 1.0.0b1. @ericof
2 changes: 2 additions & 0 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies = [
"pas.plugins.keycloakgroups==1.0.0b1",
"pas.plugins.oidc==2.0.0",
"kitconcept.solr==2.0.0a1",
"collective.person==1.0.0b1",
]

[dependency-groups]
Expand Down Expand Up @@ -232,6 +233,7 @@ constraint-dependencies = [
"cmarkgfm==2024.11.20",
"collective.MockMailHost==3.0.0",
"collective.monkeypatcher==2.0.0",
"collective.person==1.0.0b1",
"collective.recipe.omelette==2.0.0",
"collective.recipe.template==2.2",
"collective.recipe.vscode==0.1.9",
Expand Down
8 changes: 8 additions & 0 deletions backend/src/kitconcept/intranet/behaviors/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@
provides=".lcm.ILCM"
/>

<plone:behavior
name="kitconcept.intranet.person"
title="Intranet-specific Person fields"
description="Add the intranet-specific person fields"
provides=".person.IPersonBehavior"
for="collective.person.content.person.IPerson"
/>

</configure>
28 changes: 28 additions & 0 deletions backend/src/kitconcept/intranet/behaviors/person.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from kitconcept.intranet import _
from plone.autoform.interfaces import IFormFieldProvider
from plone.supermodel import model
from zope import schema
from zope.interface import provider


@provider(IFormFieldProvider)
class IPersonBehavior(model.Schema):
"""Behavior: Additional fields for a Person."""

academic_title = schema.Choice(
title=_("Academic Title"),
vocabulary="kitconcept.intranet.vocabularies.academic_titles",
required=False,
)

job_title = schema.TextLine(
title=_("Job Title"),
description=_("Please input the job title of the person."),
required=False,
)

departament = schema.TextLine(
title=_("Department"),
description=_("Please input the department of the person."),
required=False,
)
6 changes: 3 additions & 3 deletions backend/src/kitconcept/intranet/controlpanels/intranet.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class IIntranetSettings(Interface):
title=_("Person Picture Aspect Ratio"),
description=_(
"help_person_picture_aspect_ratio",
default="Image aspect ratio of the person's picture. This setting is used for the "
"person picture on the person profile page, on teasers that point to a "
"person profile page and on listings where persons are displayed.",
default="Image aspect ratio of the person's picture. This setting is used "
"for the person picture on the person profile page, on teasers that point "
"to a person profile page and on listings where persons are displayed.",
),
required=True,
default="rounded1to1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-08-18 19:48+0000\n"
"POT-Creation-Date: 2025-09-09 16:49+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -22,10 +22,30 @@ msgstr "- Workflow für Intranets. Öffentlicher Zugriff auf veröffentlichte In
msgid "- Workflow for Intranets. Requires authentication."
msgstr "- Workflow für Intranets. Authentifizierung erforderlich."

#: kitconcept/intranet/distributions.zcml:16
#: kitconcept/intranet/controlpanels/intranet.py:49
msgid "1:1 round picture"
msgstr ""

#: kitconcept/intranet/controlpanels/intranet.py:50
msgid "4:5 square picture"
msgstr ""

#: kitconcept/intranet/distributions.zcml:17
msgid "A Plone distribution for Intranets with Plone. Created by kitconcept."
msgstr "Eine Plone-Distribution für Intranets mit Plone. Erstellt von kitconcept."

#: kitconcept/intranet/behaviors/person.py:14
msgid "Academic Title"
msgstr "Akademischer Titel"

#: kitconcept/intranet/behaviors/configure.zcml:48
msgid "Add the intranet-specific person fields"
msgstr "Fügen Sie die intranet-spezifischen Personenfelder hinzu"

#: kitconcept/intranet/behaviors/configure.zcml:40
msgid "Add the lifecycle management fields"
msgstr ""

#: kitconcept/intranet/behaviors/configure.zcml:19
msgid "Allows to set configuration that will be injected into the blocks default configuration."
msgstr "Ermöglicht die Festlegung einer Konfiguration, die in die Standardkonfiguration der Blöcke eingefügt wird."
Expand All @@ -39,28 +59,36 @@ msgstr "Blockkonfiguration"
msgid "Can only be seen and edited by the owner."
msgstr "Kann nur vom Eigentümer angesehen und bearbeitet werden."

#: kitconcept/intranet/controlpanels/intranet.py:31
#: kitconcept/intranet/controlpanels/intranet.py:33
msgid "Custom CSS"
msgstr "Benutzerdefiniertes CSS"

#: kitconcept/intranet/controlpanels/intranet.py:32
#: kitconcept/intranet/controlpanels/intranet.py:34
msgid "Custom CSS for the intranet."
msgstr "Benutzerdefiniertes CSS für das Intranet."

#: kitconcept/intranet/behaviors/person.py:26
msgid "Department"
msgstr "Abteilung"

#: kitconcept/intranet/vocabularies/person.py:17
msgid "Dr."
msgstr "Dr."

#: kitconcept/intranet/profiles/default/types/Location.xml
#: kitconcept/intranet/profiles/default/types/Organisational_Unit.xml
msgid "Edit"
msgstr "Bearbeiten"

#: kitconcept/intranet/controlpanels/intranet.py:19
#: kitconcept/intranet/controlpanels/intranet.py:21
msgid "External Search URL"
msgstr "Externe Such-URL"

#: kitconcept/intranet/behaviors/configure.zcml:29
#: kitconcept/intranet/behaviors/configure.zcml:26
msgid "Fields for Location"
msgstr "Felder für Standort"

#: kitconcept/intranet/behaviors/configure.zcml:39
#: kitconcept/intranet/behaviors/configure.zcml:33
msgid "Fields for Organisational Unit"
msgstr "Felder für Organisationseinheit"

Expand All @@ -77,12 +105,24 @@ msgstr "Öffentlicher Intranet-Workflow"
msgid "Intranet Restricted Workflow"
msgstr "Intranet-beschränkter Workflow"

#: kitconcept/intranet/controlpanels/intranet.py:39
#: kitconcept/intranet/controlpanels/intranet.py:57
msgid "Intranet Settings"
msgstr "Intranet-Einstellungen"

#: kitconcept/intranet/behaviors/configure.zcml:29
#: kitconcept/intranet/behaviors/location.py:19
#: kitconcept/intranet/behaviors/configure.zcml:48
msgid "Intranet-specific Person fields"
msgstr "Intranet-spezifische Personenfelder"

#: kitconcept/intranet/behaviors/person.py:20
msgid "Job Title"
msgstr "Berufsbezeichnung"

#: kitconcept/intranet/behaviors/configure.zcml:40
msgid "Lifecycle Management fields"
msgstr ""

#: kitconcept/intranet/behaviors/configure.zcml:26
#: kitconcept/intranet/behaviors/location.py:16
#: kitconcept/intranet/profiles/default/types/Location.xml
msgid "Location"
msgstr "Standort"
Expand All @@ -97,8 +137,8 @@ msgstr "Mitglied zieht Einreichung zurück"
msgid "Member submits content for publication"
msgstr "Mitglied reicht Inhalte zur Veröffentlichung ein"

#: kitconcept/intranet/behaviors/configure.zcml:39
#: kitconcept/intranet/behaviors/organisational_unit.py:20
#: kitconcept/intranet/behaviors/configure.zcml:33
#: kitconcept/intranet/behaviors/organisational_unit.py:16
#: kitconcept/intranet/profiles/default/types/Organisational_Unit.xml
msgid "Organisational Unit"
msgstr "Organisationseinheit"
Expand All @@ -108,10 +148,22 @@ msgstr "Organisationseinheit"
msgid "Pending review"
msgstr "In Bearbeitung"

#: kitconcept/intranet/controlpanels/intranet.py:26
#: kitconcept/intranet/controlpanels/intranet.py:39
msgid "Person Picture Aspect Ratio"
msgstr ""

#: kitconcept/intranet/controlpanels/intranet.py:28
msgid "Placeholder text for the search field."
msgstr "Platzhaltertext für das Suchfeld."

#: kitconcept/intranet/behaviors/person.py:27
msgid "Please input the department of the person."
msgstr "Bitte geben Sie die Abteilung der Person an."

#: kitconcept/intranet/behaviors/person.py:21
msgid "Please input the job title of the person."
msgstr "Bitte geben Sie die Berufsbezeichnung der Person an."

#: kitconcept/intranet/profiles.zcml:14
msgid "Policy package to install our site"
msgstr "Paket mit Richtlinien zur Installation unserer Website"
Expand All @@ -121,6 +173,14 @@ msgstr "Paket mit Richtlinien zur Installation unserer Website"
msgid "Private"
msgstr "Privat"

#: kitconcept/intranet/vocabularies/person.py:16
msgid "Prof."
msgstr "Prof."

#: kitconcept/intranet/vocabularies/person.py:18
msgid "Prof. Dr."
msgstr "Prof. Dr."

#: kitconcept/intranet/profiles/default/workflows/simple_intranet_workflow/definition.xml
#: kitconcept/intranet/profiles/restricted/workflows/simple_intranet_workflow/definition.xml
msgid "Publish"
Expand Down Expand Up @@ -156,7 +216,7 @@ msgstr "Der Prüfer veröffentlicht Inhalte."
msgid "Reviewer sends content back for re-drafting"
msgstr "Der Prüfer sendet den Inhalt zur Überarbeitung zurück."

#: kitconcept/intranet/controlpanels/intranet.py:25
#: kitconcept/intranet/controlpanels/intranet.py:27
msgid "Search Field Placeholder"
msgstr "Suchfeld-Platzhalter"

Expand Down Expand Up @@ -191,7 +251,7 @@ msgstr "Taxonomie"
msgid "Through The Web blocks configuration"
msgstr "Blockkonfiguration durch die Weboberfläche"

#: kitconcept/intranet/controlpanels/intranet.py:20
#: kitconcept/intranet/controlpanels/intranet.py:22
msgid "Used in the intranet header seach bar."
msgstr "Verwendet in der Suchleiste der Intranet-Kopfzeile."

Expand Down Expand Up @@ -223,12 +283,17 @@ msgstr "Konfigurieren Sie einige Aspekte der Standardblockkonfiguration."
msgid "help_organisational_unit"
msgstr "Nach Organisationseinheit filtern"

#. Default: "Image aspect ratio of the person's picture. This setting is used for the person picture on the person profile page, on teasers that point to a person profile page and on listings where persons are displayed."
#: kitconcept/intranet/controlpanels/intranet.py:40
msgid "help_person_picture_aspect_ratio"
msgstr ""

#. Default: "Filter by location"
#: kitconcept/intranet/profiles/default/registry/querystring.xml
msgid "help_place"
msgstr "Nach Standort filtern"

#: kitconcept/intranet/distributions.zcml:16
#: kitconcept/intranet/distributions.zcml:17
msgid "kitconcept Intranet"
msgstr ""

Expand All @@ -244,6 +309,16 @@ msgstr ""
msgid "kitconcept.intranet: Solr Support"
msgstr ""

#. Default: "Authors"
#: kitconcept/intranet/behaviors/lcm.py:53
msgid "label_authors"
msgstr ""

#. Default: "Feedback to"
#: kitconcept/intranet/behaviors/lcm.py:40
msgid "label_feedback_person"
msgstr ""

#. Default: "Organisational Unit"
#: kitconcept/intranet/profiles/default/registry/querystring.xml
msgid "label_organisational_unit"
Expand All @@ -253,3 +328,8 @@ msgstr "Organisationseinheit"
#: kitconcept/intranet/profiles/default/registry/querystring.xml
msgid "label_place"
msgstr "Ort"

#. Default: "Content Owner:"
#: kitconcept/intranet/behaviors/lcm.py:27
msgid "label_responsible"
msgstr ""
Loading