Formular:ARCHIUM FORM hascher literature: Unterschied zwischen den Versionen

Aus Denkmalpflege
Wechseln zu:Navigation, Suche
 
(18 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<!-- ARCHIUM_TEMPLATE_hascher_display_literature -->
+
<!-- ARCHIUM_FORM_hascher_literature -->
<!-- Version 20200611 -->
+
<!-- Version 20200616 -->
  
<!-- This template queries the underlying cargo database
+
<!-- This is a form definition for LITERATURE-type pages. It provides input fields for
and displays the results in a pleasant way -->
+
    signature, title, description, remark. -->
{{ARCHIUM_HIDE_BEGIN}}
+
    <noinclude>
<!-- load font-awesome files -->
+
        {{#forminput:form=ARCHIUM_FORM_hascher_literature}}
<link href="../fontawesome-free-5.12.1-web/css/all.css" rel="stylesheet">
+
    </noinclude>
 
+
    {{ARCHIUM_HIDE_BEGIN}}
<includeonly>
+
   
    <!-- MAGIC WORDS -->
+
    <includeonly>
    __NOEDITSECTION__
+
        <!-- ADD FORM-LINK -->
    __NOTOC__
+
        {{#default_form:ARCHIUM_FORM_hascher_literature}}
 
+
        <!-- MAGIC WORDS -->
     <!-- ADD FORM-LINK -->
+
        __NOEDITSECTION__
    {{#default_form:ARCHIUM_FORM_hascher_literature}}
+
        __NOTOC__
 
+
        <!-- EMBED QUERY/DISPLAY TEMPLATE -->
     <!-- DEFINE HELPER VARIABLES -->
+
        {{{for template|ARCHIUM_TEMPLATE_hascher_display_literature}}}
    {{#vardefine:pagename|
+
            {{{field|type|mandatory|default=object|hidden}}}
         {{urlencode:{{PAGENAME}}|WIKI}}
+
        {{{end template}}}
     }}
+
      
 
+
        <!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN -->
    <!-- QUERY STUFF AND WRITE RESULTS TO VARIABLES -->
+
        {{{for template|ARCHIUM_HIDE_BEGIN}}}
    <!-- query overview -->
+
        {{{end template}}}
    {{#vardefine:overview|
+
      
        {{#cargo_query:
+
        <!-- DEFINE THAT THIS FORM CREATES A NEW OBJECT -->
            tables    =
+
        {{{for template|ARCHIUM_TEMPLATE_hascher_type|label=Typ(Objekt, Literatur, Thema)}}}
                ARCHIUM_TABLE_hascher_signature  =   Tabelle
+
            {{{field|type|mandatory|default=literature|hidden}}}
                     |fields=_pageName  =  Datenbankeintrag
+
         {{{end template}}}
            |default    = -
+
     {{ARCHIUM_HIDE_END}}
            |format    = dynamic table
+
        <div class="archium-background-Literatur">
        }}
+
            <div class="archium-grid-container-base archium-grid-container-header">
    }}
+
                <div class="archium-grid-item-header" style="grid-column: 1 / span 3">
    <!-- query type -->
+
                     <h3>Literaturobjekt</h3>
    {{#vardefine:type|
+
                </div>
        {{#switch:
+
                <div class="archium-grid-item-header" style="grid-column: 4 / span 3">
             {{#cargo_query:
+
                </div>
                tables    =
+
            </div>
                    ARCHIUM_TABLE_hascher_type
+
             <!-- DEFINE FORM FIELDS -->
                        |fields=ARCHIUM_PROPERTY_hascher_type
+
            <div class="archium-grid-container-base archium-grid-container-identity">
                 |default    = nicht kategorisiertes Objekt
+
                 <h3><i class="far fa-id-card"></i> Identifizierung</h3>
                 |no html
+
                 <div class="archium-grid-item" style="grid-column: 1 / span 1";>
                |where      = "_pageName" = '{{PAGENAME}}'
+
                    <!-- define parent objet input field -->
            }}
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_parent_object|label=Übergeordnetes Objekt(Literatur)}}}
            | object        = Denkmalobjekt
+
                        {{{field|parent
            | literature    = Literatur
+
                            |input type=combobox
            | topic        = Thema
+
                            |default={{PAGENAME}}
        }}
+
                            |placeholder=
    }}
+
                            |cargo table=ARCHIUM_TABLE_hascher_signature
    <!-- query signature -->
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_signature
    {{#vardefine:signature|
+
                        }}}
        {{#cargo_query:
+
                    {{{end template}}}
            tables    =
+
                </div>
                 ARCHIUM_TABLE_hascher_signature
+
                 <div class="archium-grid-item" style="grid-column: 2 / span 1";>
                    |fields=ARCHIUM_PROPERTY_hascher_signature
+
                    <!-- define signature input field -->
            |default    = -
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_signature|label=Signatur(Literatur)}}}
            |no html
+
                        {{{field|signature
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |mandatory
            |format    = template
+
                            |unique
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                            |input type=combobox
        }}
+
                            |default={{PAGENAME}}
    }}
+
                            |placeholder=Pflichteintrag
    <!-- query title -->
+
                            |cargo table=ARCHIUM_TABLE_hascher_signature
    {{#vardefine:title|
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_signature
        {{#cargo_query:
+
                        }}}
            tables    =
+
                    {{{end template}}}
                ARCHIUM_TABLE_hascher_title
+
                </div>
                    |fields=ARCHIUM_PROPERTY_hascher_title
+
                <div class="archium-grid-item" style="grid-column: 3 / span 1";>
            |default   = kein Titel angegeben
+
                    <!-- define title input field -->
            |no html
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_title|label=Titel(Literatur)}}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                        {{{field|title
            |format    = template
+
                            |mandatory
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                            |input type=combobox
        }}
+
                            |default={{PAGENAME}}
    }}
+
                            |placeholder=Pflichteintrag
    <!-- query title image -->
+
                            |cargo table=ARCHIUM_TABLE_hascher_title
    {{#vardefine:title_image|
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_title
        {{#cargo_query:
+
                        }}}
            tables    =
+
                    {{{end template}}}
                ARCHIUM_TABLE_hascher_title_image
+
                </div>
                    |fields=ARCHIUM_PROPERTY_hascher_title_image
+
                <div class="archium-grid-item" style="grid-column: 4 / span 3; grid-row: 2 / span 2";>
            |default   = image_missing.svg
+
                    <!-- define title image input field -->
            |no html
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_title_image|label=Titelbild(Literatur)}}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                        {{{field|title_image
        }}
+
                            |uploadable
    }}
