[Feature Request]: Add a direct link to PRISM DMP from the field report layer
ericboucher opened this issue · comments
Provide a clear and concise description of what you want to happen.
When a user selects a field report layer (kobo layer) in Cambodia, admin level data is visualized in the map. When a user clicks on the map, they see a few attributes of the field report which have been configured in layers.json. I want to also provide a direct link to the report directly in the DMP platform (temporarily hosted at https://dmp.ovio.org/).
As an example, the screenshot / mockup in PRISM below shows a flood report on 2023-10-27. When I click on the area, I see details in the tooltip.
- I want to add a link here that says 'Report details' with a new window icon.
- Both the link and icon should open a new window that brings me to the form on DMP (https://dmp.ovio.org/form/FLOOD/496999294).
Is there anything else you can add about the proposal? You might want to link to related issues here, if you haven't already.
I'm not sure if we have a form submission identifier accessible through the PRISM API. If we can add it, we can use that to link to the DMP platform (https://dmp.ovio.org/form/FLOOD/496999294).
If there isn't access to a unique ID, we could instead bring the user to the DMP form search page with the same parameters as the PRISM UI. In this example, we'd pass the admin IDs, report type, and date so you land on https://dmp.ovio.org/forms/search with these fields submitted:
![Screenshot 2023-11-01 at 09 44 13](https://private-user-images.githubusercontent.com/3343536/279741132-0c0a00e7-187d-4f68-8e88-7373ba452588.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNDEzNTAsIm5iZiI6MTcyMjE0MTA1MCwicGF0aCI6Ii8zMzQzNTM2LzI3OTc0MTEzMi0wYzBhMDBlNy0xODdkLTRmNjgtOGU4OC03MzczYmE0NTI1ODgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjhUMDQzMDUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjMwZDY5MGE1ODg5ZDdmYzk2NDljOGY2MDJlOWE4ZDE4MDU0OGEzOTc2NjQyNWFmMWM4N2U1YTFlYmU2MjI4NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.LHNY2PnKBDhQs5cCWdT8tuUMCtq8epU_SnLATkb73oU)