localgovdrupal / localgov_elections
Module to report on elections for LocalGov Drupal sites.
Installs: 592
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 6
Forks: 1
Open Issues: 27
Type:drupal-module
Requires
- cweagans/composer-patches: ^1.6
- drupal/autocomplete_deluxe: ^2.0
- drupal/charts: ^5.0
- drupal/color_field: ^3.0
- drupal/default_content: ^2.0
- drupal/entity_extra_field: ^2.1@RC
- drupal/field_formatter_class: ^1.5
- drupal/paragraphs_table: ^1.23 || ^2.0
- drupal/social_post: ^3.0
- drupal/social_post_twitter: ^3.0
- drupal/views_field_view: ^1.0@beta
- drupal/views_simple_math_field: ^3.0
- 1.x-dev
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-beta5
- 1.0.0-beta4
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta1
- 1.0.0-alpha1
- dev-feature/107-parent-field
- dev-fix/139-ons-wards-url
- dev-release-1.x
- dev-fix/1.x/fix-paragraphs-table-security-update
- dev-fix/1.x/coding-standards
- dev-fix/1.x/fix-failed-test
- dev-fix/1.x/static-analysis-check-errors
- dev-fix/118/hold-gain-label
- dev-fix/110/show-all-parties-on-mobile
- dev-fix/108/use-whole-numbers
- dev-feature/94-fix-revisions-for-area-results
- dev-feature/demo-taxonomy-fix
- dev-feature/92-chart-breaks-without-candidate-surnames
- dev-feature/party-colour-fix
- dev-feature/89-add-default-opacity-for-parties
- dev-fix/15/remove-results-timeline-national-elections
- dev-fix/15/remove-results-timeline
- dev-fix/61/default-value-majority-boolean
- dev-69/dontshowvotes
- dev-feature/57/vote-share
- dev-fix/57/change-title-of-vote-share
- dev-fix/61/hide-majority-for-national-elections
- dev-fix/22/update-dependencies
- dev-feature/63/updates-page-title
- dev-fix/1.x/election-officer-permission-for-boundary-creation
- dev-42-move-elections-field-and-make-it-mandatory
- dev-feature/33-remove-dependency-on-highcharts
- dev-feature/24-demo-content
- dev-17/set-chartjs-as-default
- dev-27/only-show-parties-running
- dev-25/modernise-css
- dev-23/remove-jQuery
- dev-10/electionrefrequired
- dev-4/update-documentation
- dev-feature/demo-conent
- dev-1/rename-modules-fields-entities
This package is auto-updated.
Last update: 2024-11-15 15:43:59 UTC
README
This module provides submodules, content types, views and configuration that allow the reporting of election results for the LocalGov Drupal distribution.
Features
- First past the post single seat per electoral area elections
- 'All-out' and not 'all-out' (e.g. halves or thirds) elections
- Table, graph and map based views of the results
- Extensible boundary source provider for electoral areas and geo data
- Social media posting of results (currently Twitter / X)
How to use
See the Documentation for more details
Installing
Installation
You can install this module with the following composer command.
composer require localgovdrupal/localgov_elections
Libraries
The libraries required by Charts/Highcharts are included, by default via CDN. If you wish to have these locally follow the instructions at https://www.drupal.org/docs/contributed-modules/charts/50x-getting-started#s-using-composer-and-wikimediacomposer-merge-plugin which uses the composer.json
provided by the Charts module to install.
Submodules
You may also wish to use the submodules provided as part of the Localgov Election Reporting module. They are:
- LocalGov Elections Reporting ONS Wards 2023 - Boundary source provider for Office of National Statistics 2023 Wards
- Localgov Elections Parliamentary Constituency Provider - Boundary source provider for Office of National Statistics 2024 constituency boundaries
- LocalGov Elections Reporting Social Post Integration - Post results to social media (Twitter/X)
- LocalGov Elections Reporting Demo - Demo content to help with testing/evaluation
- LocalGov Elections Reporting - UK Parties - Adds the majority of UK political parties to the party taxonomy.
Further details for these modules are in their own module READMEs and the Documentation.
Issues
If you run into issues using this module, please report them at https://github.com/localgovdrupal/localgov_elections/issues
Known issues
Node Revisions
Revisions do not currently work with the 'Areas vote' content type. We have implemented a work around to mitigate the situation by preventing the creation of revisions for the candidate paragraph entities.
We are tracking this in issue #94.
For the time being, we suggest not using attempting to use revisions with 'Areas vote' nodes.
If you have Localgov Workflows turned on, it will enable 'Create new revision' by default. This should not be a cause for concern, as the problematic candidate paragraphs are being forced to ignore revisions.
If you have any questions or problems, please ask in the #feature_elections channel in the LocalGov Drupal Slack channel.
Maintainers
This project is currently maintained by:
- Chris Wales https://github.com/chriswales95
- Duncan Davidson https://github.com/dedavidson
- Finn Lewis: https://www.drupal.org/u/finn-lewis
It is based on work originally done by Rob Carr https://github.com/rgcarr.