Formular:ARCHIUM FORM hascher object: Unterschied zwischen den Versionen

Aus Denkmalpflege
Wechseln zu:Navigation, Suche
 
(81 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
<!-- ARCHIUM_FORM_hascher_object -->
 
<!-- ARCHIUM_FORM_hascher_object -->
<!-- Version 20200304 -->
+
<!-- Version 20200419 -->
<!--  -->
+
 
 
<!-- 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_hascher_object}}
 
     {{#forminput:form=ARCHIUM_FORM_hascher_object}}
 
</noinclude>
 
</noinclude>
 +
{{ARCHIUM_HIDE_BEGIN}}
 +
 
<includeonly>
 
<includeonly>
    <!-- MAGIC WORDS -->
+
         <!-- ADD FORM-LINK -->
    __NOEDITSECTION__
+
         {{#default_form:ARCHIUM_FORM_hascher_object}}
    __NOTOC__
+
         <!-- MAGIC WORDS -->
{{ARCHIUM_TEMPLATE_hascher_display}}
+
        __NOEDITSECTION__
    <!--  -->
+
         __NOTOC__
    <!-- DEFINE THAT THIS FORM CREATES A NEW OBJECT -->
+
         <!-- EMBED QUERY/DISPLAY TEMPLATE -->
    {{{for template|ARCHIUM_TEMPLATE_hascher_type|label=Typ(Objekt, Literatur, Thema)}}}
+
        {{{for template|ARCHIUM_TEMPLATE_hascher_display}}}
         {{{field|type|mandatory|default=object|hidden}}}
+
             {{{field|type|mandatory|default=object|hidden}}}
    {{{end template}}}
+
         {{{end template}}}
    <!--  -->
 
    <!-- DEFINE FORM FIELDS -->
 
    <!-- define signature input field -->
 
    {{{for template|ARCHIUM_TEMPLATE_hascher_signature|label=Signatur(Objekt)}}}
 
         {{{field|signature
 
            |mandatory
 
            |unique
 
            |input type=combobox
 
            |default={{PAGENAME}}
 
            |placeholder=Pflichteintrag
 
            |cargo table=ARCHIUM_TABLE_hascher_signature
 
            |cargo field=ARCHIUM_PROPERTY_hascher_signature
 
         }}}
 
    {{{end template}}}
 
    <!-- -->
 
    <!-- define title input field -->
 
    {{{for template|ARCHIUM_TEMPLATE_hascher_title|label=Titel(Objekt)}}}
 
         {{{field|title
 
            |mandatory
 
            |input type=combobox
 
            |default={{PAGENAME}}
 
            |placeholder=Pflichteintrag
 
            |cargo table=ARCHIUM_TABLE_hascher_title
 
            |cargo field=ARCHIUM_PROPERTY_hascher_title
 
         }}}
 
    {{{end template}}}
 
    <!-- -->
 
    <!-- define description input field -->
 
    {{{for template|ARCHIUM_TEMPLATE_hascher_description|label=Beschreibung(Objekt)}}}
 
        {{{field|description
 
            |input type=textarea with autocomplete
 
            |default={{PAGENAME}}
 
            |placeholder=Beschreibung
 
            |cargo table=ARCHIUM_TABLE_hascher_description
 
             |cargo field=ARCHIUM_PROPERTY_hascher_description}}}
 
    {{{end template}}}
 
    <!--  -->
 
    <!-- define remark input field -->
 
    {{{for template|ARCHIUM_TEMPLATE_hascher_remark|label=Anmerkungen(Objekt)}}}
 
        {{{field|remark
 
            |input type=textarea with autocomplete
 
            |default={{PAGENAME}}
 
    |placeholder=Anmerkung
 
            |cargo table=ARCHIUM_TABLE_hascher_remark
 
            |cargo field=ARCHIUM_PROPERTY_hascher_remark
 
        }}}
 
    {{{end template}}}
 
    <!-- define date of creation input fields -->
 
    {{{for template|ARCHIUM_TEMPLATE_hascher_date_of_creation|label=Erstellungsdatum(Objekt)}}}
 
        {{{field|date_of_creation
 
            |mandatory
 
            |input type=date
 
            |default=now
 
        }}}
 
    {{{end template}}}
 
    <!-- define timeframe input fields -->
 
    {{{for template|ARCHIUM_TEMPLATE_hascher_timeframe|label=Zeiten(Objekt)}}}
 
         {{{field|date_from
 
            |input type=date
 
            |default=now
 
        }}}
 
        {{{field|date_until
 
            |input type=date
 
            |default=now
 
        }}}
 
    {{{end template}}}
 
  
    <table style="width:100%" "border: 1px solid black">
+
         <!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN -->
        <tr>
+
         {{{for template|ARCHIUM_HIDE_BEGIN}}}
            <th>Datum der Erstellung</th>
+
         {{{end template}}}
            <th>Zeitraum</th>
 
         </tr>
 
         <tr>
 
            <td>Testdatum1</td>
 
            <td>Testzeitraum</td>
 
         </tr>
 
    </table>
 
  
     <div class="archium-grid-container">
+
        <!-- DEFINE THAT THIS FORM CREATES A NEW OBJECT -->
        <div class="archium-grid-item" style="grid-column: 1 / span 2;">
+
        {{{for template|ARCHIUM_TEMPLATE_hascher_type|label=Typ(Objekt, Literatur, Thema)}}}
             ===Identifizierungsfeld===
+
            {{{field|type|mandatory|default=object|hidden}}}
 +
        {{{end template}}}
 +
{{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">
+
         <!-- DEFINE FORM FIELDS -->
             {{{for template|ARCHIUM_TEMPLATE_hascher_signature|multiple}}}
+
        <div class="archium-grid-container-base archium-grid-container-identity">
                {{{field|signature
+
            <h3><i class="far fa-id-card"></i> Identifizierung</h3>
                    |mandatory
+
            <div class="archium-grid-item" style="grid-column: 1 / span 1";>
                     |unique
+
                <h4>Objekttyp:</h4>
                     |input type=combobox
+
                <p>{{#var:type}}</p>
                     |default={{PAGENAME}}
+
             </div>
                     |placeholder=Pflichteintrag
+
            <div class="archium-grid-item" style="grid-column: 2 / span 1";>
                     |cargo table=ARCHIUM_TABLE_hascher_signature
+
                <!-- define signature input field -->
                     |cargo field=ARCHIUM_PROPERTY_hascher_signature
+
                {{{for template|ARCHIUM_TEMPLATE_hascher_signature|label=Signatur(Objekt)}}}
                 }}}
+
                    {{{field|signature
         {{{end template}}}
+
                        |mandatory
 +
                        |unique
 +
                        |input type=combobox
 +
                        |default={{PAGENAME}}
 +
                        |placeholder=Pflichteintrag
 +
                        |cargo table=ARCHIUM_TABLE_hascher_signature
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_signature
 +
                     }}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 3 / span 1";>
 +
                <!-- define title input field -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_title|label=Titel(Objekt)}}}
 +
                     {{{field|title
 +
                        |mandatory
 +
                        |input type=combobox
 +
                        |default={{PAGENAME}}
 +
                        |placeholder=Pflichteintrag
 +
                        |cargo table=ARCHIUM_TABLE_hascher_title
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_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_hascher_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_hascher_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_hascher_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 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;">
 +
                <!-- define creator input fields -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_creator|label=Ersteller(Objekt)}}}
 +
                    {{{field|creator
 +
                        |mandatory
 +
                        |input type=combobox
 +
                        |default=Michael Hascher
 +
                        |placeholder=Pflichteintrag
 +
                        |cargo table=ARCHIUM_TABLE_hascher_creator
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_creator
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 2;">
 +
                <!-- define editor input fields -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_editor|multiple|minimum instances=1|label=Bearbeiter(Objekt)}}}
 +
                     {{{field|editor
 +
                        |mandatory
 +
                        |input type=combobox
 +
                        |default=Michael Hascher
 +
                        |placeholder=Pflichteintrag
 +
                        |cargo table=ARCHIUM_TABLE_hascher_editor
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_editor
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 3;">
 +
                <!-- define history input fields -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_history|label=Bestandsgeschichte(Objekt)}}}
 +
                     {{{field|history
 +
                        |input type=textarea with autocomplete
 +
                        |default=
 +
                        |placeholder=Bestandsgeschichte
 +
                        |cargo table=ARCHIUM_TABLE_hascher_history
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_history
 +
                    }}}
 +
                 {{{end template}}}
 +
            </div>
 +
        </div>
 +
         <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_hascher_topic|label=Thema(Objekt)}}}
 +
                    {{{field|topic
 +
                        |mandatory
 +
                        |input type=combobox
 +
                        |default=
 +
                        |placeholder=Pflichteintrag
 +
                        |cargo table=ARCHIUM_TABLE_hascher_topic
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_topic
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 3 / span 2;">
 +
                <!-- define category input field -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_category|label=Kategorie(Objekt)}}}
 +
                    {{{field|category
 +
                        |mandatory
 +
                        |input type=combobox
 +
                        |default=
 +
                        |cargo table=ARCHIUM_TABLE_hascher_category
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_category
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 5 / span 2;">
 +
                <!-- define sub category input field -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_sub_category|label=Unterkategorie(Objekt)}}}
 +
                    {{{field|sub_category
 +
                        |input type=combobox
 +
                        |default=
 +
                        |cargo table=ARCHIUM_TABLE_hascher_sub_category
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_sub_category
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 1 / span 3;">
 +
                <!-- define description input field -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_description|label=Beschreibung(Objekt)}}}
 +
                    {{{field|description
 +
                        |input type=textarea with autocomplete
 +
                        |default={{PAGENAME}}
 +
                        |placeholder=Beschreibung
 +
                        |cargo table=ARCHIUM_TABLE_hascher_description
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_description}}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 +
                <!-- define remark input field -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_remark|multiple|label=Anmerkungen(Objekt)}}}
 +
                    {{{field|remark
 +
                        |input type=textarea with autocomplete
 +
                        |default={{PAGENAME}}
 +
                        |placeholder=Anmerkung
 +
                        |cargo table=ARCHIUM_TABLE_hascher_remark
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_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">
+
         <div class="archium-grid-container-base archium-grid-container-status">
            {{{for template|ARCHIUM_TEMPLATE_hascher_title|label=Titel(Objekt)}}}
+
            <h3><i class="far fa-chart-bar"></i> Objektstatus</h3>
                {{{field|title
+
            <div class="archium-grid-item" style="grid-column: 1 / span 3;">
                    |mandatory
+
                <!-- define count input field -->
                    |input type=combobox
+
                {{{for template|ARCHIUM_TEMPLATE_hascher_count|label=Anzahl(Objekt)}}}
                    |default={{PAGENAME}}
+
                    {{{field|count
                     |placeholder=Pflichteintrag
+
                        |mandatory
                    |cargo table=ARCHIUM_TABLE_hascher_title
+
                        |input type=combobox
                    |cargo field=ARCHIUM_PROPERTY_hascher_title
+
                        |default=1
                }}}
+
                        |placeholder=Anzahl
        {{{end template}}}
+
                        |cargo table=ARCHIUM_TABLE_hascher_count
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_count
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 +
                <!-- define count input field -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_condition|label=Zustand(Objekt)}}}
 +
                     {{{field|condition
 +
                        |mandatory
 +
                        |input type=textarea with autocomplete
 +
                        |default=
 +
                        |placeholder=Zustand
 +
                        |cargo table=ARCHIUM_TABLE_hascher_condition
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_condition
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 
         </div>
 
         </div>
         <div class="archium-grid-item" style="grid-column: 1 / span 2;">
+
         <div class="archium-grid-container-base archium-grid-container-links">
            {{{for template|ARCHIUM_TEMPLATE_hascher_description|label=Beschreibung(Objekt)}}}
+
            <h3><i class="fas fa-link"></i> Verbindungen</h3>
                 {{{field|description
+
            <div class="archium-grid-item" style="grid-column: 1 / span 3;">
                     |input type=textarea with autocomplete
+
                <!-- define count input field -->
                    |default={{PAGENAME}}
+
                {{{for template|ARCHIUM_TEMPLATE_hascher_link|multiple|label=Verknüpfungen(Objekt)}}}
                     |placeholder=Beschreibung
+
                    {{{field|link
                    |cargo table=ARCHIUM_TABLE_hascher_description
+
                        |input type=combobox
                    |cargo field=ARCHIUM_PROPERTY_hascher_description}}}
+
                        |default=
            {{{end template}}}
+
                        |placeholder=Verknüpfung
 +
                        |cargo table=ARCHIUM_TABLE_hascher_signature
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_signature
 +
                    }}}
 +
                 {{{end template}}}
 +
            </div>
 +
            <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 +
                <!-- define gnd_index input field -->
 +
                {{{for template|ARCHIUM_TEMPLATE_hascher_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_hascher_gnd_index
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_gnd_type
 +
                    }}}
 +
                    {{{field|gnd_number
 +
                        |mandatory
 +
                        |input type=combobox
 +
                        |default=
 +
                        |placeholder=GND-Nummer
 +
                        |cargo table=ARCHIUM_TABLE_hascher_gnd_index
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_gnd_number
 +
                    }}}
 +
                     {{{field|gnd_prefered_name
 +
                        |mandatory
 +
                        |input type=combobox
 +
                        |default=
 +
                        |placeholder=GND-Name
 +
                        |cargo table=ARCHIUM_TABLE_hascher_gnd_index
 +
                        |cargo field=ARCHIUM_PROPERTY_hascher_gnd_prefered_name
 +
                    }}}
 +
                {{{end template}}}
 +
            </div>
 
         </div>
 
         </div>
         <div class="archium-grid-item">4</div>
+
         <div class="archium-grid-container-base archium-grid-container-attachments">
      </div>
+
            <h3><i class="fas fa-paperclip"></i> Anhänge</h3>
 
+
            <div class="archium-grid-item" style="grid-column: 1 / span 6";>
      <div class="archium-grid-container2">
+
                <!-- define attachment input field -->
        <div class="archium-grid-item">
+
                {{{for template|ARCHIUM_TEMPLATE_hascher_attachment|multiple|label=Dateianhänge(Objekt)}}}
            {{{for template|ARCHIUM_TEMPLATE_hascher_date_of_creation|label=Erstellungsdatum(Objekt)}}}
+
                    {{{field|attachment
                {{{field|date_of_creation
+
                        |uploadable
                    |mandatory
+
                     }}}
                     |input type=date
+
                {{{end template}}}
                    |default=now
+
            </div>
                }}}
 
            {{{end template}}}
 
 
         </div>
 
         </div>
        <div class="archium-grid-item">2</div>
+
    </div>
        <div class="archium-grid-item">3</div>
+
<!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN -->
        <div class="archium-grid-item">4</div>
+
{{{for template|ARCHIUM_HIDE_END}}}
      </div>
+
{{{end template}}}
</div>
 
<nowiki/>
 
 
</includeonly>
 
</includeonly>
<!--  -->
+
 
 
<noinclude>
 
<noinclude>
 
     <!-- CALL HOOKS -->
 
     <!-- CALL HOOKS -->
 
     {{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}}
 
     {{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}}
    <!--  -->
+
 
    <!--  -->
 
 
     <!-- LICENSE NOTE -->
 
     <!-- LICENSE NOTE -->
     <!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data -->
+
     <!-- 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 -->
+
     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>
 
</noinclude>

Aktuelle Version vom 28. April 2020, 19:12 Uhr