Skip to content

Commit

Permalink
Add custom identifier template and update translations for metadata c…
Browse files Browse the repository at this point in the history
…ompletion message
  • Loading branch information
mjanez committed Nov 12, 2024
1 parent 433ea58 commit eba6c0d
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckanext/schemingdcat/assets/css/schemingdcat.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
--sct-secondary-color: #2f88a3;
--sct-secondary-border-color: #00316426;
--sct-secondary-bg-color: #0031641f;
--sct-grey-color: #6c757d;
}

body {
Expand Down Expand Up @@ -3732,4 +3733,8 @@ input#lang-r:checked ~ div .example-r {
right: 0;
top: 60%;
transform: translateY(-40%);
}

.text-muted {
color: var(--sct-grey-color);
}
4 changes: 4 additions & 0 deletions ckanext/schemingdcat/i18n/ckanext-schemingdcat.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,10 @@ msgstr ""
msgid "You are not authorized to change this field. Only a <code>admin</code> can publish a dataset <u>that has already been created</u>."
msgstr ""

#: ckanext/schemingdcat/templates/schemingdcat/form_snippets/custom_identifier.html
msgid "Waiting for Metadata completion..."
msgstr ""

# Themes (NTI-RISP) - Schema field_name: theme_es
msgid "ciencia-tecnologia"
msgstr ""
Expand Down
Binary file modified ckanext/schemingdcat/i18n/en/LC_MESSAGES/ckanext-schemingdcat.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,10 @@ msgstr "None - top level"
msgid "You are not authorized to change this field. Only a <code>admin</code> can publish a dataset <u>that has already been created</u>."
msgstr "You are not authorized to change this field. Only a <code>admin</code> can publish a dataset <u>that has already been created</u>."

#: ckanext/schemingdcat/templates/schemingdcat/form_snippets/custom_identifier.html
msgid "Waiting for Metadata completion..."
msgstr "Waiting for Metadata completion..."

# Themes (NTI-RISP) - Schema field_name: theme_es
msgid "ciencia-tecnologia"
msgstr "Science and technology"
Expand Down
Binary file modified ckanext/schemingdcat/i18n/es/LC_MESSAGES/ckanext-schemingdcat.mo
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,10 @@ msgstr "Ninguna - nivel superior"
msgid "You are not authorized to change this field. Only a <code>admin</code> can publish a dataset <u>that has already been created</u>."
msgstr "No está autorizado a modificar este campo. Solo un <code>administrador</code> puede publicar un conjunto de datos <u>ya creado</u>."

#: ckanext/schemingdcat/templates/schemingdcat/form_snippets/custom_identifier.html
msgid "Waiting for Metadata completion..."
msgstr "Esperando a la finalización del Metadato..."

# Themes (NTI-RISP) - Schema field_name: theme_es
msgid "ciencia-tecnologia"
msgstr "Ciencia y tecnología"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="form-group control-medium control-select">
<label class="form-label" for="{{ for }}">{% if h.scheming_field_required(field) %}<span title="{{ _("This field is required") }}" class="control-required">*</span> {% endif %}{{ h.scheming_language_text(field.label) or _('Custom') }}</label>

<div class="controls form-readonly-control">
{% if data[field.field_name] %}
{{ data[field.field_name] }}
{% else %}
<em class="text-muted">{{ _("Waiting for metadata fields") }}</em>
{% endif %}
</div>

{% snippet 'scheming/form_snippets/help_text.html', field=field %}

</div>

0 comments on commit eba6c0d

Please sign in to comment.