Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect Project LocalContexts Hub #572

Open
jdeck88 opened this issue Aug 10, 2021 · 0 comments
Open

Connect Project LocalContexts Hub #572

jdeck88 opened this issue Aug 10, 2021 · 0 comments

Comments

@jdeck88
Copy link
Member

jdeck88 commented Aug 10, 2021

GEOME project metadata contains a field called "Local Contexts Hub ID" Field, which stores the project identifier from local contexts Hub (see https://anth-ja77-local-contexts-8985.uc.r.appspot.com/accounts/login/?next=/accounts/dashboard/#). an example of a Local Contexts Hub ID is: f032cb71-4188-4399-acf1-69b016a2ee2f

For projects that have this value set we want to display notices and labels returned from local contexts on the project overview page. The example project we are working with is https://geome-db.org/workbench/project-overview?projectId=62

The service to call for local contexts hub is at https://anth-ja77-local-contexts-8985.uc.r.appspot.com/api/v1/projects/f032cb71-4188-4399-acf1-69b016a2ee2f/?format=json

The return contents will use the img_url field to display the icon and when clicked, open a div/dialog with the default_text attribute. Need to display all notices and labels.

Finally, the service root https://anth-ja77-local-contexts-8985.uc.r.appspot.com/api/v1/ should be specified in the file config/local.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant