Formular: ARCHIUM FORM thorax object: Unterschied zwischen den Versionen
Aus artux
Artux1zu2>SandroSchwarzentrub |
Artux1zu2>SandroSchwarzentrub |
||
Zeile 1: | Zeile 1: | ||
<!-- ARCHIUM_FORM_thorax_object --> | <!-- ARCHIUM_FORM_thorax_object --> | ||
<!-- Version | <!-- Version 20200515 --> | ||
<!-- This is a form definition for OBJECT-type pages. It provides input fields for | <!-- This is a form definition for OBJECT-type pages. It provides input fields for | ||
signature, title, description, remark. --> | signature, title, description, remark. --> | ||
<noinclude> | <noinclude> | ||
{{#forminput:form=ARCHIUM_FORM_thorax_object}} | |||
</noinclude> | </noinclude> | ||
{{ARCHIUM_HIDE_BEGIN}} | {{ARCHIUM_HIDE_BEGIN}} | ||
<includeonly> | <includeonly> | ||
<!-- ADD FORM-LINK --> | |||
{{#default_form:ARCHIUM_FORM_thorax_object}} | |||
<!-- MAGIC WORDS --> | |||
__NOEDITSECTION__ | |||
__NOTOC__ | |||
<!-- EMBED QUERY/DISPLAY TEMPLATE --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_display}}} | |||
{{{field|type|mandatory|default=object|hidden}}} | |||
{{{end template}}} | |||
<!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN --> | |||
{{{for template|ARCHIUM_HIDE_BEGIN}}} | |||
{{{end template}}} | |||
<!-- DEFINE THAT THIS FORM CREATES A NEW OBJECT --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_type|label=Typ(Objekt, Literatur, Thema)}}} | |||
{{{field|type|mandatory|default=object|hidden}}} | |||
{{{end template}}} | |||
{{ARCHIUM_HIDE_END}} | {{ARCHIUM_HIDE_END}} | ||
<div class="archium-background-Denkmalobjekt"> | |||
<div class="archium-grid-container-base archium-grid-container-header"> | |||
<div class="archium-grid-item-header" style="grid-column: 1 / span 3"> | |||
<h3>Objekt</h3> | |||
</div> | |||
<div class="archium-grid-item-header" style="grid-column: 4 / span 3"> | |||
</div> | |||
</div> | </div> | ||
<div class="archium-grid-item" style="grid-column: | <!-- DEFINE FORM FIELDS --> | ||
<div class="archium-grid-container-base archium-grid-container-identity"> | |||
<h3><i class="far fa-id-card"></i> Identifizierung</h3> | |||
{{{field| | <div class="archium-grid-item" style="grid-column: 1 / span 1";> | ||
|input type= | <h4>Objekttyp:</h4> | ||
<p>{{#var:type}}</p> | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 2 / span 1";> | |||
| | <!-- define signature input field --> | ||
}}} | {{{for template|ARCHIUM_TEMPLATE_thorax_signature|label=Signatur(Objekt)}}} | ||
{{{end template}}} | {{{field|signature | ||
|mandatory | |||
|unique | |||
|input type=combobox | |||
|default={{PAGENAME}} | |||
|placeholder=Pflichteintrag | |||
|cargo table=ARCHIUM_TABLE_thorax_signature | |||
|cargo field=ARCHIUM_PROPERTY_thorax_signature | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 3 / span 1";> | |||
<!-- define title input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_title|label=Titel(Objekt)}}} | |||
{{{field|title | |||
|mandatory | |||
|input type=combobox | |||
|default={{PAGENAME}} | |||
|placeholder=Pflichteintrag | |||
|cargo table=ARCHIUM_TABLE_thorax_title | |||
|cargo field=ARCHIUM_PROPERTY_thorax_title | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3; grid-row: 2 / span 2";> | |||
<!-- define title image input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_title_image|label=Titelbild(Objekt)}}} | |||
{{{field|title_image | |||
|uploadable | |||
|image preview | |||
|default filename={{PAGENAME}}.jpeg | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 1";> | |||
<!-- define date of creation input fields --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_date_of_creation|label=Erstellungsdatum(Objekt)}}} | |||
{{{field|date_of_creation | |||
|mandatory | |||
|input type=date | |||
|default=now | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 2 / span 2;"> | |||
<!-- define timeframe input fields --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_timeframe|multiple|label=Zeiten(Objekt)}}} | |||
<p>von: {{{field|date_from | |||
|input type=date | |||
|default=now}}}</p> | |||
<p>bis: {{{field|date_until | |||
|input type=date}}}</p> | |||
{{{end template}}} | |||
</div> | |||
</div> | </div> | ||
<div class="archium-grid-container-base archium-grid-container-provenance"> | |||
<h3><i class="fas fa-route"></i> Provenienz</h3> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 2;"> | |||
<!-- define creator input fields --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_creator|label=Ersteller(Objekt)}}} | |||
{{{field|creator | |||
|mandatory | |||
|input type=combobox | |||
|default=Thorax-Nutzer | |||
|placeholder=Pflichteintrag | |||
|cargo table=ARCHIUM_TABLE_thorax_creator | |||
|cargo table= | |cargo field=ARCHIUM_PROPERTY_thorax_creator | ||
|cargo field= | }}} | ||
}}} | {{{end template}}} | ||
{{{end template}}} | </div> | ||
<div class="archium-grid-item" style="grid-column: 3 / span 2;"> | |||
<!-- define transferor input fields --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_transferor|label=Übergebender(Objekt)}}} | |||
{{{field|transferor | |||
|input type=combobox | |||
|default=Thorax-Nutzer | |||
|placeholder=Übergebender | |||
|cargo table=ARCHIUM_TABLE_thorax_transferor | |||
|cargo field=ARCHIUM_PROPERTY_thorax_transferor | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 5 / span 2;"> | |||
<!-- define editor input fields --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_editor|multiple|minimum instances=1|label=Bearbeiter(Objekt)}}} | |||
{{{field|editor | |||
|input type=combobox | |||
|default=Thorax-Nutzer | |||
|placeholder=Bearbeiter | |||
|cargo table=ARCHIUM_TABLE_thorax_editor | |||
|cargo field=ARCHIUM_PROPERTY_thorax_editor | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 6;"> | |||
<!-- define history input fields --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_history|label=Bestandsgeschichte(Objekt)}}} | |||
{{{field|history | |||
|input type=textarea with autocomplete | |||
|default= | |||
|placeholder=Bestandsgeschichte | |||
|cargo table=ARCHIUM_TABLE_thorax_history | |||
|cargo field=ARCHIUM_PROPERTY_thorax_history | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
</div> | </div> | ||
<div class="archium-grid-item" style="grid-column: 3 / span 2;"> | <div class="archium-grid-container-base archium-grid-container-contents"> | ||
<h3><i class="fas fa-box-open"></i> Inhalt</h3> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 2;"> | |||
<!-- define topic input field --> | |||
| | {{{for template|ARCHIUM_TEMPLATE_thorax_topic|label=Thema(Objekt)}}} | ||
|input type=combobox | {{{field|topic | ||
|default= | |mandatory | ||
|input type=combobox | |||
|default= | |||
}}} | |placeholder=Pflichteintrag | ||
{{{end template}}} | |cargo table=ARCHIUM_TABLE_thorax_topic | ||
|cargo field=ARCHIUM_PROPERTY_thorax_topic | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 3 / span 2;"> | |||
<!-- define category input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_category|label=Kategorie(Objekt)}}} | |||
{{{field|category | |||
|mandatory | |||
|input type=combobox | |||
|default= | |||
|cargo table=ARCHIUM_TABLE_thorax_category | |||
|cargo field=ARCHIUM_PROPERTY_thorax_category | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 5 / span 2;"> | |||
<!-- define sub category input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_sub_category|label=Unterkategorie(Objekt)}}} | |||
{{{field|sub_category | |||
|input type=combobox | |||
|default= | |||
|cargo table=ARCHIUM_TABLE_thorax_sub_category | |||
|cargo field=ARCHIUM_PROPERTY_thorax_sub_category | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 3;"> | |||
<!-- define description input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_description|label=Beschreibung(Objekt)}}} | |||
{{{field|description | |||
|input type=textarea with autocomplete | |||
|default={{PAGENAME}} | |||
|placeholder=Beschreibung | |||
|cargo table=ARCHIUM_TABLE_thorax_description | |||
|cargo field=ARCHIUM_PROPERTY_thorax_description}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3;"> | |||
<!-- define remark input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_remark|multiple|label=Anmerkungen(Objekt)}}} | |||
{{{field|remark | |||
|input type=textarea with autocomplete | |||
|default={{PAGENAME}} | |||
|placeholder=Anmerkung | |||
|cargo table=ARCHIUM_TABLE_thorax_remark | |||
|cargo field=ARCHIUM_PROPERTY_thorax_remark | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item">3</div> | |||
<div class="archium-grid-item">4</div> | |||
</div> | </div> | ||
<div class="archium-grid-item" style="grid-column: | <div class="archium-grid-container-base archium-grid-container-status"> | ||
<h3><i class="far fa-chart-bar"></i> Objektstatus</h3> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 3;"> | |||
<!-- define count input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_count|label=Anzahl(Objekt)}}} | |||
{{{field|count | |||
|mandatory | |||
|input type=combobox | |||
}}} | |default=1 | ||
{{{end template}}} | |placeholder=Anzahl | ||
|cargo table=ARCHIUM_TABLE_thorax_count | |||
|cargo field=ARCHIUM_PROPERTY_thorax_count | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3;"> | |||
<!-- define count input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_condition|label=Zustand(Objekt)}}} | |||
{{{field|condition | |||
|mandatory | |||
|input type=textarea with autocomplete | |||
|default= | |||
|placeholder=Zustand | |||
|cargo table=ARCHIUM_TABLE_thorax_condition | |||
|cargo field=ARCHIUM_PROPERTY_thorax_condition | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
</div> | </div> | ||
<div class="archium-grid-item" style="grid-column: 1 / span 3;"> | <div class="archium-grid-container-base archium-grid-container-links"> | ||
<h3><i class="fas fa-link"></i> Verbindungen</h3> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 3;"> | |||
{{{field| | <!-- define count input field --> | ||
|input type= | {{{for template|ARCHIUM_TEMPLATE_thorax_link|multiple|label=Verknüpfungen(Objekt)}}} | ||
{{{field|link | |||
|placeholder= | |input type=combobox | ||
|default= | |||
|placeholder=Verknüpfung | |||
|cargo table=ARCHIUM_TABLE_thorax_signature | |||
|cargo field=ARCHIUM_PROPERTY_thorax_signature | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
<div class="archium-grid-item" style="grid-column: 4 / span 3;"> | |||
<!-- define gnd_index input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_gnd_index|multiple|label=GND-Einträge(Objekt)}}} | |||
{{{field|gnd_type | |||
|mandatory | |||
|input type=combobox | |||
|default= | |||
|placeholder=GND-Typ | |||
|existing values only | |||
|values = Name, Ort, Person | |||
|cargo table=ARCHIUM_TABLE_thorax_gnd_index | |||
|cargo field=ARCHIUM_PROPERTY_thorax_gnd_type | |||
}}} | |||
{{{field|gnd_number | |||
|mandatory | |||
|input type=combobox | |||
|default= | |||
|placeholder=GND-Nummer | |||
|cargo table=ARCHIUM_TABLE_thorax_gnd_index | |||
|cargo field=ARCHIUM_PROPERTY_thorax_gnd_number | |||
}}} | |||
{{{field|gnd_prefered_name | |||
|mandatory | |||
|input type=combobox | |||
|default= | |||
|placeholder=GND-Name | |||
|cargo table=ARCHIUM_TABLE_thorax_gnd_index | |||
|cargo field=ARCHIUM_PROPERTY_thorax_gnd_prefered_name | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
</div> | </div> | ||
<div class="archium-grid-item" style="grid-column: | <div class="archium-grid-container-base archium-grid-container-attachments"> | ||
<h3><i class="fas fa-paperclip"></i> Anhänge</h3> | |||
<div class="archium-grid-item" style="grid-column: 1 / span 6";> | |||
<!-- define attachment input field --> | |||
{{{for template|ARCHIUM_TEMPLATE_thorax_attachment|multiple|label=Dateianhänge(Objekt)}}} | |||
{{{field|attachment | |||
|uploadable | |||
}}} | |||
{{{end template}}} | |||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
<!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN --> | |||
{{{for template|ARCHIUM_HIDE_END}}} | |||
{{{end template}}} | |||
</includeonly> | |||
<noinclude> | |||
<!-- CALL HOOKS --> | |||
{{ARCHIUM_TEMPLATE_hook|ARCHIUM_thorax}} | |||
<!-- LICENSE NOTE --> | |||
<!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data | |||
Distributed under the terms of GNU General Public License, | |||
version 2 (GPL-2.0), https://www.gnu.org/licenses/old-licenses/gpl-2.0.html --> | |||
</noinclude> | |||
<!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN --> | |||
{{{for template|ARCHIUM_HIDE_END}}} | |||
{{{end template}}} | |||
</includeonly> | |||
<noinclude> | |||
</noinclude> |
Version vom 15. Mai 2020, 09:11 Uhr