+
                            |image preview
    <!-- query date of creation -->
+
                            |default filename={{PAGENAME}}.jpeg
    {{#vardefine:date_of_creation|
+
                        }}}
        {{#cargo_query:
+
                    {{{end template}}}
            tables    =
+
                </div>
                ARCHIUM_TABLE_hascher_date_of_creation
+
                 <div class="archium-grid-item" style="grid-column: 1 / span 1";>
                    |fields=ARCHIUM_PROPERTY_hascher_date_of_creation
+
                    <!-- define date of creation input fields -->
            |default   = -
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_date_of_creation|label=Erstellungsdatum(Literatur)}}}
            |no html
+
                        {{{field|date_of_creation
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |input type=date
            |format    = template
+
                            |default=now
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                        }}}
        }}
+
                    {{{end template}}}
    }}
+
                </div>
    <!-- query author -->
+
                <div class="archium-grid-item" style="grid-column: 2 / span 1";>
    {{#vardefine:author|
+
                    <!-- define author input fields -->
        {{#cargo_query:
+
                     {{{for template|ARCHIUM_TEMPLATE_hascher_author|multiple|minimum instances=1|label=Autor(en)(Literatur)}}}
            tables    =
+
                        {{{field|author
                 ARCHIUM_TABLE_hascher_author
+
                            |mandatory
                    |fields=ARCHIUM_PROPERTY_hascher_author
+
                            |input type=combobox
            |default    = -
+
                            |default=
            |no html
+
                            |placeholder=Pflichteintrag
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |cargo table=ARCHIUM_TABLE_hascher_author
            |format    = template
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_author
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                        }}}
        }}
+
                    {{{end template}}}
    }}
+
                </div>
    <!-- query date of publication -->
+
                <div class="archium-grid-item" style="grid-column: 3 / span 1";>
    {{#vardefine:date_of_publication|
+
                    <!-- define date_of_publication input fields -->
        {{#cargo_query:
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_date_of_publication|label=Erscheinungsdatum(Literatur)}}}
            tables    =
+
                        {{{field|date_of_publication
                ARCHIUM_TABLE_hascher_date_of_publication
+
                            |mandatory
                    |fields=ARCHIUM_PROPERTY_hascher_date_of_publication
+
                            |input type=date
            |default   = -
+
                            |default=now
            |no html
+
                        }}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                    {{{end template}}}
            |format    = template
+
                </div>
            |template  = ARCHIUM_TEMPLATE_format_ul
+
             </div>
        }}
