├── links
└── .gitignore
├── ckanext
├── canada
│ ├── __init__.py
│ ├── templates
│ │ ├── security
│ │ │ └── emails
│ │ │ │ ├── lockout_footer.txt
│ │ │ │ ├── lockout_subject.txt
│ │ │ │ └── lockout_mail.txt
│ │ ├── user
│ │ │ ├── snippets
│ │ │ │ ├── followee_dropdown.html
│ │ │ │ ├── placeholder.html
│ │ │ │ ├── api_token_list.html
│ │ │ │ └── user_search.html
│ │ │ ├── logout.html
│ │ │ ├── edit.html
│ │ │ ├── edit_base.html
│ │ │ ├── api_tokens.html
│ │ │ ├── activity_stream.html
│ │ │ ├── request_reset.html
│ │ │ ├── dashboard_datasets.html
│ │ │ ├── new_user_email.html
│ │ │ ├── confirm_delete.html
│ │ │ ├── perform_reset.html
│ │ │ ├── recover_username.html
│ │ │ ├── dashboard.html
│ │ │ └── user_welcome_email.html
│ │ ├── package
│ │ │ ├── snippets
│ │ │ │ ├── info.html
│ │ │ │ ├── dictionary_table.html
│ │ │ │ ├── share_widget.html
│ │ │ │ ├── resource_view_embed.html
│ │ │ │ ├── data_api_button.html
│ │ │ │ ├── resource_view.html
│ │ │ │ ├── socialmedia.html
│ │ │ │ ├── resources_list.html
│ │ │ │ ├── resource_views_list_item.html
│ │ │ │ └── view_form.html
│ │ │ ├── edit_view.html
│ │ │ ├── new.html
│ │ │ ├── view_edit_base.html
│ │ │ ├── resource_edit.html
│ │ │ ├── edit.html
│ │ │ ├── resources.html
│ │ │ ├── confirm_delete.html
│ │ │ ├── base.html
│ │ │ ├── deleted.html
│ │ │ ├── edit_base.html
│ │ │ ├── resource_edit_base.html
│ │ │ ├── base_form_page.html
│ │ │ └── new_resource_not_draft.html
│ │ ├── revision
│ │ │ └── read_base.html
│ │ ├── scheming
│ │ │ ├── display_snippets
│ │ │ │ ├── validation_timestamp.html
│ │ │ │ ├── canada_license.html
│ │ │ │ ├── filesize.html
│ │ │ │ ├── validation_status.html
│ │ │ │ ├── list_inline.html
│ │ │ │ ├── email_with_parameters.html
│ │ │ │ ├── credit_name.html
│ │ │ │ ├── br_multiple_choice.html
│ │ │ │ ├── resource_relationship.html
│ │ │ │ ├── dataset_relationship.html
│ │ │ │ └── fluent_tags.html
│ │ │ ├── form_snippets
│ │ │ │ ├── portal_release_date.html
│ │ │ │ ├── ro_fluent_title.html
│ │ │ │ ├── ro_fluent_markdown.html
│ │ │ │ ├── ro_select.html
│ │ │ │ ├── ro_date.html
│ │ │ │ ├── organization.html
│ │ │ │ ├── ro_org.html
│ │ │ │ ├── ro_fluent_tags.html
│ │ │ │ ├── repeating_subfields.html
│ │ │ │ └── ro_multiple_choice.html
│ │ │ ├── snippets
│ │ │ │ ├── errors.html
│ │ │ │ └── form_field.html
│ │ │ ├── organization
│ │ │ │ └── group_form.html
│ │ │ └── package
│ │ │ │ └── read.html
│ │ ├── footer.html
│ │ ├── tabledesigner
│ │ │ └── view_snippets
│ │ │ │ ├── cra_business_number.html
│ │ │ │ └── province.html
│ │ ├── snippets
│ │ │ ├── tag_list.html
│ │ │ ├── follow_button.html
│ │ │ ├── activities
│ │ │ │ ├── changed_datastore.html
│ │ │ │ ├── created_datastore.html
│ │ │ │ └── deleted_datastore.html
│ │ │ ├── cdts
│ │ │ │ └── footer.html
│ │ │ ├── package_list.html
│ │ │ ├── share_page.html
│ │ │ ├── license.html
│ │ │ ├── stream.html
│ │ │ ├── activity_item.html
│ │ │ ├── social.html
│ │ │ └── activity_type_selector.html
│ │ ├── validation
│ │ │ └── validation_read.html
│ │ ├── datatables
│ │ │ └── datatables_form.html
│ │ ├── header.html
│ │ ├── organization
│ │ │ ├── base_form_page.html
│ │ │ ├── snippets
│ │ │ │ ├── organization_list.html
│ │ │ │ ├── helper.html
│ │ │ │ ├── organization_item.html
│ │ │ │ └── organization_search.html
│ │ │ ├── edit.html
│ │ │ ├── manage_members.html
│ │ │ ├── read.html
│ │ │ ├── about.html
│ │ │ ├── search_rebuild.html
│ │ │ ├── activity_stream.html
│ │ │ ├── confirm_delete_member.html
│ │ │ └── index.html
│ │ ├── text_view.html
│ │ ├── admin
│ │ │ ├── snippets
│ │ │ │ ├── package_item.html
│ │ │ │ └── portal_sync_package_item.html
│ │ │ ├── search_rebuild.html
│ │ │ ├── trash.html
│ │ │ ├── index.html
│ │ │ └── base.html
│ │ ├── xloader
│ │ │ └── resource_data.html
│ │ ├── datastore
│ │ │ └── snippets
│ │ │ │ ├── dictionary_view.html
│ │ │ │ └── dictionary_form.html
│ │ ├── recombinant
│ │ │ └── snippets
│ │ │ │ ├── service_delete_fk_error.html
│ │ │ │ └── service_std_upsert_fk_error.html
│ │ ├── home
│ │ │ └── robots.txt
│ │ └── macros
│ │ │ └── canada_activity.html
│ ├── tables
│ │ └── choices
│ │ │ ├── .gitignore
│ │ │ ├── yes_no.yaml
│ │ │ ├── level_number.yaml
│ │ │ ├── year.yaml
│ │ │ ├── online_service_yes_no.yaml
│ │ │ ├── gregor_month.yaml
│ │ │ └── fiscal_year.yaml
│ ├── public
│ │ └── static
│ │ │ ├── schema.json
│ │ │ └── img
│ │ │ ├── data_img
│ │ │ ├── dot.svg
│ │ │ ├── dot-white.svg
│ │ │ ├── dot-blue.svg
│ │ │ ├── dot-grey.svg
│ │ │ ├── dash.svg
│ │ │ ├── check.svg
│ │ │ ├── chevron-down.svg
│ │ │ ├── burger.svg
│ │ │ ├── check-green.svg
│ │ │ ├── burger-lite.svg
│ │ │ ├── chevron-left.svg
│ │ │ ├── chevron-right.svg
│ │ │ ├── chevron-down-blue.svg
│ │ │ ├── chevron-down-grey.svg
│ │ │ ├── danger.svg
│ │ │ ├── close-black.svg
│ │ │ └── modal-close.svg
│ │ │ ├── dotted.png
│ │ │ ├── leaves
│ │ │ ├── stars.png
│ │ │ ├── onestar.png
│ │ │ ├── twostar.png
│ │ │ ├── fivestar.png
│ │ │ ├── fourstar.png
│ │ │ ├── threestar.png
│ │ │ └── zerostar.png
│ │ │ ├── stars
│ │ │ ├── star0.png
│ │ │ ├── star1.png
│ │ │ ├── star2.png
│ │ │ ├── star3.png
│ │ │ ├── star4.png
│ │ │ └── star5.png
│ │ │ ├── canada_default.png
│ │ │ ├── select2x2_white.png
│ │ │ ├── sprite-resource-additional-icons.png
│ │ │ └── badges
│ │ │ ├── en
│ │ │ ├── datastore-error.svg
│ │ │ ├── datastore-active.svg
│ │ │ ├── datastore-pending.svg
│ │ │ ├── datastore-running.svg
│ │ │ ├── datastore-unknown.svg
│ │ │ ├── datastore-complete.svg
│ │ │ └── datastore-inactive.svg
│ │ │ └── fr
│ │ │ ├── datastore-active.svg
│ │ │ ├── datastore-error.svg
│ │ │ ├── datastore-complete.svg
│ │ │ ├── datastore-inactive.svg
│ │ │ ├── datastore-unknown.svg
│ │ │ ├── datastore-pending.svg
│ │ │ └── datastore-running.svg
│ ├── migration
│ │ └── canada_public
│ │ │ ├── README
│ │ │ └── script.py.mako
│ ├── tests
│ │ ├── samples
│ │ │ ├── sample.csv
│ │ │ ├── sample_with_empty_lines.csv
│ │ │ ├── sample_with_extra_white_space.csv
│ │ │ └── sample_with_bad_ds_headers.csv
│ │ ├── fixtures.py
│ │ ├── test_helpers.py
│ │ ├── helpers.py
│ │ └── __init__.py
│ ├── assets
│ │ ├── public
│ │ │ ├── check_all.js
│ │ │ ├── more_like_this.js
│ │ │ ├── i18n.js
│ │ │ ├── webassets.yml
│ │ │ └── adobe_analytics_fix.js
│ │ ├── invitation-manager
│ │ │ └── webassets.yml
│ │ ├── datatables
│ │ │ ├── webassets.yml
│ │ │ └── canada_datatables.js
│ │ └── internal
│ │ │ ├── recombinant_webform.js
│ │ │ ├── registry_package_edit.js
│ │ │ ├── registry_resource_edit.js
│ │ │ └── registry_organization_edit.js
│ ├── schemas
│ │ └── validation_placeholder_presets.yaml
│ ├── plugin
│ │ ├── __init__.py
│ │ └── validation_plugin.py
│ └── strings.js
└── __init__.py
├── bin
├── warehouse
│ ├── warehouse_reports
│ │ └── .gitignore
│ └── .gitignore
├── resource_urls.py
├── filter
│ ├── filter_dac.py
│ ├── filter_contracts.py
│ ├── filter_qpnotes.py
│ ├── filter_contractsa.py
│ ├── filter_experiment.py
│ ├── filter_wrongdoing.py
│ ├── filter_contracts_nil.py
│ ├── filter_current_consultations.py
│ ├── filter_grants.py
│ ├── filter_reclassification.py
│ ├── filter_aistrategy.py
│ ├── filter_adminaircraft.py
│ ├── filter_disclosure_group.py
│ ├── filter_modified_created.py
│ ├── filter_ati.py
│ └── filter_travela.py
├── user_list_filter.py
├── user_import_filter.py
├── resource_management
│ └── update_resource_size.py
├── restore_trade_agreement_exceptions.py
└── transitional_orgs_filter.py
├── changes
├── 1502.changes
├── 1570.bugfix
├── 1593.changes
├── 1594.bugfix
├── 0003.changes
├── 0017.changes
├── 1473.removal
├── 1481.changes
├── 1503.feature
├── 1546.changes
├── 1548.changes
├── 1567.feature
├── 1603.removal
├── 1630.removal
├── v210.release
├── 0016.changes
├── 1490.misc
├── 1520.changes
├── 1572.changes
├── 1592.changes
├── 1599.c.changes
├── 1607.hotfix
├── 1634.changes
├── 0004.feature
├── 0013.changes
├── 1472.bugfix
├── 1473.a.bugfix
├── 1487.changes
├── 1517.changes
├── 1542.bugfix
├── 1568.changes
├── 1581.changes
├── 1606.changes
├── 1616.changes
├── 1626.changes
├── 0001.a.feature
├── 0001.b.feature
├── 1498.feature
├── 1511.bugfix
├── 1531.feature
├── 1539.bugfix
├── 1549.changes
├── 1552.changes
├── 1553.a.feature
├── 1561.changes
├── 1585.changes
├── 1596.changes
├── 1597.changes
├── 1473.changes
├── 1547.changes
├── 1547.removal
├── 1564.changes
├── 1578.changes
├── 1624.changes
├── 0002.bugfix
├── 1479.bugfix
├── 1480.a.feature
├── 1491.changes
├── 1504.bugfix
├── 1534.feature
├── 1535.hotfix
├── 1537.changes
├── 1550.removal
├── 1557.changes
├── 1598.changes
├── 1617.changes
├── 1620.changes
├── 1635.feature
├── 1478.changes
├── 1495.feature
├── 1586.changes
├── 0015.bugfix
├── 1472.a.feature
├── 1473.b.bugfix
├── 1474.removal
├── 1488.changes
├── 1501.bugfix
├── 1503.b.changes
├── 1527.changes
├── 1557.bugfix
├── 1566.changes
├── 1604.bugfix
├── 1605.feature
├── 1611.changes
├── 1613.changes
├── 1614.changes
├── 1509.bugfix
├── 1542.changes
├── 1562.feature
├── 1609.hotfix
├── 0007.hotfix
├── 1475.bugfix
├── 1492.bugfix
├── 1555.changes
├── 1559.feature
├── 1573.feature
├── 1575.changes
├── 1599.b.changes
├── 1608.bugfix
├── 0018.hotfix
├── 1494.removal
├── 1558.changes
├── 1588.changes
├── 1612.changes
├── 1619.feature
├── 0009.bugfix
├── 1496.changes
├── 1529.changes
├── 1554.feature
├── 1576.changes
├── 1587.changes
├── 1615.changes
├── 0010.hotfix
├── 0011.changes
├── 0012.hotfix
├── 1486.changes
├── 1493.feature
├── 1500.feature
├── 1507.changes
├── 1563.removal
├── 0006.bugfix
├── 1483.bugfix
├── 1523.changes
├── 1524.changes
├── 1532.changes
├── 1533.changes
├── 1543.feature
├── 1553.b.feature
├── 1574.bugfix
├── 1601.changes
├── 1637.feature
├── 0014.changes
├── 1513.changes
├── 1514.feature
├── 1541.changes
├── 1569.changes
├── 1573.a.changes
├── 1589.changes
├── 1477.changes
├── 1553.changes
├── 1573.b.changes
├── 1606.bugfix
├── 1621.feature
├── 1623.changes
├── 1503.a.changes
├── 1512.bugfix
├── 1599.a.changes
├── 1610.changes
├── 0008.changes
├── 1485.changes
├── 1521.feature
├── 1530.feature
├── 1628.changes
├── 0005.bugfix
├── 1522.feature
├── 1536.bugfix
├── 1580.changes
├── 1595.feature
├── 1480.b.feature
├── 1489.bugfix
├── 1540.changes
├── 1618.feature
├── 1515.bugfix
├── 1584.hotfix
├── 1528.changes
├── 1538.hotfix
├── 1579.changes
├── 1545.changes
├── 1518.changes
├── 1632.changes
├── 1482.bugfix
├── 1599.feature
├── 1556.changes
├── 1508.bugfix
├── 1497.changes
├── 1622.changes
├── 1472.b.feature
├── 1510.feature
├── 1591.changes
├── 1577.feature
├── 1600.changes
├── 1551.changes
├── 1499.feature
├── 1571.feature
├── 1505.changes
└── 1342.changes
├── .test_durations.gz
├── docs
├── pd-data-flow.jpg
├── pd-data-flow.odg
├── pd-data-flow.png
└── suggest-dataset-dfd.vsdx
├── samples
├── dq170529a-eng.pdf
├── dq170529a-fra.pdf
├── dq170529b-eng.pdf
├── dq170529b-fra.pdf
├── dq170529c-eng.pdf
├── dq170529c-fra.pdf
├── dq170529d-eng.pdf
├── dq170529d-fra.pdf
└── upload_file.sh
├── MANIFEST.in
├── test-requirements.txt
├── requirements.txt
├── .coveragerc
├── codecov.yml
├── .gitignore
├── .travis.yml
├── package.json
├── .github
└── workflows
│ ├── flake8.yml
│ ├── test.yml
│ └── dac.yml
├── setup.cfg
├── conf
├── who.ini
└── who-security.ini
└── azure-pipelines.yml
/links/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/bin/warehouse/warehouse_reports/.gitignore:
--------------------------------------------------------------------------------
1 | *.csv
--------------------------------------------------------------------------------
/changes/1502.changes:
--------------------------------------------------------------------------------
1 | Update the ministers json file
--------------------------------------------------------------------------------
/changes/1570.bugfix:
--------------------------------------------------------------------------------
1 | Added missing French translations.
--------------------------------------------------------------------------------
/changes/1593.changes:
--------------------------------------------------------------------------------
1 | Service Inventory updates for 2025 FY.
--------------------------------------------------------------------------------
/changes/1594.bugfix:
--------------------------------------------------------------------------------
1 | filter recovery email sent to logs
2 |
--------------------------------------------------------------------------------
/changes/0003.changes:
--------------------------------------------------------------------------------
1 | Translated more colons for French.
2 |
--------------------------------------------------------------------------------
/changes/0017.changes:
--------------------------------------------------------------------------------
1 | Increased `pytest` dependency versions.
--------------------------------------------------------------------------------
/changes/1473.removal:
--------------------------------------------------------------------------------
1 | Removed old, unused Jinja2 macros.
2 |
--------------------------------------------------------------------------------
/changes/1481.changes:
--------------------------------------------------------------------------------
1 | Released Python 3 compatible code.
2 |
--------------------------------------------------------------------------------
/changes/1503.feature:
--------------------------------------------------------------------------------
1 | Released new Service Inventory schema.
2 |
--------------------------------------------------------------------------------
/changes/1546.changes:
--------------------------------------------------------------------------------
1 | Update ministers list for December, 2024.
--------------------------------------------------------------------------------
/changes/1548.changes:
--------------------------------------------------------------------------------
1 | Update ministers list for January, 2025.
--------------------------------------------------------------------------------
/changes/1567.feature:
--------------------------------------------------------------------------------
1 | Added support for ckanext-citeproc
2 |
--------------------------------------------------------------------------------
/changes/1603.removal:
--------------------------------------------------------------------------------
1 | Removed old WET Maps files from codebase.
--------------------------------------------------------------------------------
/changes/1630.removal:
--------------------------------------------------------------------------------
1 | Remove warning alert from the Contracts PD.
--------------------------------------------------------------------------------
/changes/v210.release:
--------------------------------------------------------------------------------
1 | Released CKAN 2.10 compatible code.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/security/emails/lockout_footer.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/bin/warehouse/.gitignore:
--------------------------------------------------------------------------------
1 | data/*
2 | temp/*
3 | warehouse_reports/*
--------------------------------------------------------------------------------
/changes/0016.changes:
--------------------------------------------------------------------------------
1 | Updated the README with up to date information.
--------------------------------------------------------------------------------
/changes/1490.misc:
--------------------------------------------------------------------------------
1 | add 3 open maps file formats: COG, APRX, PBF
2 |
--------------------------------------------------------------------------------
/changes/1520.changes:
--------------------------------------------------------------------------------
1 | Markdown help popup has been translated.
2 |
--------------------------------------------------------------------------------
/changes/1572.changes:
--------------------------------------------------------------------------------
1 | Update ministers list for March 14, 2025.
2 |
--------------------------------------------------------------------------------
/changes/1592.changes:
--------------------------------------------------------------------------------
1 | service program id list: update from csv
2 |
--------------------------------------------------------------------------------
/changes/1599.c.changes:
--------------------------------------------------------------------------------
1 | Customized `robots.txt` for CKAN instances.
--------------------------------------------------------------------------------
/changes/1607.hotfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the DCAT links not rendering.
--------------------------------------------------------------------------------
/changes/1634.changes:
--------------------------------------------------------------------------------
1 | Update ministers list for December, 2025.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/tables/choices/.gitignore:
--------------------------------------------------------------------------------
1 | commodity_code.json
2 |
--------------------------------------------------------------------------------
/changes/0004.feature:
--------------------------------------------------------------------------------
1 | Added UI for sysadmins to unlock user accounts.
2 |
--------------------------------------------------------------------------------
/changes/0013.changes:
--------------------------------------------------------------------------------
1 | Aligned test cases with new Recombinant code.
2 |
--------------------------------------------------------------------------------
/changes/1472.bugfix:
--------------------------------------------------------------------------------
1 | Only Sysadmins can view the Admin index page.
2 |
--------------------------------------------------------------------------------
/changes/1473.a.bugfix:
--------------------------------------------------------------------------------
1 | Fixed search facet for portal_release_date.
2 |
--------------------------------------------------------------------------------
/changes/1487.changes:
--------------------------------------------------------------------------------
1 | Minor changes to the FAQ page for the Registry users.
--------------------------------------------------------------------------------
/changes/1517.changes:
--------------------------------------------------------------------------------
1 | Update ministers list after changes on Sept 19, 2024.
--------------------------------------------------------------------------------
/changes/1542.bugfix:
--------------------------------------------------------------------------------
1 | Fixed Excel formulae for Grants & Contributions.
2 |
--------------------------------------------------------------------------------
/changes/1568.changes:
--------------------------------------------------------------------------------
1 | Updated country names to latest ISO dataset.
2 |
--------------------------------------------------------------------------------
/changes/1581.changes:
--------------------------------------------------------------------------------
1 | Hide the new "Unpublish" button in dataset forms.
--------------------------------------------------------------------------------
/changes/1606.changes:
--------------------------------------------------------------------------------
1 | Added `mrc` file format as a valid Resource format.
--------------------------------------------------------------------------------
/changes/1616.changes:
--------------------------------------------------------------------------------
1 | Added alert copy for Organization deleted states.
--------------------------------------------------------------------------------
/changes/1626.changes:
--------------------------------------------------------------------------------
1 | Small changes to the AI Strategy yaml (OPEN-4278).
--------------------------------------------------------------------------------
/ckanext/canada/public/static/schema.json:
--------------------------------------------------------------------------------
1 | ../../metadata_schema/schema.json
--------------------------------------------------------------------------------
/changes/0001.a.feature:
--------------------------------------------------------------------------------
1 | Added test coverage for Validation into DataStore.
2 |
--------------------------------------------------------------------------------
/changes/0001.b.feature:
--------------------------------------------------------------------------------
1 | Added test coverage for Xloader into DataStore.
2 |
--------------------------------------------------------------------------------
/changes/1498.feature:
--------------------------------------------------------------------------------
1 | Add feature to delete selected rows from pd preview table.
--------------------------------------------------------------------------------
/changes/1511.bugfix:
--------------------------------------------------------------------------------
1 | nap5: enforce validation on status, progress fields
2 |
--------------------------------------------------------------------------------
/changes/1531.feature:
--------------------------------------------------------------------------------
1 | Add new Indigenous language "Innu-Aimun" to presets.yaml.
--------------------------------------------------------------------------------
/changes/1539.bugfix:
--------------------------------------------------------------------------------
1 | Add translations for the resource field validation_status
--------------------------------------------------------------------------------
/changes/1549.changes:
--------------------------------------------------------------------------------
1 | Remove rebuilding wrongdoing for the Drupal search.
2 |
--------------------------------------------------------------------------------
/changes/1552.changes:
--------------------------------------------------------------------------------
1 | Use `ckan.plugins.toolkit` instead of `ckantoolkit`
2 |
--------------------------------------------------------------------------------
/changes/1553.a.feature:
--------------------------------------------------------------------------------
1 | Added a select all checkbox to the PD DataTables.
2 |
--------------------------------------------------------------------------------
/changes/1561.changes:
--------------------------------------------------------------------------------
1 | Set the correct `template_updated` for all PD types.
2 |
--------------------------------------------------------------------------------
/changes/1585.changes:
--------------------------------------------------------------------------------
1 | Updated "Examplar" to "Example" for French translation
--------------------------------------------------------------------------------
/changes/1596.changes:
--------------------------------------------------------------------------------
1 | Fix missing translation updates for support email change.
--------------------------------------------------------------------------------
/changes/1597.changes:
--------------------------------------------------------------------------------
1 | Service Inventory updates to the data dictionary (2025).
--------------------------------------------------------------------------------
/changes/1473.changes:
--------------------------------------------------------------------------------
1 | Improved HTML layouts and uniformity across search forms.
2 |
--------------------------------------------------------------------------------
/changes/1547.changes:
--------------------------------------------------------------------------------
1 | Refactor code to meet CKAN and Python coding standards.
2 |
--------------------------------------------------------------------------------
/changes/1547.removal:
--------------------------------------------------------------------------------
1 | Removed old, unused scripts from `bin` and `migration`
2 |
--------------------------------------------------------------------------------
/changes/1564.changes:
--------------------------------------------------------------------------------
1 | Set configuration for public_activity_stream_detail to False.
--------------------------------------------------------------------------------
/changes/1578.changes:
--------------------------------------------------------------------------------
1 | Update ministers list after elections on May 13, 2025.
2 |
--------------------------------------------------------------------------------
/changes/1624.changes:
--------------------------------------------------------------------------------
1 | Heavily improved the automated pytests and GitHub workflows.
--------------------------------------------------------------------------------
/ckanext/canada/migration/canada_public/README:
--------------------------------------------------------------------------------
1 | Generic single-database configuration.
--------------------------------------------------------------------------------
/changes/0002.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the Registry Organizations to CSV script.
2 |
--------------------------------------------------------------------------------
/changes/1479.bugfix:
--------------------------------------------------------------------------------
1 | Fixed the database trigger name for Question Period Notes NTR.
2 |
--------------------------------------------------------------------------------
/changes/1480.a.feature:
--------------------------------------------------------------------------------
1 | Load the GCWeb and WET assets and scripts from the CDTS CDN.
2 |
--------------------------------------------------------------------------------
/changes/1491.changes:
--------------------------------------------------------------------------------
1 | Added new CSS layout for Datatables' column visibility modal.
2 |
--------------------------------------------------------------------------------
/changes/1504.bugfix:
--------------------------------------------------------------------------------
1 | Check for `None` type in update_pd_record for the money field
2 |
--------------------------------------------------------------------------------
/changes/1534.feature:
--------------------------------------------------------------------------------
1 | Added Dataset & Resource repeating Relationship field groups.
2 |
--------------------------------------------------------------------------------
/changes/1535.hotfix:
--------------------------------------------------------------------------------
1 | Service Inventory primary key fields no longer allow commas.
2 |
--------------------------------------------------------------------------------
/changes/1537.changes:
--------------------------------------------------------------------------------
1 | Resource file size now displays in a human-readable format.
2 |
--------------------------------------------------------------------------------
/changes/1550.removal:
--------------------------------------------------------------------------------
1 | Removed the old API Key modal from the user profile template.
2 |
--------------------------------------------------------------------------------
/changes/1557.changes:
--------------------------------------------------------------------------------
1 | Added test coverage for the `filter_service_std.py` script.
2 |
--------------------------------------------------------------------------------
/changes/1598.changes:
--------------------------------------------------------------------------------
1 | Added `rel="noopener norefferer"` to all `_blank` target anchors.
--------------------------------------------------------------------------------
/changes/1617.changes:
--------------------------------------------------------------------------------
1 | Pin python3-cryptography to 45.0.7 in response to RHSA-2025:14553.
--------------------------------------------------------------------------------
/changes/1620.changes:
--------------------------------------------------------------------------------
1 | Added SHA384 hash integrities to 3rd party scripts and stylesheets.
--------------------------------------------------------------------------------
/changes/1635.feature:
--------------------------------------------------------------------------------
1 | Added capability to add and override strings in the CKAN i18n API.
--------------------------------------------------------------------------------
/changes/1478.changes:
--------------------------------------------------------------------------------
1 | Create and Update PD Record forms now have better error messaging.
2 |
--------------------------------------------------------------------------------
/changes/1495.feature:
--------------------------------------------------------------------------------
1 | Integrate survey pop-up using GC invitation-manager on dataset pages.
--------------------------------------------------------------------------------
/changes/1586.changes:
--------------------------------------------------------------------------------
1 | Modified Url to add language in order for the dropdown to be bilingual
--------------------------------------------------------------------------------
/ckanext/canada/templates/user/snippets/followee_dropdown.html:
--------------------------------------------------------------------------------
1 | {# Do not use followees #}
2 |
--------------------------------------------------------------------------------
/.test_durations.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/.test_durations.gz
--------------------------------------------------------------------------------
/changes/0015.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the app global `is_registry` for new Jinja versions.
2 |
--------------------------------------------------------------------------------
/changes/1472.a.feature:
--------------------------------------------------------------------------------
1 | Organization and Group views need a user session to view on Registry.
2 |
--------------------------------------------------------------------------------
/changes/1473.b.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the search facet dictionary resizing inside loops.
2 |
--------------------------------------------------------------------------------
/changes/1474.removal:
--------------------------------------------------------------------------------
1 | Remove the Suggest a Dataset status update link from Registry homepage
2 |
--------------------------------------------------------------------------------
/changes/1488.changes:
--------------------------------------------------------------------------------
1 | Update 'Get started' sentence on the FAQ page for the Registry users.
2 |
--------------------------------------------------------------------------------
/changes/1501.bugfix:
--------------------------------------------------------------------------------
1 | - Fix translation for content type
2 | - Add space with colon (:) on forms
3 |
--------------------------------------------------------------------------------
/changes/1503.b.changes:
--------------------------------------------------------------------------------
1 | DataDictionary description fields now renders the markdown contents.
2 |
--------------------------------------------------------------------------------
/changes/1527.changes:
--------------------------------------------------------------------------------
1 | Adding the Django Search to the PD Makefile for the Hospitalityq type.
2 |
--------------------------------------------------------------------------------
/changes/1557.bugfix:
--------------------------------------------------------------------------------
1 | Fixed the logic for `target_met` calculated field for Service Standard.
2 |
--------------------------------------------------------------------------------
/changes/1566.changes:
--------------------------------------------------------------------------------
1 | Remove the unused --quiet option for Search csv import from the PD Makefile
--------------------------------------------------------------------------------
/changes/1604.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with Adobe analytics scripts not loading with CSP directives.
--------------------------------------------------------------------------------
/changes/1605.feature:
--------------------------------------------------------------------------------
1 | Use the new `nocache_store` blueprint decorator for login and reset pages.
--------------------------------------------------------------------------------
/changes/1611.changes:
--------------------------------------------------------------------------------
1 | Update activity codes for AI Strategy yaml to fix the underlying data model.
--------------------------------------------------------------------------------
/changes/1613.changes:
--------------------------------------------------------------------------------
1 | If there is no login session, `/links` will now redirect to the login page.
--------------------------------------------------------------------------------
/changes/1614.changes:
--------------------------------------------------------------------------------
1 | Front end guess mimetypes no longer manipulates the upload field's fake path.
--------------------------------------------------------------------------------
/changes/1509.bugfix:
--------------------------------------------------------------------------------
1 | add published_resource_id for the QPNOTES-nil.csv resource file. Needed for PR 1507
--------------------------------------------------------------------------------
/changes/1542.changes:
--------------------------------------------------------------------------------
1 | Updated various field descriptions and obligations for Grants & Contributions.
2 |
--------------------------------------------------------------------------------
/changes/1562.feature:
--------------------------------------------------------------------------------
1 | Adds another Recombinant alert area, use `template_warning` in the Schema.
2 |
--------------------------------------------------------------------------------
/changes/1609.hotfix:
--------------------------------------------------------------------------------
1 | Fixed a major issue with Google Analytics not loading and sending tracking data.
--------------------------------------------------------------------------------
/docs/pd-data-flow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/docs/pd-data-flow.jpg
--------------------------------------------------------------------------------
/docs/pd-data-flow.odg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/docs/pd-data-flow.odg
--------------------------------------------------------------------------------
/docs/pd-data-flow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/docs/pd-data-flow.png
--------------------------------------------------------------------------------
/changes/0007.hotfix:
--------------------------------------------------------------------------------
1 | Added casting to `NUMERIC` for the DAC triggers to support old `money` column types.
2 |
--------------------------------------------------------------------------------
/changes/1475.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the Organization Autocomplete endpoint not working properly.
2 |
--------------------------------------------------------------------------------
/changes/1492.bugfix:
--------------------------------------------------------------------------------
1 | Bugfix for the validation report not rendering because it does not recognize this.ckan
--------------------------------------------------------------------------------
/changes/1555.changes:
--------------------------------------------------------------------------------
1 | The Portal Update command will send correct exit codes when the worker pool fails.
2 |
--------------------------------------------------------------------------------
/changes/1559.feature:
--------------------------------------------------------------------------------
1 | Foreign keys will now display HTML links to the referential data in PD DataTables.
2 |
--------------------------------------------------------------------------------
/changes/1573.feature:
--------------------------------------------------------------------------------
1 | Added 2025-2026 fiscal quarters to the valid choices for Proactive Disclosure schemas.
--------------------------------------------------------------------------------
/changes/1575.changes:
--------------------------------------------------------------------------------
1 | The `place_of_publication` and `geographic_region` fields now render as Select2 fields.
--------------------------------------------------------------------------------
/changes/1599.b.changes:
--------------------------------------------------------------------------------
1 | Moved inline styles and JS attributes to classes and event listeners respectfully.
--------------------------------------------------------------------------------
/changes/1608.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the Admin Publish Workflow page not rendering paging links properly.
--------------------------------------------------------------------------------
/changes/0018.hotfix:
--------------------------------------------------------------------------------
1 | Extend the Adobe Analytics cookie setting to sanitize `javascript:void(0);` href attributes.
--------------------------------------------------------------------------------
/changes/1494.removal:
--------------------------------------------------------------------------------
1 | Remove alert about contracts proactive publication from the Registry login and home pages.
--------------------------------------------------------------------------------
/changes/1558.changes:
--------------------------------------------------------------------------------
1 | Display resource format labels in the Additional Information section on Resource pages.
2 |
--------------------------------------------------------------------------------
/changes/1588.changes:
--------------------------------------------------------------------------------
1 | Change the format of "name" field in the Travel and Hospitality Quarterly templates.
2 |
--------------------------------------------------------------------------------
/changes/1612.changes:
--------------------------------------------------------------------------------
1 | Added `autocomplete=off` for password fields to secure fields for older browser architecture
--------------------------------------------------------------------------------
/changes/1619.feature:
--------------------------------------------------------------------------------
1 | API Token Names have more rigorous validation to help protect the application and database.
--------------------------------------------------------------------------------
/samples/dq170529a-eng.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529a-eng.pdf
--------------------------------------------------------------------------------
/samples/dq170529a-fra.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529a-fra.pdf
--------------------------------------------------------------------------------
/samples/dq170529b-eng.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529b-eng.pdf
--------------------------------------------------------------------------------
/samples/dq170529b-fra.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529b-fra.pdf
--------------------------------------------------------------------------------
/samples/dq170529c-eng.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529c-eng.pdf
--------------------------------------------------------------------------------
/samples/dq170529c-fra.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529c-fra.pdf
--------------------------------------------------------------------------------
/samples/dq170529d-eng.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529d-eng.pdf
--------------------------------------------------------------------------------
/samples/dq170529d-fra.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/samples/dq170529d-fra.pdf
--------------------------------------------------------------------------------
/changes/0009.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the Standard Service filter script not handling null `performance` fields.
2 |
--------------------------------------------------------------------------------
/changes/1496.changes:
--------------------------------------------------------------------------------
1 | Money fields for PD types now get rounded to 2 decimals when inserting into the database.
2 |
--------------------------------------------------------------------------------
/changes/1529.changes:
--------------------------------------------------------------------------------
1 | Added `--include-types` and `--exclude-types` options to the `delete-activities` command.
2 |
--------------------------------------------------------------------------------
/changes/1554.feature:
--------------------------------------------------------------------------------
1 | Added more resource formats:
2 |
3 | - `BUFR`
4 | - `CAP`
5 | - `WATERML1`
6 | - `WATERML2`
7 |
--------------------------------------------------------------------------------
/changes/1576.changes:
--------------------------------------------------------------------------------
1 | Updated the page title, stage/phase labels, and stage/phase buttons on the Dataset form pages.
--------------------------------------------------------------------------------
/changes/1587.changes:
--------------------------------------------------------------------------------
1 | Add yearly quarters for 2025-2026 to the Departmental Audit Committee proactive publication
2 |
--------------------------------------------------------------------------------
/changes/1615.changes:
--------------------------------------------------------------------------------
1 | NotAuthorized HTTP responses now have a status code of 404 instead of 403 for logged out users.
--------------------------------------------------------------------------------
/ckanext/canada/tables/choices/yes_no.yaml:
--------------------------------------------------------------------------------
1 | 'N':
2 | en: "No"
3 | fr: Non
4 | 'Y':
5 | en: "Yes"
6 | fr: Oui
7 |
--------------------------------------------------------------------------------
/docs/suggest-dataset-dfd.vsdx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/docs/suggest-dataset-dfd.vsdx
--------------------------------------------------------------------------------
/changes/0010.hotfix:
--------------------------------------------------------------------------------
1 | Fixed Service Inventory `service_name` fields character limit increase to `350` at the DB level.
2 |
--------------------------------------------------------------------------------
/changes/0011.changes:
--------------------------------------------------------------------------------
1 | Updated Service Inventory fields `volume_meeting_target` and `total_volume` from `int` to `bigint`
2 |
--------------------------------------------------------------------------------
/changes/0012.hotfix:
--------------------------------------------------------------------------------
1 | Fixed a typo in the `originating_sector_fr` field example for Briefing Note Titles and Numbers.
2 |
--------------------------------------------------------------------------------
/changes/1486.changes:
--------------------------------------------------------------------------------
1 | Updated the `CanadaSecurityPlugin` class for the improved frameworking from `ckanext-security`.
2 |
--------------------------------------------------------------------------------
/changes/1493.feature:
--------------------------------------------------------------------------------
1 | Add translations for feature to validate password. The user password cannot be the same as username.
--------------------------------------------------------------------------------
/changes/1500.feature:
--------------------------------------------------------------------------------
1 | Show password requirements for "Password" and "Confirm Password" fields on new user registration page.
--------------------------------------------------------------------------------
/changes/1507.changes:
--------------------------------------------------------------------------------
1 | Enabling upload of the QPNOTES-nil.csv file now that there is nothing-to-report data for QPNOTES PDs.
--------------------------------------------------------------------------------
/changes/1563.removal:
--------------------------------------------------------------------------------
1 | Move PCO sub-org migration scripts to https://github.com/open-data/data-ops/tree/main/pco/migrate
2 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/package/snippets/info.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block package_info %}{% endblock %}
4 |
--------------------------------------------------------------------------------
/changes/0006.bugfix:
--------------------------------------------------------------------------------
1 | Contextual temporary database table `datastore_user` now only gets created if it does not already exist.
2 |
--------------------------------------------------------------------------------
/changes/1483.bugfix:
--------------------------------------------------------------------------------
1 | Fixed inline colons for French in various templates. E.g. `Date Published:` -> `Date de publication :`
2 |
--------------------------------------------------------------------------------
/changes/1523.changes:
--------------------------------------------------------------------------------
1 | Display resource metadata such as Language, Format etc. on the resource page under 'Additional Information'.
--------------------------------------------------------------------------------
/changes/1524.changes:
--------------------------------------------------------------------------------
1 | The old GCPedia links now link to the Operations Guide. Text `GCPEDIA` changed to `Operations Guide`.
2 |
--------------------------------------------------------------------------------
/changes/1532.changes:
--------------------------------------------------------------------------------
1 | TravelQ schema has additional `destination` fields added, along with validation for expected format.
2 |
--------------------------------------------------------------------------------
/changes/1533.changes:
--------------------------------------------------------------------------------
1 | HospitalityQ schema has additional `vendor` fields added, along with validation for expected format.
2 |
--------------------------------------------------------------------------------
/changes/1543.feature:
--------------------------------------------------------------------------------
1 | Allow remote DataStore sources. Allow domains with `ckanext.canada.datastore_source_domain_allow_list`
2 |
--------------------------------------------------------------------------------
/changes/1553.b.feature:
--------------------------------------------------------------------------------
1 | Added the capability to set a search query to the PD DataTables with the URI parameter `dt_query`
2 |
--------------------------------------------------------------------------------
/changes/1574.bugfix:
--------------------------------------------------------------------------------
1 | Fixed an issue with the User Activity template. Sysadmins can now easily navigate to a User's activity page.
--------------------------------------------------------------------------------
/changes/1601.changes:
--------------------------------------------------------------------------------
1 | Modified French translation in the new user form for the password field. It was missing the length limit.
--------------------------------------------------------------------------------
/changes/1637.feature:
--------------------------------------------------------------------------------
1 | New CLI command `export-pd-reporting-info` exports data publisher info for Proactive Disclosures into a CSV.
--------------------------------------------------------------------------------
/ckanext/canada/templates/revision/read_base.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block package_social %}{% endblock %}
4 |
5 |
--------------------------------------------------------------------------------
/changes/0014.changes:
--------------------------------------------------------------------------------
1 | Limit `datastore_search` with FTS searching with `ckanext.canada.max_ds_fts_rows` (default: `100,000` rows)
2 |
--------------------------------------------------------------------------------
/changes/1513.changes:
--------------------------------------------------------------------------------
1 | Add an alert on login page for users to change password in order to comply with the new password requirements.
--------------------------------------------------------------------------------
/changes/1514.feature:
--------------------------------------------------------------------------------
1 | Updated CKAN and Drupal ATI Search Solr configs and schemas to Solr 9 and CKAN 2.10 compatible versions.
2 |
--------------------------------------------------------------------------------
/changes/1541.changes:
--------------------------------------------------------------------------------
1 | Code changes to handle the additions from [open-data/ckan:185](https://github.com/open-data/ckan/pull/185)
2 |
--------------------------------------------------------------------------------
/changes/1569.changes:
--------------------------------------------------------------------------------
1 | Resource list sidebar now only shows 8 resources with a "Show more" button to display all the resources.
2 |
--------------------------------------------------------------------------------
/changes/1573.a.changes:
--------------------------------------------------------------------------------
1 | Moved the validation for TravelQ `destination_` and `disclosure_group` fields to be on or after April 1st 2025.
--------------------------------------------------------------------------------
/changes/1589.changes:
--------------------------------------------------------------------------------
1 | Switch HelpDesk email address from open-ouvert@tbs-sct.gc.ca to PortalSupport-Soutienportail@tbs-sct.gc.ca.
2 |
--------------------------------------------------------------------------------
/changes/1477.changes:
--------------------------------------------------------------------------------
1 | New `canada_theme` plugin contains merged Internal and Public templates, assets, and new `is_registry` global.
2 |
--------------------------------------------------------------------------------
/changes/1553.changes:
--------------------------------------------------------------------------------
1 | Aligned the Delete and Create PD view functions with new Recombinant code for improved constraint error messages.
2 |
--------------------------------------------------------------------------------
/changes/1573.b.changes:
--------------------------------------------------------------------------------
1 | Moved the validation for HospitalityQ `disclosure_group` and `_attendee` fields to be on or after April 1st 2025.
--------------------------------------------------------------------------------
/changes/1606.bugfix:
--------------------------------------------------------------------------------
1 | Resource format validator will now fallback to `other` if the guessed mimetype is not in the list of Scheming choices.
--------------------------------------------------------------------------------
/changes/1621.feature:
--------------------------------------------------------------------------------
1 | Use the new `promise-download` CKAN JS module for DataStore Dump links for better UX with larger DataStore tables.
--------------------------------------------------------------------------------
/changes/1623.changes:
--------------------------------------------------------------------------------
1 | OPEN-4268: Consistently display controlled list Y,N,NA options without labels for Service Inventory Excel template.
--------------------------------------------------------------------------------
/changes/1503.a.changes:
--------------------------------------------------------------------------------
1 | Create and Update PD Record views will now log the fatal warnings with their tracebacks instead of eating errors.
2 |
--------------------------------------------------------------------------------
/changes/1512.bugfix:
--------------------------------------------------------------------------------
1 | Bugfix for character encoding on title_en and title_fr columns on the Open Government Portal Department List dataset
2 |
--------------------------------------------------------------------------------
/changes/1599.a.changes:
--------------------------------------------------------------------------------
1 | Loads image assets instead of `data:image` URIs for stricter Content-Security-Policy support. Saved SVG data as images.
--------------------------------------------------------------------------------
/changes/1610.changes:
--------------------------------------------------------------------------------
1 | Display link for AI Strategy Implementation Tracker on homepage and main menu for users belonging to the TBS organization.
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/dot.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/scheming/display_snippets/validation_timestamp.html:
--------------------------------------------------------------------------------
1 | {{ h.render_datetime(data[field.field_name], with_hours=True) }}
--------------------------------------------------------------------------------
/changes/0008.changes:
--------------------------------------------------------------------------------
1 | Proactive Disclosure `money` field values now always display as a money format in DataTables and Update Single Record form.
2 |
--------------------------------------------------------------------------------
/changes/1485.changes:
--------------------------------------------------------------------------------
1 | Moved FAQ page content from Markdown files into a Jinja template. Moved the French translated strings into the PO file.
2 |
--------------------------------------------------------------------------------
/changes/1521.feature:
--------------------------------------------------------------------------------
1 | Added additional Resource formats sprite sheet and added supported Resource formats:
2 |
3 | * FLV
4 | * MKV
5 | * MP4
6 |
--------------------------------------------------------------------------------
/changes/1530.feature:
--------------------------------------------------------------------------------
1 | The number of resources per dataset can now be limited with the `ckanext.canada.max_resources_per_dataset` config option.
2 |
--------------------------------------------------------------------------------
/changes/1628.changes:
--------------------------------------------------------------------------------
1 | Add the following fields to the `Edit Member` page under download CSV option:
2 | - Date created
3 | - Last active date
4 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/dot-white.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/dotted.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/dotted.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/dot-blue.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/changes/0005.bugfix:
--------------------------------------------------------------------------------
1 | Fixed the Openness Report script. Moved the code inside of the CKAN app context. Use the `ckan canada openness-report` command now.
2 |
--------------------------------------------------------------------------------
/changes/1522.feature:
--------------------------------------------------------------------------------
1 | Added `PackageSync` model for the `package_sync` table which tracks the PortalUpdater process and saves the states for the packages.
2 |
--------------------------------------------------------------------------------
/changes/1536.bugfix:
--------------------------------------------------------------------------------
1 | Add validation fields to info schema.
2 | Add missing translations for validation:
3 | - Validation timestamp
4 | - Validation status
5 |
--------------------------------------------------------------------------------
/changes/1580.changes:
--------------------------------------------------------------------------------
1 | Now checks the subdomain for `registry` to see if the user is in the "Registry" instead of checking if `canada_internal` plugin is loaded.
--------------------------------------------------------------------------------
/changes/1595.feature:
--------------------------------------------------------------------------------
1 | Add new template for AI Strategy Tracker proactive publication. Data to be collected only by TBS over a period of 2 fiscal years.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/leaves/stars.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/leaves/stars.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/stars/star0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/stars/star0.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/stars/star1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/stars/star1.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/stars/star2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/stars/star2.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/stars/star3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/stars/star3.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/stars/star4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/stars/star4.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/stars/star5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/stars/star5.png
--------------------------------------------------------------------------------
/ckanext/canada/templates/security/emails/lockout_subject.txt:
--------------------------------------------------------------------------------
1 | Too many logins detected for / Trop de tentatives de connexion détectées à {{ site_title }}
2 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/canada_default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/canada_default.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/dot-grey.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/leaves/onestar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/leaves/onestar.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/leaves/twostar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/leaves/twostar.png
--------------------------------------------------------------------------------
/ckanext/canada/templates/footer.html:
--------------------------------------------------------------------------------
1 |
2 | {% snippet 'snippets/cdts/footer.html' %}
3 |
4 | {% block footer_debug %}{% endblock %}
5 |
--------------------------------------------------------------------------------
/changes/1480.b.feature:
--------------------------------------------------------------------------------
1 | Use the WET JS Builder to comply with the CDTS templates. Updated the error template. The Registry now uses the WET Application templates.
2 |
--------------------------------------------------------------------------------
/changes/1489.bugfix:
--------------------------------------------------------------------------------
1 | Trim Proactive Disclosure text fields to 28kB for Solr record indexing. This affects PD types that do not use the Advanced Search (Django) app.
2 |
--------------------------------------------------------------------------------
/changes/1540.changes:
--------------------------------------------------------------------------------
1 | Updated description copy for Service Inventory `Fiscal Year` fields. Updated maximum characters for `Service Name` fields from `250` to `350`.
2 |
--------------------------------------------------------------------------------
/changes/1618.feature:
--------------------------------------------------------------------------------
1 | Obfuscates email addresses rendered in HTML with entity code points. Helps prevent non-advanced Bots from crawling email addresses in HTML content.
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/leaves/fivestar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/leaves/fivestar.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/leaves/fourstar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/leaves/fourstar.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/leaves/threestar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/leaves/threestar.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/leaves/zerostar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/leaves/zerostar.png
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/select2x2_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/select2x2_white.png
--------------------------------------------------------------------------------
/ckanext/canada/templates/tabledesigner/view_snippets/cra_business_number.html:
--------------------------------------------------------------------------------
1 | {% call dictionary_field(_('Format')) %}
2 | {{ _('9-digit number') }}
3 | {% endcall %}
4 |
--------------------------------------------------------------------------------
/changes/1515.bugfix:
--------------------------------------------------------------------------------
1 | fix: datatables column headings missing spaces
2 | remove broken nbsp-replacement code instead of fixing
3 | (doesn't handle other whitespace characters)
4 |
--------------------------------------------------------------------------------
/changes/1584.hotfix:
--------------------------------------------------------------------------------
1 | Now properly checks package permissions for the XLoader and Validation UI pieces, fixes Organization Members not being able to view Datasets and Resources.
--------------------------------------------------------------------------------
/ckanext/canada/templates/scheming/form_snippets/portal_release_date.html:
--------------------------------------------------------------------------------
1 | {% if h.may_publish_datasets() %}
2 | {% include "scheming/form_snippets/date.html" %}
3 | {% endif %}
4 |
--------------------------------------------------------------------------------
/changes/1528.changes:
--------------------------------------------------------------------------------
1 | Remove rebuilding the following searches from the Makefike:
2 | - reclassification
3 | - hospitalityq
4 | The above searches are now rebuilt using the Django search.
--------------------------------------------------------------------------------
/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include COPYING COPYING.fr
2 | include ckanext/canada/metadata_schema/schema.json
3 | recursive-include ckanext/canada/public *
4 | recursive-include ckanext/canada/templates *
5 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/tag_list.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% set _class = 'menu-horizontal margin-top-none' %}
4 |
5 | {% block tag_list_item_class %}button{% endblock %}
6 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/validation/validation_read.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block scripts %}
4 | {{ super() }}
5 | {% asset 'canada_internal/frictionless' %}
6 | {% endblock %}
--------------------------------------------------------------------------------
/changes/1538.hotfix:
--------------------------------------------------------------------------------
1 | Fixed a reference assignment error in the deleting views code block of PortalUpdater. PortalUpdater will now give a system exit code 1 if there are any errors in the process.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/sprite-resource-additional-icons.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/open-data/ckanext-canada/HEAD/ckanext/canada/public/static/img/sprite-resource-additional-icons.png
--------------------------------------------------------------------------------
/ckanext/canada/tests/samples/sample.csv:
--------------------------------------------------------------------------------
1 | date,temperature,place
2 | 2011-01-01,1,Galway
3 | 2011-01-02,-1,Galway
4 | 2011-01-03,0,Galway
5 | 2011-01-01,6,Berkeley
6 | ,,Berkeley
7 | 2011-01-03,5,
8 |
--------------------------------------------------------------------------------
/changes/1579.changes:
--------------------------------------------------------------------------------
1 | Support email address is now configurable with `ckanext.canada.support_email_address`. Default `maintainer_email` is now configurable with `ckanext.canada.default_open_email_address`
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/follow_button.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block following_class %}btn btn-default{% endblock %}
4 | {% block unfollowing_class %}btn btn-default{% endblock %}
5 |
--------------------------------------------------------------------------------
/changes/1545.changes:
--------------------------------------------------------------------------------
1 | Wrongdoing Search has been implemented on OC Search. For now, the Proactive Disclosure Makefile is being modified to rebuild both the Drupal and Django searches during the nightly rebuild.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/activities/changed_datastore.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block message %}
4 | {# wrap in p from margin and font size #}
5 |
{{ super() }}
6 | {% endblock %}
7 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/activities/created_datastore.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block message %}
4 | {# wrap in p from margin and font size #}
5 |
{{ super() }}
6 | {% endblock %}
7 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/activities/deleted_datastore.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block message %}
4 | {# wrap in p from margin and font size #}
5 |
{{ super() }}
6 | {% endblock %}
7 |
--------------------------------------------------------------------------------
/changes/1518.changes:
--------------------------------------------------------------------------------
1 | Reclassification Search has been implemented on OC Search. For now, the Proactive Disclosure Makefile is being modified to rebuild both the Drupal and Django searches during the nightly rebuild.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/datatables/datatables_form.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {%- block dict_field_label -%}
4 | {%- set label = 'label_' + h.lang() -%}
5 | {{ f.get('info', {})[label] }}
6 | {%- endblock -%}
7 |
--------------------------------------------------------------------------------
/ckanext/canada/tests/samples/sample_with_empty_lines.csv:
--------------------------------------------------------------------------------
1 | date,temperature,place
2 | 2011-01-01,1,Galway
3 | 2011-01-02,-1,Galway
4 | 2011-01-03,0,Galway
5 | 2011-01-01,6,Berkeley
6 | ,,
7 | ,,Berkeley
8 | 2011-01-03,5,
9 |
--------------------------------------------------------------------------------
/changes/1632.changes:
--------------------------------------------------------------------------------
1 | Added `--dataset-id` (`-D`) and `--ignore-hashes` (`-i`) options to the `portal_update` command. This is an interim fix to some DataStore tables not syncing to the Portal during the Post to Portal process.
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/dash.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/tests/samples/sample_with_extra_white_space.csv:
--------------------------------------------------------------------------------
1 | date,temperature,place
2 | 2011-01-01,1, Galway
3 | 2011-01-02,-1, Galway
4 | 2011-01-03,0, Galway
5 | 2011-01-01,6, Berkeley
6 | , ,Berkeley
7 | 2011-01-03,5,
8 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/check.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/changes/1482.bugfix:
--------------------------------------------------------------------------------
1 | Ignore the `metadata_modified` Resource field in the "Post to Portal" code. Fixing a major issue where a Dataset's `metadata_modified` field would be updated, and a lot of activities would be created on the Portal.
2 |
--------------------------------------------------------------------------------
/changes/1599.feature:
--------------------------------------------------------------------------------
1 | Added functionality to define the `Content-Security-Policy` header in the Flask App instead of NGINX, allowing for script and style dynamic nonce generation. Configurable with `ckanext.canada.content_security_policy`
--------------------------------------------------------------------------------
/ckanext/canada/templates/header.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block header_wrapper %}
4 |
5 | {% snippet 'snippets/cdts/header.html', breadcrumb_content=breadcrumb_content() %}
6 | {% endblock %}
7 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/chevron-down.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/burger.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/check-green.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test-requirements.txt:
--------------------------------------------------------------------------------
1 | factory-boy>=2
2 | mock
3 | importlib-metadata==4.11.4
4 | zipp==3.19.1
5 | beautifulsoup4==4.11.1
6 | pytest==7.4.4
7 | pytest-ckan
8 | pytest-cov==3.0.0
9 | coverage==7.7.1
10 | junitparser==3.2.0
11 | junit2html==31.0.2
--------------------------------------------------------------------------------
/changes/1556.changes:
--------------------------------------------------------------------------------
1 | Display errors on the Confirm Resource Delete page. Added new translations for nested resource validation errors. Adds a ckanext-scheming template for the nested resource validation errors to display field labels from the Schema.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/burger-lite.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/chevron-left.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/chevron-right.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/cdts/footer.html:
--------------------------------------------------------------------------------
1 |
7 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/user/snippets/placeholder.html:
--------------------------------------------------------------------------------
1 | {#
2 | blank to disable default gravatar.
3 | ckan.gravatar_default in DataGCCAPublic plugin class
4 | is always set to `disabled` so this template will
5 | always be used for user gravatars.
6 | #}
7 |
--------------------------------------------------------------------------------
/changes/1508.bugfix:
--------------------------------------------------------------------------------
1 | The URL on resource pages shows English URL from cloudstorage for resources uploaded to the datastore. The immediate fix is to remove the URL since it is repetitive. This would not have any impact on UX because users can use the blue button to download resources.
--------------------------------------------------------------------------------
/changes/1497.changes:
--------------------------------------------------------------------------------
1 | The Makefile no longer falls back to `/tmp` for the temporary directory. It will always use the `PD_TMP_DIRECTORY` or `TMPDIR` environment variables. You can now supply `tmpdir=/path/to/tmp/directory`. The Makefile will fail if no temporary directory is found.
2 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/organization/base_form_page.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block primary_content_inner %}
4 | {% block form %}
5 |
6 | {{ form | safe }}
7 |
8 | {% endblock %}
9 | {% endblock %}
10 |
--------------------------------------------------------------------------------
/changes/1622.changes:
--------------------------------------------------------------------------------
1 | AI Strategy YAML updates:
2 | - Increased character limit for description and progress fields from 1000 to 1500 characters.
3 | - Improved labels for activity choices based on input from the policy team.
4 | - Fixed ordering of primary keys to resolve the delete bug.
5 |
--------------------------------------------------------------------------------
/ckanext/canada/assets/public/check_all.js:
--------------------------------------------------------------------------------
1 | window.addEventListener('load', function(){
2 | $(function () {
3 | $('#publish_all').on('click', function () {
4 | $('#publish_form').find(':checkbox').prop('checked', this.checked);
5 | });
6 | });
7 | });
8 |
--------------------------------------------------------------------------------
/ckanext/canada/assets/public/more_like_this.js:
--------------------------------------------------------------------------------
1 | window.addEventListener('load', function(){
2 | $( document ).on( "wb-ready.wb", function( event ) {
3 | $('#related_pkgs ul').removeClass('list-unstyled');
4 | $('#related_pkgs li:gt(4)').remove();
5 | });
6 | });
7 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/chevron-down-blue.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/public/static/img/data_img/chevron-down-grey.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/package/snippets/dictionary_table.html:
--------------------------------------------------------------------------------
1 |
11 | {% endblock %}
12 |
--------------------------------------------------------------------------------
/changes/1577.feature:
--------------------------------------------------------------------------------
1 | Improved the display of Resource Validation and XLoader badges to be more clear. Errors/failures will now display in semantic alert areas with a button link to go to the respective report. Successful and Processing badges will display as normal. The Frictionless report items will now be expanded by default, showing the user how to correct the problems in their data.
--------------------------------------------------------------------------------
/ckanext/canada/templates/organization/snippets/organization_list.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 | {%- block organization_list -%}
3 |
8 | {%- endblock -%}
9 |
--------------------------------------------------------------------------------
/changes/1600.changes:
--------------------------------------------------------------------------------
1 | Ensure the format_type attribute of Recombinant table fields is properly translated and displayed in the following areas for Proactive Disclosures (PD):
2 | - Reference tab on individual PD pages
3 | - Data dictionary for each PD
4 | - Resource page of combined PDs
5 |
6 | This addresses currently missing translations and improves consistency across PD-related interfaces.
--------------------------------------------------------------------------------
/ckanext/canada/templates/text_view.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {%- block subtitle -%}
4 | {{- h.resource_view_meta_title(package=package, resource=resource, view=resource_view, is_subtitle=True) -}}
5 | {%- endblock -%}
6 |
7 | {% block adobe_analytics_creator %}
8 | {{ h.adobe_analytics_creator(organization=package.organization, package=package) }}
9 | {% endblock %}
10 |
--------------------------------------------------------------------------------
/changes/1551.changes:
--------------------------------------------------------------------------------
1 | - Maintain only one ministers list for both Question Period Notes and Use of Administrative Aircraft.
2 | - Update ministers list to include Governor General choice
3 | - Remove aircraft ministers list
4 | - Update Aircraft PD template to use ministers list and add last updated date
5 | - Update QPNotes PD template to filter GG from the choices list and add last updated date
6 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/license.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block license_wrapper %}
4 |
7 | {% endblock %}
8 |
--------------------------------------------------------------------------------
/changes/1571.feature:
--------------------------------------------------------------------------------
1 | Upgraded DataTables JS contributed library and extensions to latest (as of 2025.03.27) for Recombinant previews. Added various UX improving features:
2 |
3 | - Bootstrap 5 theme for the DataTables;
4 | - Responsive View;
5 | - Improved i18n;
6 | - Fullscreen;
7 | - Editing in DataTables;
8 | - General improved functional JS code.
9 |
10 | Must use the option `ckanext.canada.enable_pd_datatable_editor`
--------------------------------------------------------------------------------
/ckanext/canada/templates/package/new.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block subtitle %}
4 | {% if dataset_type == 'info' %}
5 | {{- _('Create an Open Information Asset') -}}
6 | {% elif dataset_type == 'dataset' %}
7 | {{- _('Create an Open Data Record') -}}
8 | {% else %}
9 | {{- h.humanize_entity_type('package', dataset_type, 'create title') or _('Create Dataset') -}}
10 | {% endif %}
11 | {% endblock %}
--------------------------------------------------------------------------------
/changes/1505.changes:
--------------------------------------------------------------------------------
1 | - show title with truncated link text
2 | - show title in breadcrumbs
3 | - increase breadcrumb length to 80 for package and resource
4 | - increase title length from ckan's default 80 to 150 before truncating
5 | - use the breadcrumb trail guidance to not display the current page
6 | at the end of the breadcrumb trail (linked or unlinked) for the Portal only
7 | https://design.canada.ca/common-design-patterns/breadcrumb-trail.html
8 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/scheming/form_snippets/ro_org.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {% if data[field.field_name] %}
7 | {% set org = h.get_organization(data[field.field_name]) %}
8 | {{h.split_piped_bilingual_field(org.title or org.name, h.lang())}}
9 | {% endif %}
10 |
{{ _("View the past 60 days of metadata activity and the past 150 days of DataStore activity.") }}
9 |
10 |
11 |
12 |
13 | {{ super() }}
14 | {% endblock %}
15 |
--------------------------------------------------------------------------------
/changes/1342.changes:
--------------------------------------------------------------------------------
1 | Merge PD records of the following sub-organizations under PCO:
2 |
3 | - Deputy Prime Minister & Minister of Finance (dpm-vpm)
4 | - Intergovernmental Affairs (iga-aig)
5 | - Minister of Intergovernmental Affairs, Infrastructure & Communities (miga-maig)
6 | - Office of the Leader of the Government in the House of Commons (ghl-lgc)
7 | - Office of the Minister of Democratic Institutions (mdi-mid)
8 | - Quebec Lieutenant (ql-lq)
9 | - Special Representative for the Prairies (srp-rsp)
10 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/snippets/activity_item.html:
--------------------------------------------------------------------------------
1 |
4 | {% trans %}
5 | CKAN Organizations are used to create, manage and publish collections
6 | of datasets. Users can have different roles within an Organization,
7 | depending on their level of authorisation to create, edit and publish.
8 | {% endtrans %}
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/scheming/display_snippets/email_with_parameters.html:
--------------------------------------------------------------------------------
1 | {% set page_url = h.url_for('dataset.read', id=data['id'], qualified=True) %}
2 | {{
3 | h.mail_to_with_params(email_address=data[field.field_name],
4 | name=data[field.display_email_name_field] if field.display_email_name_field and data[field.display_email_name_field]
5 | else data[field.field_name],
6 | subject=h.get_translated(data, 'title'),
7 | body=_('The following is a question related to the record {url} found on {site}').format(url=page_url, site=h.portal_url()))
8 | }}
9 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/package/view_edit_base.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block content_action %}
4 | {%- link_for _('All views'), named_route=pkg.type ~ '_resource.views', id=pkg.name, resource_id=res.id, class_='btn btn-default', icon='arrow-left' -%}
5 | {% if res %}
6 | {%- set url = h.url_for(pkg.type ~ '_resource.read', id=pkg.name, resource_id=res.id) ~ '?view_id=' ~ resource_view.id -%}
7 | {{ _('View view') }}
8 | {% endif %}
9 | {% endblock %}
10 |
--------------------------------------------------------------------------------
/ckanext/canada/tables/choices/online_service_yes_no.yaml:
--------------------------------------------------------------------------------
1 | 'NA':
2 | en: N/A (This interaction point is not applicable to the service)
3 | fr: S.O. (Ce point d'interaction ne s'applique pas au service)
4 | 'N':
5 | en: No (This interaction point is applicable to the service but is not currently online)
6 | fr: Non (Ce point d'interaction s'applique au service, mais il n'est pas en ligne présentement)
7 | 'Y':
8 | en: Yes (This interaction point is applicable to the service and is online)
9 | fr: Oui (Ce point d'interaction s'applique au service et est en ligne)
10 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/admin/search_rebuild.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block secondary_help %}
4 |
5 |
6 | {{ _('Why re-index?') }}
7 |
8 |
9 |
{{ _('The SOLR index is used for searching datasets and search facets. In the case that some datasets are not showing in the search or a search facet is not working, you can try to re-index the site.') }}
13 | {{ _('There are currently no organizations for this site') }}.
14 | {% if h.check_access('organization_create') %}
15 | {% link_for _('How about creating one?'), 'organization.new' %}.
16 | {% endif %}
17 |
28 | {% trans %}
29 | Datasets are simply used to group related pieces of data. These
30 | can then be found under a single url with a description and
31 | licensing information.
32 | {% endtrans %}
33 |
{{ _("You can only add up to {max_resource_count} resources to a dataset. "
12 | "You can segment your resources across multiple datasets or merge your "
13 | "data to limit the number of resources. Please contact "
14 | "{support} if you need further assistance.").format(max_resource_count=max_resource_count, support=h.support_email_address()) }}
15 |
16 |
17 |
18 |
19 | {% else %}
20 | {{ super() }}
21 | {% endif %}
22 | {% endblock %}
23 |
24 | {% block secondary_content %}
25 | {% snippet 'package/snippets/resources.html', pkg=pkg %}
26 | {% endblock %}
27 |
--------------------------------------------------------------------------------
/bin/filter/filter_ati.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python3
2 |
3 | """
4 | Script that takes csv on stdin with Year, Month as the first two columns
5 | and outputs the header row and all rows within the past two years on stdout
6 | """
7 |
8 | import csv
9 | import sys
10 |
11 | start_year_month = 2020, 1 # publicly accessible records
12 |
13 | REMOVE_COLUMNS = [
14 | 'record_created',
15 | 'record_modified',
16 | 'user_modified',
17 | ]
18 |
19 | BOM = "\N{bom}"
20 |
21 |
22 | def main():
23 | bom = sys.stdin.read(1) # first code point
24 | if not bom:
25 | # empty file -> empty file
26 | return
27 | assert bom == BOM
28 | sys.stdout.write(BOM)
29 |
30 | reader = csv.DictReader(sys.stdin)
31 | outnames = [f for f in reader.fieldnames if f not in REMOVE_COLUMNS]
32 | writer = csv.DictWriter(sys.stdout, outnames)
33 | writer.writeheader()
34 | for row in reader:
35 | try:
36 | for rem in REMOVE_COLUMNS:
37 | del row[rem]
38 |
39 | if (int(row['year']), int(row['month'])) >= start_year_month:
40 | writer.writerow(row)
41 | except ValueError:
42 | pass
43 |
44 |
45 | main()
46 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/scheming/snippets/form_field.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block removal_popup%}
4 | {% set locale = h.dump_json({'content': _('Are you sure you want to delete this status?') }) %}
5 | {% set template = [
6 | '
33 | {% endblock %}
34 |
35 | {% block secondary_content %}{% endblock %}
36 |
--------------------------------------------------------------------------------
/ckanext/canada/templates/user/user_welcome_email.html:
--------------------------------------------------------------------------------
1 | (Le français suit)
2 | Hello {{ fullname }}
3 |
4 | Thank you for registering with the Open Government Registry. Your account has been successfully created.
5 | Although your account is active, it has not yet been linked to your department. Until the account is linked to your department you will not be able to create or modify datasets in the registry.
6 | For information on how to use the Open Government Registry, visit our [GCconnex] page for information resources.
7 |
8 | The Open Government Registry Team
9 |
10 | [GCconnex]: https://gcconnex.gc.ca/file/group/24670219/all#33289464
11 |
12 | ……………………………………………………………………………………………………………………………………………………
13 |
14 | Bonjour {{ fullname }},
15 |
16 | Merci de vous être inscrit au Registre du gouvernement ouvert. Votre compte a été créé avec succès.
17 | Même si votre compte est actif, il n’est pas encore relié à votre ministère. Vous ne pourrez créer ou modifier de jeux de données dans le registre tant que votre compte n’aura pas été relié à votre ministère.
18 | Pour savoir comment utiliser le Registre du gouvernement ouvert, visitez notre page [GCconnex] pour obtenir des ressources documentaires.
19 |
20 | L'équipe de la Registre de Gouvernement Ouvert
21 |
22 | [GCconnex]: https://gcconnex.gc.ca/file/group/24670219/all#33289464
23 |
--------------------------------------------------------------------------------