# SDG content

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FqxjAVOsQnDPvMo9tRqpe%2FKazam_screenshot_00098.png?alt=media&#x26;token=8e0aa504-3fca-4e3b-8947-be85f847ca42" alt=""><figcaption><p><mark style="color:blue;">ODS content interface</mark></p></figcaption></figure>

The objective of this recently incorporated interface (2021) is to incorporate the data structure of the Sustainable Development Goals (SDGs) and goals of the 2030 Agenda into the CONSUL DEMOCRACY information architecture.

According to all the methodology developed by the United Nations that accompanies the SDGs, it is essential that the data structure is related to the goals. This is because the relationship with the SDG Indicators and with any other data is based on the corresponding goal. This data architecture is internationally used and is the one that allows a greater degree of interoperability between them. To apply this information architecture in CONSUL DEMOCRACY, a module has been developed that allows adding to all the data models of the system their relationship with the corresponding TARGETS and SDGs.

In the menu on the left, we find these sections:

<mark style="color:blue;">3.6.1 Objectives and Goals:</mark>

In this section, we will find three tabs: "Objectives" where the 17 SDGs of the 2030 Agenda are listed; "Goals", where the different specific goals of each objective are listed, and "Local goals" where the local goals by the institution are listed and added.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FqWA684JqaqfY8kTsRUxi%2FKazam_screenshot_00099.png?alt=media&#x26;token=61ea3c68-6409-4b09-8c46-06e538ec6519" alt=""><figcaption></figcaption></figure>

To create a local goal, click on the "Create local goal" button that appears in the upper right part of the "located goals" tab, which will show us the following screen

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FYEvFg0dGkdaFz3P4W7AN%2FKazam_screenshot_00100.png?alt=media&#x26;token=001e9033-7341-423c-a57a-731374a6a9ac" alt=""><figcaption></figcaption></figure>

The form to add a new Located Goal must be filled out taking into account the following indications.

1. All Localized Goals must be related to a Global Goal.
2. The Localized Target code must follow the related target code followed by “.” and the code you want below. Example: 1.1.3-MAD 2.
3. It must have a title.
4. It must have a description. The Localized Goals can be internationalized, so that it will be possible to register the Localized Goals in different languages

<mark style="color:blue;">3.6.2 SDG home page</mark>

This interface allows you to customize the public page where all the information on the SDGs in the portal is collected and that allows navigation through all the content related to the SDGs.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FJJnDzpshUJIduxyMaf2k%2FKazam_screenshot_00101.png?alt=media&#x26;token=10618e20-a8a2-4c33-b523-2641c18b337a" alt=""><figcaption></figcaption></figure>

To customize this page, according to the needs of each CONSUL DEMOCRACY installation, the following sections are available:

1. SDG header&#x20;
2. phases

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FKuLRQfbLbBX2LnlMQPxr%2FKazam_screenshot_00102.png?alt=media&#x26;token=37d5454e-3429-48f4-b623-56b19ea442ee" alt=""><figcaption></figcaption></figure>

In the ODS header you can create a custom header with the following fields:

* Label (optional)
* &#x20;Qualification
* &#x20;Description
* &#x20;link text
* link URL
* Image

In addition, the header is internationalizable, one can be defined for each language that is defined.

In the Phases section, you can add cards similar to those available on the CONSUL DEMOCRACY main page, associated with 3 phases.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FeV16NqG9Lkg0rJZtJrEb%2FKazam_screenshot_00103.png?alt=media&#x26;token=6cb2774b-3db1-4d8d-839b-0f4b70925e75" alt=""><figcaption></figcaption></figure>

The name of the phases can be modified through the translations file.

The options that the cards allow you to add are the following:

* Label (optional)&#x20;
* Qualification
* Description&#x20;
* link text&#x20;
* link URL&#x20;
* Image

In addition, they are internationalizable, one can be defined for each language of the portal. They can also be adapted by defining columns to be able to customize the page according to the needs of the CONSUL DEMOCRACY installation.

The ODS page will look like this after the content has been added.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FWFgXV8z89y5wV3gGrnS6%2Fscreencapture-demo-consulproject-org-sdg-goals-2023-05-24-14_42_30.png?alt=media&#x26;token=06fdb149-4776-4d99-b5a2-6ba0e33ca4f2" alt=""><figcaption></figcaption></figure>

Users who access the SDG page (/sdg/goals) will be able to navigate by accessing a specific page for each of the SDGs. On each page, you will see the following information:

