Skip to content

Commit 983e99e

Browse files
first version of "add"-mechanism
1 parent de125e6 commit 983e99e

File tree

4 files changed

+278
-34
lines changed

4 files changed

+278
-34
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ As defined in `manifest.master.yml` this datatype can be configured:
2828
* which "vocabulary_name" to use. List of Vocabularys [in DANTE](https://dante.gbv.de/search?ot=vocabulary) or [as JSKOS via API](https://api.dante.gbv.de/voc) or [uri.gbv.de/terminology](http://uri.gbv.de/terminology/)
2929
* for the popup-modes multible vocabularys can be set as a "|"-splitted list
3030
* which mapbox-access-token to use
31+
* add new: allow
32+
* add new: target vocabulary for new records
33+
* add new: username for adding
34+
* add new: token for adding
3135

3236
### Mask options
3337

l10n/custom-data-type-dante.csv

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,31 @@ custom.data.type.dante.config.parameter.schema.insert_allowed.value.label,Neu an
8383
custom.data.type.dante.config.parameter.schema.insert_allowed.value.checkbox, Die Neuanlage von Datensätzen über das DANTE-Plugin erlauben (nicht im Dropdown-Modus möglich),Allow adding records via the DANTE plugin (not possible in dropdown-mode)
8484
custom.data.type.dante.config.parameter.schema.insert_username.value.label,Nutzername für das Neuanlegen (DANTE-Vokabular-Konfiguration),Username for adding (from DANTE vocabulary configuration)
8585
custom.data.type.dante.config.parameter.schema.insert_token.value.label,Token für das Neuanlegen (DANTE-Vokabular-Konfiguration),Token for adding (from DANTE vocabulary configuration)
86+
custom.data.type.dante.config.parameter.schema.insert_voc_notation.value.label,Zielvokabular für Neuanlagen,Target vocabulary for new records
8687
custom.data.type.commons.controls.addnew.label,Neu anlegen,add new
8788
custom.data.type.dante.config.parameter.mask.use_dropdown_info_popup.value.label,Infopopup?,Infopopup?
8889
custom.data.type.dante.config.parameter.mask.use_dropdown_info_popup.value.checkbox,Auch für Dropdown anzeigen,Show for dropdown too
8990
custom.data.type.dante.config.parameter.mask.vocabulary_name_overwrite.value.label,Vokabularkonfiguration aus Schema überschreiben,Overwrite vocnotation-config from schema
91+
custom.data.type.dante.add_new.modal.header_left,Datensatz neu anlegen,Create new record
92+
custom.data.type.dante.add_new.modal.header_right,Vokabular,Vocabulary
93+
custom.data.type.dante.add_new.modal.introtext,"Sie können hier neue Datensätze für das oben rechts angezeigte Vokabular anlegen.\n\nDie Redaktion des Vokabulars wird über den neuen Datensatz benachrichtigt und wird diesen ggf. bearbeiten oder verfeinern.\n\nDer neue Datensatz kann nach Anlage direkt hier verwendet werden.","You can create new data records here for the vocabulary displayed at the top right.\n\nThe editors of the vocabulary will be notified of the new data record and will edit or refine it if necessary.\n\nThe new data record can be used directly here after it has been created. "
94+
custom.data.type.dante.add_new.modal.show_form,Formular anzeigen,Show form
95+
custom.data.type.dante.add_new.modal.ok_send_button,Sende neuen Datensatz,Send new record
96+
custom.data.type.dante.add_new.modal.cancel_button,Abbrechen,Cancel
97+
custom.data.type.dante.add_new.modal.form.preflabel,Bevorzugte Bezeichnung,Preferred Label
98+
custom.data.type.dante.add_new.modal.form.preflabel.hint,"Die bevorzugte Bezeichnung des Konzepts, der Person oder des Ortes","The preferred name of the concept, person or place"
99+
custom.data.type.dante.add_new.modal.form.altlabel,Alternative Bezeichnung,Alternative Label
100+
custom.data.type.dante.add_new.modal.form.altlabel2,Alternative Bezeichnung (weitere),Alternative Label (another one)
101+
custom.data.type.dante.add_new.modal.form.definition,Definition,Definition
102+
custom.data.type.commons.controls.addnew.new_record_message,"Der Datensatz mit der URI **%(uri)s** wurde erfolgreich neu angelegt! \n\n Soll der Datensatz direkt in dieses Feld übernommen werden?","The data record with the URI **%(uri)s** was successfully created! \n\n Should the data record be copied directly into this field?"
103+
custom.data.type.dante.add_new.modal.form.example,Beispiel,Example
104+
custom.data.type.commons.controls.addnew.error_while_ingest,"Bei der Übertragung ist leider ein Fehler aufgetreten. \n\n Die Fehlermeldung lautet: \n\n %(error)s \n\n Probieren Sie es noch einmal und kontaktieren Sie ggf. Ihren Administrator.","Unfortunately an error occurred during the transfer. \n\n The errormessage is: \n\n %(error)s \n\n Please try again and contact your administrator if necessary."
105+
custom.data.type.commons.controls.addnew.sending,Sende Datensatz,Sending record
106+
custom.data.type.commons.controls.addnew.no_preflabel_given,Fehlendes Pflichtfeld: Bevorzugte Bezeichnung,Missing mandatory field: Preferred name
107+
custom.data.type.dante.add_new.modal.form.note,Anmerkung,Note
108+
custom.data.type.dante.add_new.modal.form.note.hint,Hier können alle weiteren bekannten und hilfreichen Informationen vermerkt werden.,All other known and helpful information can be noted here.
109+
custom.data.type.commons.controls.addnew.new_record_title,Neuer Datensatz,New record
110+
custom.data.type.commons.controls.addnew.new_record_not_take_over,"Nein, danke","No, thanks"
111+
custom.data.type.commons.controls.addnew.new_record_take_over,Datensatz direkt übernehmen,Select new record directly
112+
server.right.system.plugin.custom-data-type-dante.dante_plugin,DANTE-Plugin,DANTE-Plugin
113+
server.right.system.plugin.custom-data-type-dante.dante_plugin.parm.dante_allow_add_records,Das Hinzufügen von Datensätzen erlauben?,Allow to add new records?

manifest.master.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ custom_types:
5252
parameters:
5353
value:
5454
type: text
55+
- name: insert_allowed
56+
parameters:
57+
value:
58+
type: bool
59+
- name: insert_voc_notation
60+
parameters:
61+
value:
62+
type: text
63+
- name: insert_username
64+
parameters:
65+
value:
66+
type: text
67+
- name: insert_token
68+
parameters:
69+
value:
70+
type: text
5571
mask:
5672
- name: editor_style
5773
parameters:
@@ -99,3 +115,9 @@ base_config:
99115
type: text
100116
default: 'de'
101117
position: 1
118+
119+
system_rights:
120+
- name: dante_plugin
121+
parameters:
122+
- name: dante_allow_add_records
123+
type: bool

0 commit comments

Comments
 (0)