Category:OSWd9aa0bca9b0040d8af6f5c091bf9eec7: Difference between revisions

Update package: OSW Base
(Update package: OSW Base)
 
(Update package: OSW Base)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
=={{#switch:{{USERLANGUAGECODE}}|en=Active users |de=Angestellte Nutzer*innen|#default=Active users}}==


{{#ask: [[{{FULLPAGENAME}}]][[HasEmploymentContractStatus::Item:OSW62770459451644f3841c502df8a5cb1d]]
|?HasOrganization={{#switch: {{USERLANGUAGECODE}} |en=Organization|de=Organisation|#default=Organization}}
|?IsLocatedIn={{#switch: {{USERLANGUAGECODE}} |en=Located at|de=Standort|#default=Located at}}
|?HasEmail={{#switch: {{USERLANGUAGECODE}} |en=Email|de=E-Mail|#default=Email}}
|?HasPhoneNumber={{#switch: {{USERLANGUAGECODE}} |en=Phone |de=Telefon |#default=Phone}}
|format=datatable
|limit=1000
}}
=={{#switch:{{USERLANGUAGECODE}}|en=Inactive users |de=Ausgeschiedene Nutzer*innen|#default=Inactive users}}==
{{#ask: [[{{FULLPAGENAME}}]][[HasEmploymentContractStatus::Item:OSWacf5f4db53264d29ae8744d03796be0b]]
|?HasOrganization={{#switch: {{USERLANGUAGECODE}} |en=Organization|de=Organisation|#default=Organization}}
|?IsLocatedIn={{#switch: {{USERLANGUAGECODE}} |en=Located at|de=Standort|#default=Located at}}
|?HasEmail={{#switch: {{USERLANGUAGECODE}} |en=Email|de=E-Mail|#default=Email}}
|?HasPhoneNumber={{#switch: {{USERLANGUAGECODE}} |en=Phone |de=Telefon |#default=Phone}}
|format=datatable
|limit=1000
}}
== Namespaces ==
for UUID generation via uuid5
* General (same as UUID of the category page): d9aa0bca-9b00-40d8-af6f-5c091bf9eec7
* FhG: c3bd285c-1545-59a6-9183-32bee5aeed41
jsondata
Line 31: Line 31:
         {
         {
             "text": "Eine Person mit Nutzerkennung",
             "text": "Eine Person mit Nutzerkennung",
             "lang": "en"
             "lang": "de"
         }
         }
     ],
     ],
     "name": "User"
     "name": "User",
    "type": [
        "Category:Category"
    ]
}
}
jsonschema
Line 2: Line 2:
     "@context": [
     "@context": [
         {
         {
             "username": "Property:HasUsername",
             "employment_contract_status": {
             "room": "Property:HasRoom",
                "@id": "Property:HasEmploymentContractStatus",
             "abbreviation": "Property:HasAbbreviation",
                "@type": "@id"
             "superior": "Property:HasSuperior"
            },
             "room": {
                "@id": "Property:HasRoom",
                "@type": "@id"
            },
             "superior": {
                "@id": "Property:HasSuperior",
                "@type": "@id"
            },
             "username": {
                "@id": "Property:HasUsername",
                "@type": "xsd:string"
            }
        },
        "/wiki/Category:OSW44deaa5b806d41a2a88594f562b110e9?action=raw\u0026slot=jsonschema"
    ],
    "allOf": [
        {
            "$ref": "/wiki/Category:OSW44deaa5b806d41a2a88594f562b110e9?action=raw\u0026slot=jsonschema"
         }
         }
     ],
     ],
    "title": "User",
    "title*": {
        "de": "Nutzer"
    },
    "type": "object",
    "uuid": "d9aa0bca-9b00-40d8-af6f-5c091bf9eec7",
    "description": "A person who has a user ID.",
    "description*": {
        "de": "Eine Person mit Nutzerkennung"
    },
     "required": [
     "required": [
         "username",
         "username",
         "type"
         "type"
     ],
     ],
     "defaultProperties": [],
     "defaultProperties": [
        "username"
    ],
     "properties": {
     "properties": {
         "username": {
         "username": {
Line 19: Line 49:
                 "de": "Nutzername"
                 "de": "Nutzername"
             },
             },
             "desciption": "Fraunhofer user ID",
             "description": "Organization user ID",
             "description*": {
             "description*": {
                 "de": "Fraunhofer-User-ID"
                 "de": "Organization-User-ID"
             },
             },
             "type": "string"
             "type": "string",
        },
            "eval_template": [
        "abbreviation": {
                {
            "title": "Abbreviation",
                    "type": "mustache-wikitext",
            "title*": {
                    "mode": "render",
                "de": "Kürzel"
                    "$comment": "Displays a link to the system user page, preventing redirect to the user entity page",
            },
                    "value": "{{=\u003C% %\u003E=}} [{{fullurl:User:\u003C%username%\u003E|redirect=no}} \u003C%username%\u003E]"
            "desciption": "Fraunhofer abbreviation",
                }
            "description*": {
             ]
                "de": "Fraunhofer-Kürzel"
            },
             "type": "string"
         },
         },
         "room": {
         "room": {
             "title": "Room",
             "title": "Room(s)",
             "title*": {
             "title*": {
                 "de": "Raum"
                 "de": "Raum"
             },
             },
             "desciption": "Office",
             "description": "Office",
             "description*": {
             "description*": {
                 "de": "Büro"
                 "de": "Büro"
Line 48: Line 75:
             "format": "table",
             "format": "table",
             "items": {
             "items": {
                 "title": "",
                 "title": "Room",
                "title*": {
                    "de": "Raum"
                },
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[HasType::Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]] |?Display_title_of=label",
                 "range": "Category:OSWc5ed0ed1e33c4b31887c67af25a610c1"
                "previewWikiTextTemplate": "[[:{{result.fulltext}}]]",
                "labelTemplate": "{{result.printouts.label.[0]}}"
             },
             },
             "uniqueItems": true,
             "uniqueItems": true
            "minItems": 1,
            "default": [
                ""
            ]
         },
         },
         "superior": {
         "superior": {
             "title": "Superior",
             "title": "Superior(s)",
             "title*": {
             "title*": {
                 "de": "Führungsperson"
                 "de": "Führungsperson(en)"
            },
            "description": "Direct superior(s)",
            "description*": {
                "de": "Direkte Führungsperson(en)"
             },
             },
             "type": "array",
             "type": "array",
             "format": "table",
             "format": "table",
             "items": {
             "items": {
                 "title": "",
                 "title": "Supervisor",
                "title*": {
                    "de": "Führungsperson"
                },
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[HasType::Category:OSWd9aa0bca9b0040d8af6f5c091bf9eec7]] |?Display_title_of=label",
                 "range": "Category:OSWd9aa0bca9b0040d8af6f5c091bf9eec7"
                "previewWikiTextTemplate": "[[:{{result.fulltext}}]]",
                "labelTemplate": "{{result.printouts.label.[0]}}"
             },
             },
             "uniqueItems": true,
             "uniqueItems": true
             "default": [
        },
                 ""
        "employment_contract_status": {
             ]
            "title": "Status of the employment contract",
            "title*": {
                "de": "Status des Arbeitsvertrages"
            },
             "description": "Whether a user has an active employment contract (stil employed) or not",
            "description*": {
                 "de": "Gibt an, ob ein Nutzer einen aktiven Arbeitsvertrag hat (noch beschäftigt ist) oder nicht"
            },
            "type": "string",
            "format": "autocomplete",
             "range": "Category:OSW781ad17c7eef4161ade5a7b690aca6b5",
            "default": "Item:OSW62770459451644f3841c502df8a5cb1d"
         },
         },
         "type": {
         "type": {
Line 86: Line 126:
             ]
             ]
         }
         }
    },
    "type": "object",
    "allOf": [
        {
            "$ref": "/wiki/Category:OSW44deaa5b806d41a2a88594f562b110e9?action=raw\u0026slot=jsonschema"
        }
    ],
    "title": "User",
    "title*": {
        "de": "Nutzer"
     }
     }
}
}
header_template
Line 26: Line 26:
      
      
     {{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[HasResponsiblePerson::{{FULLPAGENAME}}]] | <!--?HasName={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} | -->
     {{#ask: [[Category:OSWc5ed0ed1e33c4b31887c67af25a610c1]][[HasResponsiblePerson::{{FULLPAGENAME}}]] | <!--?HasName={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} | -->
         ?HasRoomFunction={{#switch:{{USERLANGUAGECODE}}|en=Function|de=Funktion}} |
         ?HasRoomUsage={{#switch:{{USERLANGUAGECODE}}|en=Function|de=Funktion}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Room|de=Raum}} |
         format=datatable
         format=table
         }}
         }}
     | }}
     | }}
Line 37: Line 37:
      
      
     {{#ask: [[Category:OSWe427aafafbac4262955b9f690a83405d]][[HasResponsiblePerson::{{FULLPAGENAME}}]] |
     {{#ask: [[Category:OSWe427aafafbac4262955b9f690a83405d]][[HasResponsiblePerson::{{FULLPAGENAME}}]] |
         ?HasPurpose={{#switch:{{USERLANGUAGECODE}}|en=Purpose|de=Verwendungszweck|#default=Purpose}} |
         ?HasType={{#switch:{{USERLANGUAGECODE}}|en=Type|de=Typ|#default=Type}} |
        ?HasType.SubClassOf={{#switch:{{USERLANGUAGECODE}}|en=Category|de=Kategorie|#default=Category}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Tool|de=Werkzeug|#default=Tool}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Tool|de=Werkzeug|#default=Tool}} |
         format=datatable
         format=table
         }}
         }}
     | }}
     | }}
<!-- Personnel responsibility -->
<!-- Personnel responsibility -->
{{#if: {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasSuperior::{{FULLPAGENAME}}]]}} |  
{{#if: {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasSuperior::{{FULLPAGENAME}}]][[HasEmploymentContractStatus::Item:OSW62770459451644f3841c502df8a5cb1d]]}} |


     =={{#switch:{{USERLANGUAGECODE}}|en=Personnel responsibility|de=Personal-Verantwortung}}==
     =={{#switch:{{USERLANGUAGECODE}}|en=Personnel responsibility|de=Personal-Verantwortung}}==
      
      
     {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasSuperior::{{FULLPAGENAME}}]] |
     {{#ask: [[Category:OSW44deaa5b806d41a2a88594f562b110e9]][[HasSuperior::{{FULLPAGENAME}}]] |
         ?HasDepartment={{#switch:{{USERLANGUAGECODE}}|en=Department|de=Abteilung|#default=Department}} |
         ?HasOu={{#switch:{{USERLANGUAGECODE}}|en=Department|de=Abteilung|#default=Department}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Name|de=Name|#default=Name}} |
         mainlabel={{#switch:{{USERLANGUAGECODE}}|en=Name|de=Name|#default=Name}} |
         format=datatable
         format=table
         }}
         }}
     | }}
     | }}
<!-- employment contract status -->
{{#set: HasEmploymentContractStatus={{{employment_contract_status|Item:OSW62770459451644f3841c502df8a5cb1d}}} }}