Skip to content

Commit

Permalink
Fixes order of fields, adds metadata download. Closes #442
Browse files Browse the repository at this point in the history
  • Loading branch information
drcongo committed Aug 14, 2024
1 parent cdcd7e0 commit 20b5c56
Show file tree
Hide file tree
Showing 9 changed files with 136 additions and 99 deletions.
25 changes: 11 additions & 14 deletions app/assets/_dev/css/pages/map-page.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.find-country, .browse-by-region {
.find-country,
.browse-by-region {
@apply my-8;
}

Expand All @@ -16,7 +17,7 @@

.country-search__form-wrapper {
@apply relative w-4/6 flex;

.btn {
@apply p-1;
}
Expand All @@ -37,7 +38,7 @@
}

&.--no-filters {
background-color: transparent;
background-color: transparent;
@include max-width(lg) {
@apply flex-col;

Expand All @@ -46,7 +47,6 @@
}
}
}

}

.map__country-data-box {
Expand All @@ -63,10 +63,10 @@

.ghost-link {
@apply my-0;
margin-bottom: 10px;
}
}


.map__country-data-header {
@apply flex items-center w-full;
@apply m-0 p-2 font-bold font-body text-16;
Expand All @@ -76,13 +76,12 @@
svg {
@apply mr-4;
* {
stroke: #3C31D5;
stroke: #3c31d5;
}

@include max-width(lg) {
display: none;
}

}

> * {
Expand All @@ -93,8 +92,7 @@
.map__country-data-box.--active {
@apply bg-white;


.map__country-data-header{
.map__country-data-header {
@apply bg-blue-light;
@apply border-2 border-blue-light;
@apply text-black;
Expand All @@ -106,10 +104,9 @@
}
}
}
.country__header-card_row {
.country__header-card_row {
@apply text-black;
}

}

.country__header-card_row {
Expand Down Expand Up @@ -173,8 +170,8 @@
@apply p-2;
}


.map-page__intro, .region-page__intro {
.map-page__intro,
.region-page__intro {
@apply border-b border-black/50;
@apply pb-10;
@apply my-10;
Expand All @@ -197,4 +194,4 @@
@apply bg-blue-light text-blue-medium;
}
}
}
}
10 changes: 10 additions & 0 deletions app/assets/dist/files/metadata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Beneficial ownership register information,Metadata
Country,Name of the country that holds the beneficial ownership register.
Name of register,"Name associated with the sectoral or full-economy beneficial ownership register, either as documented in legislation or as referenced by public authorities. Data does not include subnational registers."
Registrar,The government department that is mandated by the regulation to hold the BO registry.
Type of agency,"Type of government departments that is responsible for maintaining the BO registry. Options include Company registrars, Tax authorities, Financial Intelligence Units, Extractive Industries regulators, among others."
Status,"This field relates to the implementation status of the BO register. Can be one of the following:- Planned: The country has publicly committed to implementing a beneficial ownership register (either sectorial or full-economy), but there is no public evidence that the work has started yet.- Implementing: The country is in the process of setting up the legal and technical systems required for a beneficial ownership register, but the information is not yet being collected. e.g. a bill has been drafted.- Live register: There is a register where beneficial ownership information is being collected and stored. Means of accessing the information may vary among data users."
Access,"Describes which data users have specific and dedicated access provisions to the BOI contained in the register, based on the legislation:- Registrar (only the authority holding the register can access the information)- General public (this implies anyone can access the information in the register. Being accessible to the general public doesn’t prevent the register to impose a fee or to justify a legitimate interest for accessing the information)- Competent authorities (such as Financial Intelligence Units, investigations and prosecutions departments or drug and organised crime agencies)- Obliged entities (i.e. AML-regulated entities)- Non-obliged entities (i.e. all other businesses, regular businesses)- Civil society (non-government organisations according to the definition of each jurisdiction, media outlets, academia, other).- Non-competent authorities (any government agency that doesn’t have an anti-money laundering mandate, such as procurement agencies)- Foreign competent authorities (FIUs or others from a different jurisdiction to the one holding the register)"
Scope,"This field describes the scope of the register, meaning the type of corporate vehicles requested to submit information. Options include:- Full economy (covering corporate vehicles registered in the country, and operating in all the sectors of the economy)- Sectorial (covering corporate vehicles registered in the country, operating in a particular sector of the economy, such as procurement, extractives, land or other). For further information, we recommend to consult the regulation which will specify which type of corporate vehicles are required to disclose their information, and what’s the extent of the register."
Register link,URL with a link to the beneficial ownership register or to a location where further information about how to access beneficial ownership information in a country.
Data structured in BODS,Whether a country has decided to structure their BO data under the Beneficial Ownership Data Standard (BODS).
52 changes: 29 additions & 23 deletions app/config/urls.py
Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@
# 3rd party
from django.conf import settings
from django.urls import path, re_path
from django.conf.urls import include
from django.conf.urls.i18n import i18n_patterns
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.http import HttpResponse
from django.contrib import admin
from django.urls import path, re_path
from wagtail import urls as wagtail_urls
from wagtail.admin import urls as wagtailadmin_urls
from wagtail.contrib.sitemaps.views import sitemap
from wagtail import urls as wagtail_urls
from wagtail.documents import urls as wagtaildocs_urls