+
             <div class="archium-grid-container-base archium-grid-container-provenance">
    }}
+
                 <h3><i class="fas fa-route"></i> Provenienz</h3>
    <!-- query creator -->
+
                <div class="archium-grid-item" style="grid-column: 1;">
    {{#vardefine:creator|
+
                    <!-- define creator input fields -->
        {{#cargo_query:
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_creator|label=Ersteller(Literatur)}}}
            tables    =
+
                        {{{field|creator
                ARCHIUM_TABLE_hascher_creator
+
                            |mandatory
                     |fields=ARCHIUM_PROPERTY_hascher_creator
+
                            |input type=combobox
            |default    = -
+
                            |default=Michael Hascher
            |no html
+
                            |placeholder=Pflichteintrag
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |cargo table=ARCHIUM_TABLE_hascher_creator
            |format    = template
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_creator
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                        }}}
        }}
+
                    {{{end template}}}
    }}
+
                </div>
    <!-- query editor -->
+
                <div class="archium-grid-item" style="grid-column: 2;">
    {{#vardefine:editor|
+
                    <!-- define editor input fields -->
        {{#cargo_query:
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_editor|multiple|minimum instances=1|label=Bearbeiter(Literatur)}}}
            tables    =
+
                        {{{field|editor
                ARCHIUM_TABLE_hascher_editor
+
                            |mandatory
                    |fields=ARCHIUM_PROPERTY_hascher_editor
+
                            |input type=combobox
            |default   = -
+
                            |default=Michael Hascher
            |no html
+
                            |placeholder=Pflichteintrag
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |cargo table=ARCHIUM_TABLE_hascher_editor
             |format    = template
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_editor
             |template  = ARCHIUM_TEMPLATE_format_ul
+
                        }}}
        }}
+
                    {{{end template}}}
    }}
+
                </div>
    <!-- query history -->
+
                <div class="archium-grid-item" style="grid-column: 3;">
    {{#vardefine:history|
+
                    <!-- define history input fields -->
        {{#cargo_query:
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_history|label=Bestandsgeschichte(Literatur)}}}
            tables    =
+
                        {{{field|history
                 ARCHIUM_TABLE_hascher_history
+
                            |input type=textarea with autocomplete
                    |fields=ARCHIUM_PROPERTY_hascher_history
+
                            |default=
            |default    = -
+
                            |placeholder=Bestandsgeschichte
            |no html
+
                            |cargo table=ARCHIUM_TABLE_hascher_history
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_history
            |format    = template
+
                        }}}
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                    {{{end template}}}
        }}
+
                </div>
    }}
+
            </div>
    <!-- query topic -->
+
            <div class="archium-grid-container-base archium-grid-container-contents">
    {{#vardefine:topic|
+
                <h3><i class="fas fa-box-open"></i> Inhalt</h3>
        {{#cargo_query:
+
                 <div class="archium-grid-item" style="grid-column: 1 / span 2;">
            tables    =
+
                    <!-- define topic input field -->
                ARCHIUM_TABLE_hascher_topic
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_topic|label=Thema(Literatur)}}}
                    |fields=ARCHIUM_PROPERTY_hascher_topic
+
                        {{{field|topic
            |default   = -
+
                            |mandatory
            |no html
+
                            |input type=combobox
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |default=
            |format    = template
+
                            |placeholder=Pflichteintrag
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                            |cargo table=ARCHIUM_TABLE_hascher_topic
        }}
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_topic
    }}
+
                        }}}
    <!-- query category -->
+
                    {{{end template}}}
    {{#vardefine:category|
+
                </div>
        {{#cargo_query:
+
                <div class="archium-grid-item" style="grid-column: 3 / span 2;">
            tables    =
+
                    <!-- define category input field -->
                ARCHIUM_TABLE_hascher_category
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_category|label=Kategorie(Literatur)}}}
                    |fields=ARCHIUM_PROPERTY_hascher_category
+
                        {{{field|category
            |default   = -
+
                            |mandatory
            |no html
+
                            |input type=combobox
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |default=
            |format    = template
+
                            |cargo table=ARCHIUM_TABLE_hascher_category
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_category
        }}
+
                        }}}
    }}
+
                    {{{end template}}}
    <!-- query sub category -->
