Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Transparenzportal
ckanext-odsh
Commits
a8794a54
Commit
a8794a54
authored
6 years ago
by
Dennis
Browse files
Options
Downloads
Patches
Plain Diff
fixes date for upload. hopefully doesn't break harvesting
parent
3403b4cf
Branches
Branches containing commit
Tags
v1.6
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/plugin.py
+1
-1
1 addition, 1 deletion
ckanext/odsh/plugin.py
ckanext/odsh/templates/package/snippets/package_basic_fields.html
+2
-1
2 additions, 1 deletion
...odsh/templates/package/snippets/package_basic_fields.html
with
3 additions
and
2 deletions
ckanext/odsh/plugin.py
+
1
−
1
View file @
a8794a54
...
...
@@ -146,7 +146,7 @@ def odsh_validate_extra_date(key, field, data, errors, context):
else
:
if
re
.
match
(
r
'
\d\d\d\d-\d\d-\d\d
'
,
value
):
try
:
dt
=
parse
(
value
,
dayfirst
=
True
)
dt
=
parse
(
value
)
_set_value
(
data
,
field
,
dt
.
isoformat
())
return
except
ValueError
:
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/templates/package/snippets/package_basic_fields.html
+
2
−
1
View file @
a8794a54
...
...
@@ -110,7 +110,8 @@ is_required=true,placeholder=_('Enter title')) }}
<!-- field issued -->
{% set field = 'issued' %}
{% set value = h.odsh_extract_value_from_extras(data.extras,field) %}
{% set data_issued = h.odsh_extract_value_from_extras(data.extras,field) %}
{% set value = data_issued.split('T')[0] if data_issued else None %}
{% set error = h.odsh_extract_error(field, errors) %}
<div
class=
"control-group {{ "
error
"
if
error
}}
control-full
"
>
<label
class=
"control-label"
for=
"field-{{field}}"
>
Veröffentlichungsdatum:
<span
title=
"Dieses Feld ist erforderlich"
class=
"control-required"
>
*
</span>
</label>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment