kitodo / kitodo-production

Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite.
http://www.kitodo.org/software/kitodoproduction/
GNU General Public License v3.0
63 stars 62 forks source link

Empty line in drop down menu #4050

Closed andre-hohmann closed 3 years ago

andre-hohmann commented 3 years ago

Problem

In the drop down menus for creation pf the process, in some cases, empty lines are contained. In HTML, it looks like:

Solution

The empty line should not be contained and the preset value should be "Keine Auswahl", except if:

Examples

Configuration ruleset

        <key id="slub_ownerOrig">
            <label>owner of source (corporation)</label>
            <label lang="de">Besitzer der Vorlage (Körperschaft)</label>
            <option value="Bach-Archiv Leipzig"/><!-- DE-L326 -->
            <option value="Christian-Weise-Bibliothek Zittau"/><!-- DE-124 -->
            <option value="Deutsches Stuhlbaumuseum Rabenau"/><!-- DE-MUS-859718 -->
            <option value="Ev.-Luth. Kirchgemeinde Pirna"/><!-- keine ISIL vorhanden -->
            .....
        </key>
        ....
        <key id="slub_script">
            <label>Script Type</label>
            <label lang="de">Schrifttyp</label>
            <option value="Fraktur">
                <label>Fraktur</label>
            </option>
            <option value="Antiqua">
                <label>Antiqua</label>
            </option>
            <option value="keine_OCR">
                <label>keine OCR</label>
            </option>
        </key>
        ....
        <key id="LegalNoteAndTermsOfUse">
            <label>legal note / terms of use</label>
            <label lang="de">Rechtehinweis / Nutzungshinweis</label>
            <option value="CC01.0"><label>CC0 1.0</label></option>
            <option value="CCBYSA4.0"><label>CC BY-SA 4.0</label></option>
            <option value="FZRV1.0INC1.0"><label>Freier Zugang - Rechte vorbehalten + Urheberrechtsschutz 1.0</label></option>
            <option value="FZRV1.0"><label>Freier Zugang - Rechte vorbehalten 1.0</label></option>
            <option value="INC1.0"><label>In Copyright 1.0</label></option>
            <option value="PDM1.0"><label>PDM 1.0</label></option>
            <option value="TODR1.0"><label>Totengedenkbuch Dresden 1.0</label></option>
            <option value="VW1.0"><label>Vergriffene Werke 1.0</label></option>
        </key>

Empty line in the list.

dropdown01

Missing text: "Keine Auswahl"

dropdown02

Text: "Keine Auswahl"

dropdown03

Text: "Keine Auswahl"

dropdown04

matthias-ronge commented 3 years ago

A single-select-type metadata which is optional has two non-selection options, one added by the frontend (labelled “no selection”) and one generated by the ruleset management (empty).

2x

Goal: Empty entry should be removed.