+
                </div>
    {{#vardefine:sub_category|
+
                <div class="archium-grid-item" style="grid-column: 5 / span 2;">
        {{#cargo_query:
+
                    <!-- define sub category input field -->
            tables    =
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_sub_category|label=Unterkategorie(Literatur)}}}
                 ARCHIUM_TABLE_hascher_sub_category
+
                        {{{field|sub_category
                    |fields=ARCHIUM_PROPERTY_hascher_sub_category
+
                            |input type=combobox
            |default    = -
+
                            |default=
            |no html
+
                            |cargo table=ARCHIUM_TABLE_hascher_sub_category
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_sub_category
            |format    = template
+
                        }}}
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                    {{{end template}}}
        }}
+
                </div>
    }}
+
                <div class="archium-grid-item" style="grid-column: 1 / span 3;">
    <!-- query description -->
+
                    <!-- define description input field -->
    {{#vardefine:description|
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_description|label=Beschreibung(Literatur)}}}
        {{#cargo_query:
+
                        {{{field|description
            tables    =
+
                            |input type=textarea with autocomplete
                ARCHIUM_TABLE_hascher_description
+
                            |default={{PAGENAME}}
                    |fields=ARCHIUM_PROPERTY_hascher_description
+
                            |placeholder=Beschreibung
            |default   = -
+
                            |cargo table=ARCHIUM_TABLE_hascher_description
            |no html
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_description}}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                    {{{end template}}}
            |format    = template
+
                </div>
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                 <div class="archium-grid-item" style="grid-column: 4 / span 3;">
        }}
+
                    <!-- define remark input field -->
    }}
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_remark|multiple|label=Anmerkungen(Literatur)}}}
    <!-- query remark -->
+
                        {{{field|remark
    {{#vardefine:remark|
+
                            |input type=textarea with autocomplete
        {{#cargo_query:
+
                            |default={{PAGENAME}}
            tables    =
+
                            |placeholder=Anmerkung
                ARCHIUM_TABLE_hascher_remark
+
                            |cargo table=ARCHIUM_TABLE_hascher_remark
                    |fields=ARCHIUM_PROPERTY_hascher_remark
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_remark
            |default   = -
+
                        }}}
            |no html
+
                    {{{end template}}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                </div>
            |format    = template
+
            </div>
            |template  = ARCHIUM_TEMPLATE_format_ul
+
            <div class="archium-grid-container-base archium-grid-container-status">
        }}
+
                <h3><i class="far fa-chart-bar"></i> Literaturstatus</h3>
    }}
+
                 <div class="archium-grid-item" style="grid-column: 1 / span 2;">
    <!-- query publisher -->
+
                    <!-- define publisher input field -->
    {{#vardefine:publisher|
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_publisher|label=Herausgeber(Literatur)}}}
        {{#cargo_query:
+
                        {{{field|publisher
            tables    =
+
                            |input type=combobox
                ARCHIUM_TABLE_hascher_publisher
+
                            |default=
                    |fields=ARCHIUM_PROPERTY_hascher_publisher
+
                            |placeholder=
            |default    = -
+
                            |cargo table=ARCHIUM_TABLE_hascher_publisher
            |no html
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_publisher
            |where      = "_pageName" = '{{PAGENAME}}'
+
                        }}}
            |format    = template
+
                    {{{end template}}}
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                </div>
        }}
+
                 <div class="archium-grid-item" style="grid-column: 3 / span 2;">
    }}
+
                    <!-- define volume input field -->
    <!-- query isbn -->
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_volume|label=Jahrgang(Literatur)}}}
    {{#vardefine:isbn|
+
                        {{{field|volume
        {{#cargo_query:
+
                            |input type=combobox
            tables    =
+
                            |default=
                ARCHIUM_TABLE_hascher_isbn
+
                            |placeholder=
                    |fields=ARCHIUM_PROPERTY_hascher_isbn
+
                            |cargo table=ARCHIUM_TABLE_hascher_volume
            |default   = -
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_volume
            |no html
+
                        }}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                    {{{end template}}}
            |format    = template
+
                </div>
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                <div class="archium-grid-item" style="grid-column: 5 / span 2;">
        }}
+
                    <!-- define form input field -->
    }}
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_form|label=Form(Literatur)}}}
    <!-- query asin -->
