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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
7dea78e7
Commit
7dea78e7
authored
2 years ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
More named route fixes
parent
6322ba83
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!41
Version 2.0.0
,
!38
Merge py3 into dev
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/helpers.py
+1
-1
1 addition, 1 deletion
ckanext/odsh/helpers.py
ckanext/odsh/profiles/odsh_dcat_de_profile.py
+1
-1
1 addition, 1 deletion
ckanext/odsh/profiles/odsh_dcat_de_profile.py
with
2 additions
and
2 deletions
ckanext/odsh/helpers.py
+
1
−
1
View file @
7dea78e7
...
...
@@ -428,7 +428,7 @@ def get_package_dict(name):
def
tpsh_get_successor_and_predecessor_urls
(
context
,
pkg_dict
):
successor_name
,
predecessor_name
=
tpsh_get_successor_and_predecessor_dataset
(
context
,
pkg_dict
)
successor_url
,
predecessor_url
=
(
helpers
.
url_for
(
named_route
=
'
dataset.read
'
,
id
=
name
)
helpers
.
url_for
(
'
dataset.read
'
,
id
=
name
)
if
name
is
not
None
else
None
for
name
in
(
successor_name
,
predecessor_name
)
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/profiles/odsh_dcat_de_profile.py
+
1
−
1
View file @
7dea78e7
...
...
@@ -192,7 +192,7 @@ class ODSHDCATdeProfile(DCATdeProfile):
@staticmethod
def
_construct_refs
(
id
):
public_url
=
config
.
get
(
'
ckan.site_url
'
)
url_to_id
=
helpers
.
url_for
(
named_route
=
'
dataset.read
'
,
id
=
id
)
url_to_id
=
helpers
.
url_for
(
'
dataset.read
'
,
id
=
id
)
ref
=
public_url
+
url_to_id
return
ref
...
...
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