531
edits
(Update package: OSW Base) |
(Update package: OSW Base) |
||
| Line 1: | Line 1: | ||
=={{#switch:{{USERLANGUAGECODE}}|en=Instances|de=Instanzen/Exemplare|#default=Instances}}== | |||
{{#ask: [[{{FULLPAGENAME}}]] | |||
|?HasType={{#switch:{{USERLANGUAGECODE}}|en=Type|de=Typ|#default=Type}} | |||
|?HasDescription={{#switch:{{USERLANGUAGECODE}}|en=Description|de=Beschreibung|#default=Description}} | |||
|?HasManufacturer={{#switch:{{USERLANGUAGECODE}}|en=Manufacturer|de=Hersteller|#default=Manufacturer}} | |||
|?IsLocatedIn={{#switch:{{USERLANGUAGECODE}}|en=Location|de=Standort|#default=Location}} | |||
|?HasResponsiblePerson={{#switch:{{USERLANGUAGECODE}}|en=Responsible Person|de=Verantwortlich|#default=Responsible Person}} | |||
|format=datatable | |||
|limit = 2000 | |||
}} | |||
=={{#switch:{{USERLANGUAGECODE}}|en=Subcategories|de=Subkategorien|#default=Subcategories}}== | |||
{{#ask: | |||
[[SubClassOf::{{FULLPAGENAME}}]] OR | |||
[[SubClassOf.SubClassOf::{{FULLPAGENAME}}]] OR | |||
[[SubClassOf.SubClassOf.SubClassOf::{{FULLPAGENAME}}]] OR | |||
[[SubClassOf.SubClassOf.SubClassOf.SubClassOf::{{FULLPAGENAME}}]] OR [[SubClassOf.SubClassOf.SubClassOf.SubClassOf.SubClassOf::{{FULLPAGENAME}}]] | |||
|?HasDescription={{#switch:{{USERLANGUAGECODE}}|en=Description|de=Beschreibung|#default=Description}} | |||
|?HasManufacturer={{#switch:{{USERLANGUAGECODE}}|en=Manufacturer|de=Hersteller|#default=Manufacturer}} | |||
|format=datatable | |||
|limit = 2000 | |||
}} | |||
== Tutorial == | |||
[[Item:OSW9e3bf8a77562480c83f33d98c33c78e8|{{#switch:{{USERLANGUAGECODE}}|en=Device management|de=Geräteverwaltung|#default=Device management}}]] | |||
<!-- | <!-- | ||
==[[:Category:OSW20691106529a419d829f3d057b99f3e1|Categories]] (Process / Idea Level)== | ==[[:Category:OSW20691106529a419d829f3d057b99f3e1|Categories]] (Process / Idea Level)== | ||
| Line 7: | Line 32: | ||
|format=datatable | |format=datatable | ||
}} | }} | ||
==[[:Category:OSWbeec89bdcbc64d8f90a459ba19c46dcc|Types]] (Manufacturer Level) == | ==[[:Category:OSWbeec89bdcbc64d8f90a459ba19c46dcc|Types]] (Manufacturer Level)== | ||
<div class="pagebot-button" data-config='{ "params": {"categories": ["Category:OSWbeec89bdcbc64d8f90a459ba19c46dcc"]}, "label": "➕ Create Device Type" }'></div> | <div class="pagebot-button" data-config='{ "params": {"categories": ["Category:OSWbeec89bdcbc64d8f90a459ba19c46dcc"]}, "label": "➕ Create Device Type" }'></div> | ||
<br> | <br> | ||
| Line 15: | Line 40: | ||
}} | }} | ||
==[[:Category:OSWf0fe562f422d49c6877490b3dfee2f3f|{{#switch:{{USERLANGUAGECODE}}|en=Instances|de=Instanzen/Exemplare|#default=Instances}}]]== | ==[[:Category:OSWf0fe562f422d49c6877490b3dfee2f3f|{{#switch:{{USERLANGUAGECODE}}|en=Instances|de=Instanzen/Exemplare|#default=Instances}}]]== | ||
| Line 38: | Line 63: | ||
|limit = 2000 | |limit = 2000 | ||
}} | }} | ||
=={{#switch:{{USERLANGUAGECODE}}|en=All Device Categories|de=Alle Gerätekategorien|#default=All Device Categories}} == | =={{#switch:{{USERLANGUAGECODE}}|en=All Device Categories|de=Alle Gerätekategorien|#default=All Device Categories}}== | ||
{{#ask: | {{#ask: | ||
[[SubClassOf::Category:OSWf0fe562f422d49c6877490b3dfee2f3f]] OR | [[SubClassOf::Category:OSWf0fe562f422d49c6877490b3dfee2f3f]] OR | ||
| jsondata | |||
|---|---|---|---|
| Line 1: | Line 1: | ||
{ | { | ||
"subclass_of": [ | |||
"Category:OSWe427aafafbac4262955b9f690a83405d", | |||
"Category:OSW37a57741ae2e4dd4b29b1172b6848be8" | |||
], | |||
"type": [ | |||
"Category:Category" | |||
], | |||
"uuid": "f0fe562f-422d-49c6-8774-90b3dfee2f3f", | |||
"label": [ | |||
{ | |||
"text": "Device", | |||
"lang": "en" | |||
}, | |||
{ | |||
"text": "Gerät", | |||
"lang": "de" | |||
} | |||
], | |||
"description": [ | |||
{ | |||
"text": "A Tool that is a (phyiscal) piece of Hardware.", | |||
"lang": "en" | |||
}, | |||
{ | |||
"text": "Ein Werkzeug, das ein (physisches) Stück Ausrüstung ist.", | |||
"lang": "de" | |||
} | |||
], | |||
"metaclass": [ | |||
"Category:OSWd845b96813a344458f140e48c4d063fd" | |||
], | |||
"name": "Device", | |||
"utf8_icon": [ | |||
"🔬" | |||
], | |||
"attachments": [] | |||
} | } | ||
| jsonschema | |||
| Line 1: | Line 1: | ||
{ | { | ||
"@context": [ | |||
"/wiki/Category:OSWe427aafafbac4262955b9f690a83405d?action=raw\u0026slot=jsonschema", | |||
"/wiki/Category:OSW37a57741ae2e4dd4b29b1172b6848be8?action=raw\u0026slot=jsonschema", | |||
{ | |||
"accessories": { | |||
"@id": "Property:HasAccessories", | |||
"@type": "@id" | |||
}, | |||
"inventory_number": "Property:HasInventoryNumber", | |||
"location": { | |||
"@id": "Property:IsLocatedIn", | |||
"@type": "@id" | |||
}, | |||
"organizational_unit": { | |||
"@id": "Property:HasDepartment", | |||
"@type": "@id" | |||
}, | |||
"organizational_unit*": { | |||
"@id": "Property:HasOu", | |||
"@type": "@id" | |||
}, | |||
"owner": { | |||
"@id": "Property:HasOwner", | |||
"@type": "@id" | |||
}, | |||
"purpose": { | |||
"@id": "Property:HasPurpose", | |||
"@type": "@id" | |||
}, | |||
"responsible_person": { | |||
"@id": "Property:HasResponsiblePerson", | |||
"@type": "@id" | |||
}, | |||
"risk_assessment": { | |||
"@id": "Property:HasRiskAssessment", | |||
"@type": "@id" | |||
}, | |||
"serial_number": "Property:HasSerialNumber", | |||
"typical_processes": { | |||
"@id": "Property:HasTypicalProcess", | |||
"@type": "@id" | |||
} | |||
} | |||
], | |||
"allOf": [ | |||
{ | |||
"$ref": "/wiki/Category:OSWe427aafafbac4262955b9f690a83405d?action=raw\u0026slot=jsonschema" | |||
}, | |||
{ | |||
"$ref": "/wiki/Category:OSW37a57741ae2e4dd4b29b1172b6848be8?action=raw\u0026slot=jsonschema" | |||
} | |||
], | |||
"type": "object", | |||
"uuid": "f0fe562f-422d-49c6-8774-90b3dfee2f3f", | |||
"title": "Device", | |||
"title*": { | |||
"en": "Device", | |||
"de": "Gerät" | |||
}, | |||
"description": "A Tool that is a (phyiscal) piece of Hardware.", | |||
"description*": { | |||
"en": "A Tool that is a (phyiscal) piece of Hardware.", | |||
"de": "Ein Werkzeug, das ein (physisches) Stück Ausrüstung ist." | |||
}, | |||
"required": [ | |||
"type" | |||
], | |||
"defaultProperties": [ | |||
"image", | |||
"responsible_person", | |||
"location", | |||
"inventory_number", | |||
"_device_type_properties" | |||
], | |||
"properties": { | |||
"responsible_person": { | |||
"type": "array", | |||
"title": "Responsible Person", | |||
"title*": { | |||
"de": "Verantwortliche Person(en)" | |||
}, | |||
"items": { | |||
"title": "Responsible Person", | |||
"title*": { | |||
"de": "Verantwortliche Person" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"range": "Category:OSW44deaa5b806d41a2a88594f562b110e9" | |||
} | |||
}, | |||
"location": { | |||
"title": "Location", | |||
"title*": { | |||
"de": "Ort", | |||
"en": "Location" | |||
}, | |||
"type": "array", | |||
"items": { | |||
"title": "Location", | |||
"title*": { | |||
"de": "Ort" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"range": "Category:OSW3d238d05316e45a4ac95a11d7b24e36b" | |||
} | |||
}, | |||
"manufacturer_type_id": { | |||
"type": "string", | |||
"title": "Manufacturer Type ID", | |||
"title*": { | |||
"de": "Hersteller Typen-ID" | |||
}, | |||
"description": "Product ID provided by the manufacturer", | |||
"description*": { | |||
"de": "Produkt-ID des Herstellers." | |||
} | |||
}, | |||
"manufacturer_type_name": { | |||
"type": "string", | |||
"title": "Manufacturer Type Name", | |||
"title*": { | |||
"de": "Hersteller Typenbezeichnung" | |||
}, | |||
"description": "Product name provided by the manufacturer. Often more human friendly than the type id.", | |||
"description*": { | |||
"de": "Produktname des Herstellers. Oftmals ein einfacherer Alias neben der Typen-ID" | |||
} | |||
}, | |||
"typical_processes": { | |||
"title": "Typical Processes", | |||
"title*": { | |||
"de": "Typische Prozesse" | |||
}, | |||
"type": "array", | |||
"items": { | |||
"type": "string", | |||
"format": "autocomplete", | |||
"title": "Process", | |||
"$comment": "range are processes / subcategories of Process", | |||
"subclassof_range": "Category:OSWe5aa96bffb1c4d95be7fbd46142ad203" | |||
}, | |||
"eval_template": [ | |||
{ | |||
"type": "mustache-wikitext", | |||
"mode": "render", | |||
"$comment": "render buttons for each typical process with which an instance for the corresponding process can be created", | |||
"value": "{{#typical_processes}}* [[:{{{.}}}]] \u003Cdiv class=\"pagebot-button\" data-config='{ \"label\": \"➕\", \"params\": {\"categories\": [\"{{{.}}}\"] ,\"jsondata\":{\"tool\":[\"{{=\u003C% %\u003E=}}{{FULLPAGENAME}}\u003C%={{ }}=%\u003E\"]}}}'\u003E\u003C/div\u003E\n{{/typical_processes}}" | |||
} | |||
] | |||
}, | |||
"organizational_unit": { | |||
"type": "array", | |||
"title": "Organizational Unit", | |||
"title*": { | |||
"de": "Organisationseinheit(en)" | |||
}, | |||
"items": { | |||
"title": "Organizational Unit", | |||
"title*": { | |||
"de": "Organisationseinheit" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"range": "Category:OSWb8b6278763d54b0784eea9d3b3d183a4" | |||
} | |||
}, | |||
"inventory_number": { | |||
"title": "Inventory Number", | |||
"title*": { | |||
"de": "Inventarnummer" | |||
}, | |||
"type": "string" | |||
}, | |||
"risk_assessment": { | |||
"title": "Risk Assessment", | |||
"title*": { | |||
"de": "Gefährdungsbeurteilung" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"range": "Category:OSW3886740859ae459588fee73d3bb3c83e" | |||
}, | |||
"serial_number": { | |||
"title": "Serial Number", | |||
"title*": { | |||
"de": "Seriennummer" | |||
}, | |||
"type": "string", | |||
"description": "The Serial Number written on the device" | |||
}, | |||
"owner": { | |||
"title": "Owner", | |||
"title*": { | |||
"de": "Eigentümer" | |||
}, | |||
"type": "string" | |||
}, | |||
"accessories": { | |||
"title": "Accessories", | |||
"title*": { | |||
"de": "Zubehör" | |||
}, | |||
"description": "Things that are used together with this device or replacement parts", | |||
"description*": { | |||
"de": "Dinge, die zusammen mit diesem Gerät benutzt werden oder Ersatzteile" | |||
}, | |||
"type": "array", | |||
"items": { | |||
"title": "Accessory", | |||
"title*": { | |||
"de": "Zubehör" | |||
}, | |||
"type": "string", | |||
"format": "autocomplete", | |||
"range": "Category:Item" | |||
} | |||
}, | |||
"type": { | |||
"default": [ | |||
"Category:OSWf0fe562f422d49c6877490b3dfee2f3f" | |||
] | |||
}, | |||
"_device_type_properties": { | |||
"title": "Information from Type", | |||
"title*": { | |||
"en": "Device type information", | |||
"de": "Informationen des Gerätetyps" | |||
}, | |||
"default": "visible", | |||
"type": "string", | |||
"options": { | |||
"hidden": true | |||
}, | |||
"propertyOrder": 10000, | |||
"eval_template": [ | |||
{ | |||
"type": "mustache-wikitext", | |||
"mode": "render", | |||
"$comment": "information from jsondata slots in class hirarchy", | |||
"value": "{{=\u003C% %\u003E=}} \u003Ctr\u003E\u003Ctd\u003E{{#switch:{{USERLANGUAGECODE}}|en=Manufacturer|de=Hersteller}}\u003C/td\u003E\u003Ctd\u003E{{#ask:[[-HasType::{{FULLPAGENAME}}]][[HasManufacturer::+]]|?HasManufacturer=|format=plain|mainlabel=-}}\u003C/td\u003E \u003C/tr\u003E\u003Ctr\u003E\u003Ctd\u003E{{#switch:{{USERLANGUAGECODE}}|en=Manual|de=Bedienungsanleitung}}\u003C/td\u003E\u003Ctd\u003E{{#ask:[[-HasType::{{FULLPAGENAME}}]]|?HasManual=|format=plain|mainlabel=-}}\u003C/td\u003E \u003C/tr\u003E\u003C%={{ }}=%\u003E" | |||
} | |||
] | |||
} | |||
} | |||
} | } | ||
edits