這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Legisearch

描述

A state legislative tracking system for activist organizations.

This WordPress plugin uses data from the Open States API as well as the Google Maps API to create a legislative lookup and bill tracking tool for WordPress websites.

螢幕截圖

  • Settings page. You must at least register an Open States API Key (free) in order for this plugin to work properly.
  • Search for existing state legislation from any state over several years
  • The All Bills page shows all legislation you are tracking
  • Select which votes to show to your visitors
  • Simple shortcode allows users to find their state legilsators based on address or you can present them links to specific legislators or an entire Senate or State Assembly.
  • This is what the user sees after they search by address
  • Legislator page showing contct information and voting record for votes you are tracking
  • It is simple to show an entire legislative chamber such as the State Senate or Assembly

安裝

  1. Go to Plugins > Add New
  2. Click the Upload Plugin button
  3. Select wp-legisearch.zip
  4. Activate the plugin
  5. Go to Legisearch > Settings to set up the API keys
  6. Use [legisearch_addresslookup] shortcode to create an address form for looking up legislators
  7. Use [legisearch_chamberlink state=”” chamber=”upper”] or [legisearch_chamberlink state=”” chamber=”lower”] to display a link to the ‘s upper and lower legislative chambers. Replace with the two-letter postal code for the state.
  8. See Plugin homepage for details on setting up API Keys and customizing

常見問題

Installation Instructions
  1. Go to Plugins > Add New
  2. Click the Upload Plugin button
  3. Select wp-legisearch.zip
  4. Activate the plugin
  5. Go to Legisearch > Settings to set up the API keys
  6. Use [legisearch_addresslookup] shortcode to create an address form for looking up legislators
  7. Use [legisearch_chamberlink state=”” chamber=”upper”] or [legisearch_chamberlink state=”” chamber=”lower”] to display a link to the ‘s upper and lower legislative chambers. Replace with the two-letter postal code for the state.
  8. See Plugin homepage for details on setting up API Keys and customizing
The information on a legislator or bill is incorrect. How do I fix it?

All legislative information is pulled from the Open States API and temporarily cached in your database. If you find that information is incorrect, you should first try clearing the cache in the Settings page. If the information is still incorrect, you may need to wait for Open States to correct the data.

I get an error on the geo result page that says my API key is invalid

You not only need a Google Maps API key, you also need to enable the Google Maps Javascript API. In the Developers Console, go to your project. In the dashboard of your project, you will see a “Use Google APIs” box. Click on the “Enable and manage APIs” link. On the new page, click “Google Maps Javascript API” and enable. Do the same for the “Google Maps Geocoding API.”

評價

2016年10月16日
Great idea, this plugin connects to the very valuable Open States public database that “provides a JSON API for accessing state legislative information”. Developer Dan responded very quickly to a small issue I posed in the forum, and gave me a detailed solution that fixed my concern pronto. 🙂
閱讀全部1個評價

貢獻者及開發者

“WP Legisearch” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Legisearch 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.3.3

  • Supports new API format from Open States API

1.3.2

  • Changed to support the now-independent Open States API

1.3.1

  • Fixed a bug related to Open States caching that made processing super slow

1.3

  • Added preference tracking for votes

1.2

  • API Keys will now save when updating or reactivating plugin
  • Improved caching of Open States data
  • Added sponsorship support

1.1

  • Updated the title and content filters because some themes weren’t handling them properly.
  • Improved handling of apostrophes and quotes for bill and vote descriptions.

1.0

  • Initial stable release.