Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
90e77ae1
Commit
90e77ae1
authored
3 years ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed field (extras instead of dataset)
parent
3de4e768
No related branches found
No related tags found
1 merge request
!12
Verwendung des Musterdatenkatalog und Revert "überflüssige Dateien gelöscht"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/profiles/odsh_dcat_de_profile.py
+2
-1
2 additions, 1 deletion
ckanext/odsh/profiles/odsh_dcat_de_profile.py
with
2 additions
and
1 deletion
ckanext/odsh/profiles/odsh_dcat_de_profile.py
+
2
−
1
View file @
90e77ae1
...
...
@@ -8,6 +8,7 @@ from ckanext.dcat.utils import resource_uri
import
ckanext.dcatde.dataset_utils
as
ds_utils
from
ckanext.dcatde.profiles
import
DCATdeProfile
,
DCATDE
,
DCAT
,
DCATDE_1_0
,
DCATDE_1_0_1
,
DCATDE_1_0_2
import
ckanext.odsh.helpers
as
odsh_helpers
import
ckanext.odsh.helpers_tpsh
as
helpers_tpsh
import
ckanext.odsh.collection.helpers
as
helpers_collection
...
...
@@ -106,7 +107,7 @@ class ODSHDCATdeProfile(DCATdeProfile):
Adds reference (Musterdatenkatalog/Musterdatensatz) extra field to
dcat:references.
'''
sample_dataset_uri
=
resource_dict
.
get
(
'
sample_dataset
'
,
None
)
sample_dataset_uri
=
odsh_helpers
.
odsh_extract_value_from_extras
(
dataset_dict
.
get
(
'
extras
'
),
'
reference
'
)
if
sample_dataset_uri
:
self
.
g
.
set
(
(
dataset_ref
,
DCT
.
references
,
...
...
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