diff --git a/designsafe/apps/api/urls.py b/designsafe/apps/api/urls.py index 11bdf4f5cc..7af0b1dc91 100644 --- a/designsafe/apps/api/urls.py +++ b/designsafe/apps/api/urls.py @@ -14,7 +14,7 @@ namespace='ds_projects_api')), url(r'^datafiles/', include('designsafe.apps.api.datafiles.urls')), - # url(r'^publications/', include('designsafe.apps.api.publications.urls')), + url(r'^publications/', include('designsafe.apps.api.publications.urls')), url(r'^filemeta/', include('designsafe.apps.api.filemeta.urls')), diff --git a/designsafe/apps/data/views/base.py b/designsafe/apps/data/views/base.py index e55406bfb0..c46ce67a88 100644 --- a/designsafe/apps/data/views/base.py +++ b/designsafe/apps/data/views/base.py @@ -235,8 +235,8 @@ def get_context_data(self, **kwargs): context['simulations'] = getattr(pub, 'simulations', []) context['hybrid_simulations'] = getattr(pub, 'hybrid_simulations',[]) - proj = ProjectsManager(service_account()).get_project_by_id(pub.projectId) try: + proj = ProjectsManager(service_account()).get_project_by_id(pub.projectId) context['dc_json'] = json.dumps(proj.to_dataset_json()) except Exception: # If we can't generate DataCite JSON, render the page without meta tags.