+
                        {{{field|form
    {{#vardefine:asin|
+
                            |input type=combobox
        {{#cargo_query:
+
                            |default=Buch
            tables    =
+
                            |placeholder=Form
                 ARCHIUM_TABLE_hascher_asin
+
                            |cargo table=ARCHIUM_TABLE_hascher_form
                    |fields=ARCHIUM_PROPERTY_hascher_asin
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_form
            |default    = -
+
                        }}}
            |no html
+
                    {{{end template}}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                </div>
            |format    = template
+
                <div class="archium-grid-item" style="grid-column: 1 / span 3;">
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                    <!-- define series field -->
        }}
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_series|label=Serie(Literatur)}}}
    }}
+
                        {{{field|series
    <!-- query series -->
+
                            |input type=textarea with autocomplete
    {{#vardefine:series|
+
                            |default=
        {{#cargo_query:
+
                            |placeholder=
            tables    =
+
                            |cargo table=ARCHIUM_TABLE_hascher_series
                ARCHIUM_TABLE_hascher_series
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_series
                    |fields=ARCHIUM_PROPERTY_hascher_series
+
                        }}}
            |default   = -
+
                    {{{end template}}}
            |no html
+
                </div>
            |where      = "_pageName" = '{{PAGENAME}}'
+
                <div class="archium-grid-item" style="grid-column: 4 / span 3;">
            |format    = template
+
                    <!-- define other_information input field -->
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_other_information|label=Zusätzliche Informationen(Literatur)}}}
        }}
+
                        {{{field|other_information
    }}
+
                            |mandatory
    <!-- query volume -->
+
                            |input type=textarea with autocomplete
    {{#vardefine:volume|
+
                            |default=
        {{#cargo_query:
+
                            |placeholder=Zustand
            tables    =
+
                            |cargo table=ARCHIUM_TABLE_hascher_other_information
                 ARCHIUM_TABLE_hascher_volume
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_other_information
                    |fields=ARCHIUM_PROPERTY_hascher_volume
+
                        }}}
            |default    = -
+
                    {{{end template}}}
            |no html
+
                </div>
            |where      = "_pageName" = '{{PAGENAME}}'
+
            </div>
            |format    = template
+
            <div class="archium-grid-container-base archium-grid-container-links">
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                <h3><i class="fas fa-link"></i> Verbindungen</h3>
        }}
+
                 <div class="archium-grid-item" style="grid-column: 1 / span 3;">
    }}
