Living-lab
From SmartHubs
Messages
"semorg-living-lab-template": "semorg-living-lab", "semorg-living-lab-category": "semorg-living-lab", "semorg-living-lab-form": "semorg-living-lab", "semorg-living-lab-page-name": "Living Labs", "semorg-living-lab-entity-name": "Living Lab", "semorg-form-living-lab-create-title": "Create Living Lab", "semorg-form-living-lab-edit-title": "Edit Living Lab", "semorg-form-living-lab-page-name": "Living Labs", "semorg-form-living-lab-template": "living-lab", "semorg-form-living-lab-rows": "name", "semorg-list-living-lab-headers": "living-lab-name", "semorg-field-living-lab-responsible-partner-name": "Responsible Partner", "semorg-field-living-lab-responsible-partner-parameters": "input type=combobox|values from category=semorg-partner|mapping property=Semorg-partner-name", "semorg-field-living-lab-focus-name": "Focus", "semorg-field-living-lab-focus-parameters": "", "semorg-field-living-lab-country-responsibility-name": "Country Responsibility", "semorg-field-living-lab-country-responsibility-parameters": "", "semorg-field-living-lab-goal-name": "Goal", "semorg-field-living-lab-goal-parameters": "", "semorg-field-living-lab-name-name": "Name", "semorg-field-living-lab-name-parameters": "", "semorg-field-living-lab-editor-name": "Case Study Key Researcher", "semorg-field-living-lab-editor-parameters": "input type=combobx|values from category=semorg-person-user|mapping property=Semorg-person-name", "semorg-field-living-lab-method-name": "Method", "semorg-field-living-lab-method-parameters": "",
Form
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{{info
|create title={{int:semorg-form-living-lab-create-title}}
|edit title={{int:semorg-form-living-lab-edit-title}}<span class="d-none">: <page name></span>
|page name={{int:semorg-form-living-lab-page-name}}/<unique number;start=1>
}}}
{{semorg-form-template|living-lab}}
{{semorg-form-standard-inputs}}
</includeonly>
as embedded:
Use this code, if this is not meant to be a standalone feature but rather a supplement that should be embedded in other forms. Add this line to a form definition that includes a field with the parameter holds template. The second parameter of the semorg-form-template-embed call should be the target field, specified with <feature>[<field>] (e.g. meeting-group[files] or {{int:semorg-meeting-group-template}}[files] to respect template customization).
{{semorg-form-template-embed|living-lab|}}
Category
{{semorg-category}}
Template
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-living-lab-category}}]]{{#semorg-set:living-lab
|responsible-partner={{{responsible-partner|}}}
|focus={{{focus|}}}
|country-responsibility={{{country-responsibility|}}}
|goal={{{goal|}}}
|name={{{name|}}}
|editor={{{editor|}}}
|method={{{method|}}}
}}{{#semorg-detail:living-lab}}{{#semorg-table:living-lab
|responsible-partner={{{responsible-partner|}}}
|focus={{{focus|}}}
|country-responsibility={{{country-responsibility|}}}
|goal={{{goal|}}}
|name={{{name|}}}
|editor={{{editor|}}}
|method={{{method|}}}
}}</includeonly>
Row Template
Template:Semorg-living-lab-row
<noinclude>{{semorg-bundle}}</noinclude><includeonly><tr>
<td>[[{{{target|}}}]]</td>
<td>{{{responsible-partner|}}}</td>
<td>{{{focus|}}}</td>
<td>{{{country-responsibility|}}}</td>
<td>{{{goal|}}}</td>
<td>{{{name|}}}</td>
<td>{{{editor|}}}</td>
<td>{{{method|}}}</td>
{{semorg-showedit
|target={{{target|}}}
}}
</tr></includeonly>
Overview Page Template
Template:Semorg-living-lab-overview
<noinclude>{{semorg-bundle}}</noinclude><includeonly>{{#semorg-list:living-lab
|heading={{int:semorg-living-lab-page-name}}
|formlink={{#semorg-formlink:living-lab}}
|links={{{links|}}}
|query={{{query|}}}
|sort={{{sort|}}}
|order={{{order|}}}
|limit={{{limit|}}}
|filter links={{{filter links|}}}
|filters={{{filters|}}}
|category={{{category|}}}
|headers={{{headers|}}}
|row template={{{row template|}}}
|tableclass={{{tableclass|}}}
|title={{{title|}}}
|sums={{{sums|}}}
|csv={{{csv|}}}
|default={{{default|}}}
|returnto={{{returnto|}}}
|help={{{help|}}}
}}</includeonly>
Overview Page
{{semorg-living-lab-overview}}
Property Registration
Add the following line to LocalSettings.php:
$wgSemorgAdditionalProperties['living-lab'] = [ "id" => "LLB","fields" => ["responsible-partner" => [ "id" => "RP","type" => "wpg" ],"focus" => [ "id" => "FO","type" => "txt" ],"country-responsibility" => [ "id" => "CR","type" => "txt" ],"goal" => [ "id" => "GO","type" => "txt" ],"name" => [ "id" => "NA","type" => "txt" ],"editor" => [ "id" => "ED","type" => "wpg" ],"method" => [ "id" => "ME","type" => "txt" ], ] ];