Chapter 6 Customizations

This platform is currently being used within the scope of the European Health Data & Evidence Network (EHDEN) project. To allow the dashboard viewer Django application to be easily used by another project or company, several components support customization in runtime, removing the need to change such things directly on the source code.

To achieve this we make use of Constance that allows configuring several fields which then can be changed through the Django admin app.

Platform Title

All pages of the uploader app use the same base HTML file which contains a header with the platform logo, page title, and platform title.

The first was already mentioned before, the second can’t be changed. The last can be altered using a Constance field.

Uploader Page Texts

The data source creation page has three columns with some text providing some instructions for the creation of a data source and the upload of catalogue results.

The text of these three columns is customizable, where markdown can be used, which is then transformed into HTML before rending the page.

Allow Draft Status Updates

In the section Draft Status of the Processes chapter, it was already explained the concept around draft data sources.

By default, a user can NOT change the data source status on the edit page of a data source, only being allowed to do it through a PATCH request. Changes through the web edit form can be allowed by changing a Constance field.

Them an additional draft field will be available on the edit data source form.