+
                    <!-- define count input field -->
    <!-- query edition -->
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_link|multiple|label=Verknüpfungen(Literatur)}}}
    {{#vardefine:edition|
+
                        {{{field|link
        {{#cargo_query:
+
                            |input type=combobox
            tables    =
+
                            |default=
                ARCHIUM_TABLE_hascher_edition
+
                            |placeholder=Verknüpfung
                    |fields=ARCHIUM_PROPERTY_hascher_edition
+
                            |cargo table=ARCHIUM_TABLE_hascher_signature
            |default    = -
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_signature
            |no html
+
                        }}}
            |where      = "_pageName" = '{{PAGENAME}}'
+
                    {{{end template}}}
            |format    = template
+
                </div>
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                <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(Literatur)}}}
    <!-- query form -->
+
                        {{{field|gnd_type
    {{#vardefine:form|
+
                            |mandatory
        {{#cargo_query:
+
                            |input type=combobox
            tables    =
+
                            |default=
                 ARCHIUM_TABLE_hascher_form
+
                            |placeholder=GND-Typ
                    |fields=ARCHIUM_PROPERTY_hascher_form
+
                            |existing values only
            |default    = -
+
                            |values = Name, Ort, Person
            |no html
+
                            |cargo table=ARCHIUM_TABLE_hascher_gnd_index
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_gnd_type
            |format    = template
+
                        }}}
            |template  = ARCHIUM_TEMPLATE_format_ul
+
                        {{{field|gnd_number
        }}
+
                            |mandatory
    }}
+
                            |input type=combobox
    <!-- query language -->
+
                            |default=
    {{#vardefine:language|
+
                            |placeholder=GND-Nummer
        {{#cargo_query:
+
                            |cargo table=ARCHIUM_TABLE_hascher_gnd_index
            tables    =
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_gnd_number
                ARCHIUM_TABLE_hascher_language
+
                        }}}
                    |fields=ARCHIUM_PROPERTY_hascher_language
+
                        {{{field|gnd_prefered_name
            |default    = -
+
                            |mandatory
            |no html
+
                            |input type=combobox
            |where      = "_pageName" = '{{PAGENAME}}'
+
                            |default=
            |format    = template
+
                            |placeholder=GND-Name
            |template   = ARCHIUM_TEMPLATE_format_ul
+
                            |cargo table=ARCHIUM_TABLE_hascher_gnd_index
        }}
+
                            |cargo field=ARCHIUM_PROPERTY_hascher_gnd_prefered_name
    }}
+
                        }}}
    <!-- query other information -->
+
                    {{{end template}}}
    {{#vardefine:other_information|
 
        {{#cargo_query:
 
            tables    =
 
                ARCHIUM_TABLE_hascher_other_information
 
                    |fields=ARCHIUM_PROPERTY_hascher_other_information
 
            |default   = -
 
            |no html
 
            |where      = "_pageName" = '{{PAGENAME}}'
 
            |format    = template
 
            |template  = ARCHIUM_TEMPLATE_format_ul
 
        }}
 
    }}
 
    <!-- query links -->
 
    {{#vardefine:link|
 
        {{#cargo_query:
 
            tables    =
 
                ARCHIUM_TABLE_hascher_link
 
                    |fields=ARCHIUM_PROPERTY_hascher_link
 
            |default   = -
 
            |no html
 
            |where      = "_pageName" = '{{PAGENAME}}'
 
            |format    = template
 
            |template  = ARCHIUM_TEMPLATE_format_ul
 
        }}
 
    }}
 
    <!-- query backlinks -->
 
    {{#vardefine:backlink|
 
        {{#cargo_query:
 
            tables    =
 
                ARCHIUM_TABLE_hascher_link
 
                    |fields=_pageName
 
            |default   = -
 
            |no html
 
            |where      = "ARCHIUM_PROPERTY_hascher_link" = '{{PAGENAME}}'
 
            |format    = template
 
            |template  = ARCHIUM_TEMPLATE_format_ul
 
        }}
 
    }}
 
    <!-- query gnd-person -->
 
    {{#vardefine:gnd_person|
 
        {{#cargo_query:
 
            tables    =
 
                 ARCHIUM_TABLE_hascher_gnd_index
 
                    |fields=
 
                        ARCHIUM_PROPERTY_hascher_gnd_prefered_name = gnd_prefered_name,
 
                        ARCHIUM_PROPERTY_hascher_gnd_number = gnd_number
 
            |default    = -
 
            |no html
 
            |where      =
 
                "_pageName" = '{{PAGENAME}}' AND "ARCHIUM_PROPERTY_hascher_gnd_type" = 'Person'
 
            |format    = template
 
            |named args = yes
 
            |template  = ARCHIUM_TEMPLATE_format_gnd_entry
 
        }}
 
    }}
 
    <!-- query gnd-location -->
 
    {{#vardefine:gnd_location|
 
        {{#cargo_query:
 
            tables    =
 
                ARCHIUM_TABLE_hascher_gnd_index
 
                    |fields=
 
                        ARCHIUM_PROPERTY_hascher_gnd_prefered_name = gnd_prefered_name,
 
                        ARCHIUM_PROPERTY_hascher_gnd_number = gnd_number
 
            |default    = -
 
            |no html
 
            |where      =
 
                "_pageName" = '{{PAGENAME}}' AND "ARCHIUM_PROPERTY_hascher_gnd_type" = 'Ort'
 
            |format    = template
 
            |named args = yes
 
            |template  = ARCHIUM_TEMPLATE_format_gnd_entry
 
        }}
 
    }}
 
    <!-- query gnd-name -->
 
    {{#vardefine:gnd_name|
 
        {{#cargo_query:
 
            tables    =
 
                ARCHIUM_TABLE_hascher_gnd_index
 
                    |fields=
 
                        ARCHIUM_PROPERTY_hascher_gnd_prefered_name = gnd_prefered_name,
 
                        ARCHIUM_PROPERTY_hascher_gnd_number = gnd_number
 
            |default    = -
 
            |no html
 
            |where      =
 
                "_pageName" = '{{PAGENAME}}' AND "ARCHIUM_PROPERTY_hascher_gnd_type" = 'Name'
 
            |format    = template
 
            |named args = yes
 
            |template  = ARCHIUM_TEMPLATE_format_gnd_entry
 
        }}
 
    }}
 
    <!-- query attachments -->
 
    {{#vardefine:attachment|
 
        {{#cargo_query:
 
            tables    =
 
                ARCHIUM_TABLE_hascher_attachment
 
                    |fields=ARCHIUM_PROPERTY_hascher_attachment = attachment
 
            |default    =
 
            |no html
 
            |where      = "_pageName" = '{{PAGENAME}}'
 
            |format    = template
 
            |named args = yes
 
            |template  = ARCHIUM_TEMPLATE_format_attachment
 
        }}
 
    }}
 
    <!-- query count -->
 
    {{#vardefine:count|
 
        {{#cargo_query:
 
            tables    =
 
                ARCHIUM_TABLE_hascher_count
 
                    |fields=ARCHIUM_PROPERTY_hascher_count
 
            |default    = -
 
            |no html
 
            |where      = "_pageName" = '{{PAGENAME}}'
 
            |format    = template
 
            |template  = ARCHIUM_TEMPLATE_format_ul
 
        }}
 
    }}
 
{{ARCHIUM_HIDE_END}}
 
<div class="archium-background-{{#var:type}}">
 
    <!-- HEADER-CONTAINER -->
 
    <div class="archium-grid-container-base archium-grid-container-header">
 
        <div class="archium-grid-item-header" style="grid-column: 1 / span 2">
 
            <h3>Literaturobjekt</h3>
 
        </div>
 
        <div class="archium-grid-item-header" style="grid-column: 3 / span 2">
 
            <div class="archium-overview">
 
                <h3><i class="fas fa-list"></i> Übersicht</h3>
 
                <div class = "dropdown-list">
 
                    {{#var:overview}}
 
 
                 </div>
 
                 </div>
 
             </div>
 
             </div>
        </div>
+
            <div class="archium-grid-container-base archium-grid-container-attachments">
        <div class="archium-grid-item-header" style="grid-column: 5 / span 1;">
+
                 <h3><i class="fas fa-paperclip"></i> Anhänge</h3>
            <div class="archium-overview">
+
                <div class="archium-grid-item" style="grid-column: 1 / span 6";>
                 <h3> Werkzeuge  [https://denkmalpflege.archium.org/index.php/Formular:ARCHIUM_FORM_hascher_literature <i class="far fa-file"></i>]
+
                    <!-- define attachment input field -->
                                {{#formlink:form=ARCHIUM_FORM_hascher_literature|link text=<i class="far fa-edit"></i>|target={{PAGENAME}}}}
+
                    {{{for template|ARCHIUM_TEMPLATE_hascher_attachment|multiple|label=Anhang(Literatur)}}}
                                {{#formlink:form=ARCHIUM_FORM_hascher_literature|link text=<i class="far fa-clone"></i>|preload={{#var:pagename}}|target={{#var:pagename}}-1}}
+
                        {{{field|attachment
                                [https://denkmalpflege.archium.org/index.php?title={{#var:pagename}}&action=delete <i class="far fa-trash-alt"></i>] 
+
                            |uploadable
                 </h3>
+
                        }}}
 +
                    {{{end template}}}
 +
                 </div>
 
             </div>
 
             </div>
 
         </div>
 
         </div>
     </div>
+
     <!-- WRAP STORE TEMPLATES in div with class ARCHIUM_HIDDEN -->
    <!-- IDENTITY-CONTAINER -->
+
     {{{for template|ARCHIUM_HIDE_END}}}
    <div class="archium-grid-container-base archium-grid-container-identity">
+
     {{{end template}}}
        <div style = "grid-column: 1 / span 3;">
+
     </includeonly>
            <h3><i class="fas fa-id-card"></i> Identifizierung</h3>
+
      
        </div>
+
     <noinclude>
        <div class="archium-grid-item" style="grid-column: 1 / span 1;">
+
         <!-- CALL HOOKS -->
            <h4>Objekttyp:</h4>
+
        {{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}}
            <p>{{#var:type}}</p>
+
      
        </div>
+
        <!-- LICENSE NOTE -->
        <div class="archium-grid-item" style="grid-column: 2 / span 1;">
+
        <!-- https://www.mediawiki.org/wiki/Extension:Cargo/Storing_data
            <h4>Signatur:</h4>
+
        Distributed under the terms of GNU General Public License,
            <p>{{#var:signature}}</p>
+
        version 2 (GPL-2.0), https://www.gnu.org/licenses/old-licenses/gpl-2.0.html -->
        </div>
+
    </noinclude>
        <div class="archium-grid-item" style="grid-column: 3 / span 1;">
 
            <h4>Titel:</h4>
 
            <p>{{#var:title}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 4 / span 3; grid-row: 2 / span 2;">
 
            <h4>Titelbild:</h4>
 
            <p>[[File:{{#var:title_image}}]]</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 1;">
 
            <h4>Erstellungsdatum:</h4>
 
            <p>{{#var:date_of_creation}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 2 / span 1;">
 
            <h4>Autor(en):</h4>
 
            <p>{{#var:author}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 3 / span 1;">
 
            <h4>Erscheinungsdatum:</h4>
 
            <p>{{#var:date_of_publication }}</p>
 
        </div>
 
        <!-- <div class="archium-grid-item" style="grid-column: 2 / span 2;">
 
            <h4>Laufzeiten:</h4>
 
            <p>{{#var:timeframe}}</p>
 
        </div> -->
 
    </div>
 
    <!-- PROVENANCE-CONTAINER -->
 
     <div class="archium-grid-container-base archium-grid-container-provenance">
 
        <div style = "grid-column: 1 / span 3;">
 
            <h3><i class="fas fa-route"></i> Provenienz</h3>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1;">
 
            <h4>Ersteller:</h4>
 
            <p>{{#var:creator}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 2;">
 
            <h4>Bearbeiter:</h4>
 
            <p>{{#var:editor}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 3;">
 
            <h4>Bestandsgeschichte:</h4>
 
            <p>{{#var:history}}</p>
 
        </div>
 
    </div>
 
     <!-- CONTENTS-CONTAINER -->
 
    <div class="archium-grid-container-base archium-grid-container-contents">
 
        <div style = "grid-column: 1 / span 3;">
 
            <h3><i class="fas fa-box-open"></i> Inhalt</h3>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 2;">
 
            <h4>Thema:</h4>
 
            <p>{{#var:topic}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 3 / span 2;">
 
            <h4>Kategorie:</h4>
 
            <p>{{#var:category}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 5 / span 2;">
 
            <h4>Unterkategorie:</h4>
 
            <p>{{#var:sub_category}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 3;">
 
            <h4>Beschreibung:</h4>
 
            <p>{{#var:description}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 
            <h4>Anmerkungen:</h4>
 
            <p>{{#var:remark}}</p>
 
        </div>
 
     </div>
 
     <!-- STATUS-CONTAINER -->
 
     <div class="archium-grid-container-base archium-grid-container-status">
 
        <div style = "grid-column: 1 / span 3;">
 
            <h3><i class="fas fa-chart-bar"></i> Literaturstatus</h3>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 2;">
 
            <h4>Herausgeber:</h4>
 
            <p>{{#var:publisher}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 3 / span 2;">
 
            <h4>Jahrgang:</h4>
 
            <p>{{#var:volume}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 5 / span 2;">
 
            <h4>Form:</h4>
 
            <p>{{#var:form}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 3;">
 
            <h4>Serie:</h4>
 
            <p>{{#var:series}}</p>
 
         </div>
 
        <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 
            <h4>Sonstige Angaben:</h4>
 
            <p>{{#var:other_information}}</p>
 
        </div>
 
    </div>
 
    <!-- LINKS-CONTAINER -->
 
    <div class="archium-grid-container-base archium-grid-container-links">
 
        <div style = "grid-column: 1 / span 3;">
 
            <h3><i class="fas fa-link"></i> Verbindungen</h3>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 2;">
 
            <h4>Personen:</h4>
 
            <p>{{#var:gnd_person}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 3 / span 2;">
 
            <h4>Orte:</h4>
 
            <p>{{#var:gnd_location}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 5 / span 2;">
 
            <h4>Namen:</h4>
 
            <p>{{#var:gnd_name}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 3;">
 
            <h4>Explizite Verknüpfungen:</h4>
 
            <p>{{#var:link}}</p>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 4 / span 3;">
 
            <h4>Rückverweise:</h4>
 
            <p>{{#var:backlink}}</p>
 
        </div>
 
    </div>
 
    <!-- ATTACHMENTS-CONTAINER -->
 
    <div class="archium-grid-container-base archium-grid-container-attachments">
 
        <div style = "grid-column: 1 / span 3;">
 
            <h3><i class="fas fa-paperclip"></i> Anhänge</h3>
 
        </div>
 
        <div class="archium-grid-item" style="grid-column: 1 / span 6;">
 
            <h4>Dateien:</h4>
 
            <p>{{#var:attachment}}</p>
 
        </div>
 
    </div>
 
</div>
 
<nowiki/>
 
</includeonly>
 
<!--  -->
 
<noinclude>
 
    <!-- CALL HOOKS -->
 
    {{ARCHIUM_TEMPLATE_hook|ARCHIUM_hascher}}
 
     <!--  -->
 
    <!--  -->
 
    <!-- 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>
 

Aktuelle Version vom 26. Juni 2020, 10:37 Uhr