* The name and icon of each ODS can be translated into each corresponding language of the CONSUL DEMOCRACY installation. There is an automatic translation system that allows the above contents to be translated into other languages when the administrators or users themselves have not done so.&#x20;
* A descriptive text of each SDG. These texts have been adopted from the United Nations portal ([www.un.org/sustainabledevelopment](http://www.un.org/sustainabledevelopment)) or from other sources of the same body and all these texts are translatable.&#x20;
* More active proposals related to the corresponding SDG(s).&#x20;
* More active discussions related to the corresponding SDG(s).&#x20;
* Participatory processes related to the corresponding SDG(s).&#x20;
* The Global Goals corresponding to that SDG.&#x20;
* The Local Targets corresponding to that SDG.

Like other CONSUL DEMOCRACY views, this page can be adapted following the recommendations of the CONSUL DEMOCRACY documentation regarding customization of HTML View Customization.

If you want to modify the HTML of a page you can do it by copying the HTML from app/views and putting it in app/views/custom respecting the subdirectories you find there. For example, if you want to modify app/views/pages/conditions.html you must copy it and modify it in app/views/custom/pages/conditions.html.erb

Each of the content blocks (most active Proposals, most active Debates and Processes) also allows direct access to the general view of each one with the filter corresponding to the SDG being consulted.

These blocks also show other SDGs in case the content is aligned with more than one SDG or Goal.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FrgkDqF9DTjTXYnIBtS9J%2FKazam_screenshot_00105.png?alt=media&#x26;token=fb7ba312-69d9-41a5-94ad-d21bb0695cbf" alt=""><figcaption><p><a href="https://docs.consulproject.org/docs/spanish-documentation/customization/views_and_styles#vistas-html"> https://docs.consulproject.org/docs/spanish-documentation/customization/views_and_styles#vistas-html<br></a></p></figcaption></figure>

The view of the main page of an ODS will be the following:

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FY1XxdJE4TWuvGJiDshcl%2Fscreencapture-demo-consulproject-org-sdg-goals-1-2023-05-24-14_42_57.png?alt=media&#x26;token=60053798-b6a3-40d7-9e91-92ee3df08e5f" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">3.6.3. discussions</mark>

From this management interface, the Administration profile or the profile with the ODS Management role will be able to moderate the content that has been created in this section, aligned with the ODS.

All open discussions on the portal are collected and managed.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FH2VfTizMgtZZtPBegKEJ%2FKazam_screenshot_00106.png?alt=media&#x26;token=175d35c1-a9b0-4e22-bf89-a98702c9e5f2" alt=""><figcaption></figcaption></figure>

All debates that have not been reviewed are classified as Pending. In the All tab there are all, those reviewed and not reviewed, and in the Marked as reviewed tab, there are those that have been reviewed.

From the SDG Administration or Management profile, the SDGs or Goals aligned in each entry can be modified by clicking on the Actions icon and editing the SDGs and/or Goals assigned to each entry.

To facilitate the management, entries can be filtered by SDGs or Goals or search for specific content.

<mark style="color:blue;">3.6.4. proposals</mark>

From this management interface, the Administration profile or the profile with the ODS Management role will be able to moderate the content that has been created in this functionality aligned with the ODS.

From this interface, it will be possible to manage all the proposals created through the CONSUL DEMOCRACY Proposals module.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FFqb1N48YRUOc6hxFCWAm%2FKazam_screenshot_00107.png?alt=media&#x26;token=709f93d7-65b4-484d-a237-c195b715cbdf" alt=""><figcaption></figcaption></figure>

All those that have not been reviewed are classified as Pending. On the All tab are all proposals (reviewed and unreviewed) and on the Marked as reviewed tab are those that have already been reviewed.

From the SDG Administration or Management profile, you can modify the SDGs or Goals aligned in each entry by clicking on the Actions icon and editing the SDGs and/or Goals assigned to each entry.

To facilitate the management, entries can be filtered by SDGs or Goals or search for specific content.

<mark style="color:blue;">3.6.5. voting</mark>

From this management interface, the Administration profile or profile with the ODS Management role will be able to moderate the content that has been created in this functionality aligned with the ODS.

This interface allows you to edit and manage the alignment of the Voting processes.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2F1fpVoLf8Q7S4vJDORlGu%2FKazam_screenshot_00108.png?alt=media&#x26;token=a349329d-1e74-49a8-835d-afb68d3a5b42" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">3.6.6. collaborative legislation</mark>

From this management interface, the Administration profile or the person with the SDG Management role will be able to moderate the content that has been created in this section, aligned with the SDGs.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FpQoH69CYl9HKldy7sS0y%2FKazam_screenshot_00109.png?alt=media&#x26;token=21ef4266-bc45-4e6b-8043-94f1dc4dadc4" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">3.6.7. Proposals within Collaborative Legislation</mark>

From this management interface, the administrator or the person with the SDG Management role will be able to moderate the content that has been created in this section, aligned with the SDGs.

Collaborative legislation includes complex processes that consist of different phases. One of them is the Proposal Phase, a period in which specific proposals to contribute to the Legislative process are compiled. In this interface, it is possible to manage these proposals to modify their alignment with the SDGs.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FgcQpRrdRZR25UI54qtJz%2FKazam_screenshot_00110.png?alt=media&#x26;token=c4923e24-601b-4a3b-9924-58f16e8ec105" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">3.6.8. Participatory Budgets</mark>

From this management interface, the administrator or the person with the SDG Management role will be able to moderate the content that has been created in this section, aligned with the SDGs.

In this case, the spending proposals associated with the Participatory Budgets functionality can be managed from this interface.

<figure><img src="https://656042487-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FET3TtxExOTHGmj6GcJQO%2Fuploads%2FYw62NDD73ioBX2HHA54h%2FKazam_screenshot_00111.png?alt=media&#x26;token=c2422439-eb13-4488-9f43-0cf56f2384d8" alt=""><figcaption></figcaption></figure>

All those that have not been reviewed are classified as Pending. In the All tab there are all the proposals (reviewed and not reviewed) and in the Marked as reviewed tab, there are those that have already been reviewed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.consuldemocracy.org/docs_general/interfaces/sdg-content.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
