localgovdrupal / localgov_elections
模块用于报告LocalGov Drupal站点的选举。
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.6
- 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.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-fix/1.x/static-analysis-check-errors
- dev-feature/107-parent-field
- dev-fix/118/hold-gain-label
- dev-fix/110/show-all-parties-on-mobile
- dev-fix/108/use-whole-numbers
- dev-release-1.x
- 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-08-27 11:50:41 UTC
README
此模块提供子模块、内容类型、视图和配置,允许报告LocalGov Drupal分布版的选举结果。
功能
- 单席选举(每个选举区域一个席位)
- 全面选举和非全面选举(例如,一半或三分之一)
- 基于表格、图表和地图的选举结果视图
- 可扩展的选举区域和地理数据边界源提供程序
- 将结果发布到社交媒体(目前为Twitter / X)
使用方法
有关更多详细信息,请参阅文档
安装
安装
您可以使用以下composer命令安装此模块。
composer require localgovdrupal/localgov_elections
库
Charts/Highcharts所需的库默认通过CDN包含。如果您希望本地使用,请按照https://www.drupal.org/docs/contributed-modules/charts/50x-getting-started#s-using-composer-and-wikimediacomposer-merge-plugin中的说明操作,该说明使用Charts模块提供的composer.json
进行安装。
子模块
您还可以使用Localgov Election Reporting模块提供的子模块。它们包括
- LocalGov Elections Reporting ONS Wards 2023 - Office of National Statistics 2023选举区域的边界源提供程序
- Localgov Elections Parliamentary Constituency Provider - Office of National Statistics 2024选举区域边界的边界源提供程序
- LocalGov Elections Reporting Social Post Integration - 将结果发布到社交媒体(Twitter/X)
- LocalGov Elections Reporting Demo - 帮助测试/评估的演示内容
- LocalGov Elections Reporting - UK Parties - 将大多数英国政党添加到政党分类法中。
有关这些模块的更多详细信息请参阅它们各自的模块README和文档。
问题
如果您在使用此模块时遇到问题,请在此https://github.com/localgovdrupal/localgov_elections/issues处报告。
已知问题
节点修订
修订目前不能与“区域投票”内容类型一起使用。我们已实施一种解决方案,通过防止为候选人段落实体创建修订来缓解这种情况。
我们在此问题#94中跟踪此问题。
目前,我们建议不要尝试在“区域投票”节点中使用修订。
如果您已开启Localgov Workflows,则默认会启用“创建新修订”。这不应该引起担忧,因为有问题的候选人段落会被强制忽略修订。
如果您有任何问题或问题,请在LocalGov Drupal Slack频道的#feature_elections频道中提问。
维护者
该项目目前由以下人员维护
- Chris Wales https://github.com/chriswales95
- Duncan Davidson https://github.com/dedavidson
- 芬恩·刘易斯:https://www.drupal.org/u/finn-lewis
它基于罗布·卡尔最初完成的工作。https://github.com/rgcarr