from modules.content.views import CountryView, RegionView, SearchView

# Module
from modules.core.views import (
robots, error_400_view, error_403_view, error_404_test, error_404_view, error_500_view
error_400_view,
error_403_view,
error_404_test,
error_404_view,
error_500_view,
robots,
)

from modules.content.views import CountryView, RegionView, SearchView
from modules.notion.views import CountryExport, CountriesExport

from modules.notion.views import CountriesExport, CountryExport, serve_csv_file

urlpatterns = [
# Django and Wagtail views
re_path(r'^admin/', include(wagtailadmin_urls)),
path('django-admin/', admin.site.urls),
re_path(r'^documents/', include(wagtaildocs_urls)),
re_path(r'^404/$', error_404_test, ),
re_path(r'^500/$', error_500_view, ),
re_path(r"^admin/", include(wagtailadmin_urls)),
path("django-admin/", admin.site.urls),
re_path(r"^documents/", include(wagtaildocs_urls)),
re_path(r"^404/$", error_404_test),
re_path(r"^500/$", error_500_view),
# Server / Robots / Verification etc
re_path(r'^robots\.txt$', robots),
re_path(r'^sitemap\.xml$', sitemap),
re_path(r"^robots\.txt$", robots),
re_path(r"^sitemap\.xml$", sitemap),
re_path(
r'^googleverfication\.html$',
r"^googleverfication\.html$",
lambda r: HttpResponse(
"google-site-verification: foo.html", content_type="text/plain"
)
"google-site-verification: foo.html",
content_type="text/plain",
),
),
path("metadata.csv", serve_csv_file, name="serve_metadata"),
]

if settings.DEBUG:
Expand All @@ -51,10 +57,10 @@
handler500 = error_500_view

urlpatterns = urlpatterns + i18n_patterns(
path('map/country/<str:slug>/', CountryView.as_view(), name="country-tag"),
path('map/country/<str:slug>.csv', CountryExport.as_view(), name="country-export"),
path('map/region/<str:slug>/', RegionView.as_view(), name="region"),
path('map/oo_all_country_data.csv', CountriesExport.as_view(), name="countries-export"),
path("map/country/<str:slug>/", CountryView.as_view(), name="country-tag"),
path("map/country/<str:slug>.csv", CountryExport.as_view(), name="country-export"),
path("map/region/<str:slug>/", RegionView.as_view(), name="region"),
path("map/oo_all_country_data.csv", CountriesExport.as_view(), name="countries-export"),
path("search/", SearchView.as_view(), name="search"),
re_path(r'', include(wagtail_urls)),
re_path(r"", include(wagtail_urls)),
)
7 changes: 7 additions & 0 deletions app/modules/notion/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.urls import path

from .views import serve_csv_file

urlpatterns = [
path("metadata.csv", serve_csv_file, name="serve_csv_file"),
]
Loading

0 comments on commit 20b5c56

Please sign in to comment.