Estonian Data Portal (ATV)
Estonian Data Portal (ATV) allows user to sync data directly from SelectZero data catalog to ATV with few simple clicks.
Enabling ATV feature
To enable ATV feature, following environment variable needs to be passed to the container:
VARIABLE NAME | VARIABLE VALUE |
|---|---|
ATV_ENABLED | true |
Setting up connection to ATV
When ATV is enabled, new tab can be found under settings called "ATV"
Initially we need to set up credentials to connect with atv
Generating ATV Api key
Log in to ATV portal
Choose your organization

Copy your organization id from URL https://andmed-test.eesti.ee/organization/my-organization/XXXXXXX-XXXX-XXXX-XXXX-XXXXXXX
Press "API settings"

Press "Create new key"

Write down the API key and API key ID from the opened prompt (these will be needed later for the integration)
Adding ATV connection to SelectZero
Preloading ATV custom fields
Press "Sync custom fields"

Confirm the prompt
ATV custom fields will be loaded with options
NB! In case the connection is poorly set up, this process will fail
Creating an ATV mirroring
Adding new dataset in catalog
Start by navigating into data catalog and creating a new dataset for ATV

Fill ATV custom fields

Title EN (ATV) - English title for dataset
Theme (ATV) - dataset theme
Publisher (ATV) - Publisher of given dataset
Description (ATV) - dataset description
Description EN (ATV) - dataset description in english
Included fields (ATV) - Selected fields to include with dataset columns
Save dataset
Open any object you wish to add to the dataset
Assign it to the created dataset

Under the object open the column you wish to send to ATV
Enable "Publish (ATV)" custom field
(You can also do mass edits on "Attributes" page)
Syncing dataset with ATV
Navigate to "Settings" -> "ATV"
Press "Create new mirroring"

Fill required data

Name - Selected name for the mirroring
Mirroring type - ATV object type to send
Dataset - Created dataset which columns you wish to send to ATV
Press "Add"
Syncing dataset fields with ATV
Open mirroring object by clicking on the row
Press "Sync"
After sync fields will be available under ATV dataset
Navigating to ATV
Open mirroring object by clicking on the row
You can navigate to dataset by clicking on its id link

This will open ATV in a new window

