The content on NYSenate.gov is stored as "nodes" of various content types [1] by the Drupal content management system. The content type specifies the available fields that can be retrieved from nodes of that type. The documentation below lists the most important content types and the fields that can be retrieved for each.
Senators
A Senator node contains the name, biography, contact information, party affiliation and other information about a single Senator. Nodes of type "senator" include the following fields:
- nid
- The senator's node ID
- title
- The senator's name
- body
- The senator's bio
- teaser
- A shortened version of the senator's bio
- path
- the local path to the Senator's home page
- field_contact_information
- An HTML-formatted block containing the senator's contact information (address, phone number, etc.)
- field_email
- The senator's email address
- field_majority
- Is the senator a member of the majority party? 1 if yes, 0 if no.
- field_profile_picture
- The filepath and other information pointing to a photo of the senator
- field_senators_district
- The node id of the Senator's district. (A "district" is a separate node type from a "senator.")
- field_facebook_link
- The URL to the Senator's Facebook page, if it exists
- field_party_affiliation
- Information about the senator's party affiliation(s). A senator may be affiliated with more than one party. Available options include:
D Democratic R Republican C Conservative CNST Constitution G Green IP Independence I Independent/No Party Ind Independent L Liberal LIBT Libertarian NL Natural Law RTL Right to Life SJ Save Jobs SC School Choice SWP Socialist Workers WF Working Families - field_twitter_link
- The URL to the Senator's Twitter feed, if it exists
- field_myspace_link
- The URL to the Senator's MySpace page, if it exists
- field_location
- The address (including latitude and longitude) and phone number of the Senator's office
- field_youtube_link
- The URL to the Senator's YouTube page, if it exists
- field_flickr_link
- The URL to the Senator's Flickr page, if it exists
- field_last_name
- The Senator's last name, followed by a comma and the first name (suitable for alphabetical sorting)
- field_picasa_link
- The URL to the Senator's Picasa link, if it exists
- field_about_block
- An HTML block about a current issue that the Senator is promoting
- field_promo_sidebar
- The URL to an initiative that the Senator is promoting, as well as the filepath to a related image
Committees
Due to the high volume and complexity of its work, the Senate divides its tasks among different committees. Nodes of type "committee" include the following fields:
- nid
- Node ID
- type
- Type of Node
- created
- When committee was created
- changed
- When committee was last changed
- title
- Title of Committee
- body
- Meeting Time and Location
- path
- Path from Root (nysenate.gov)
- field_chairs
- Node ID for the Chair
- field_multi_senator
- Node IDs for Committee Members
- field_video
- Committee Livestream URL
- taxonomy
- Type of Committee (Standing/Temporary, etc...)
Districts
New York is divided into 62 Senate districts. Each Senator is elected to represent a district. Nodes of type "district" include the following fields:
- nid
- Node ID
- type
- Type of Node
- title
- Name of District
- path
- Path from Root (nysenate.gov)
- field_district_map
- Image of District Map
- field_district_number
- Number of District
Events
An event can be a committee meeting, a public hearing, or a session of the full senate. Nodes of type "event" include the following fields:
- nid
- Node ID
- type
- Type of Node
- created
- When event was created
- changed
- When event was last changed
- title
- Title of Event
- body
- Event Description
- path
- Path from Root (nysenate.gov)
- field_date
- Date and Time When Event is Taking Place
- field_location
- Location of Event
- field_senator
- Sponsoring Senator(s) Node ID
- field_district
- Sponsoring District ID(s) Node ID
- field_committee
- Sponsoring Committee
- field_agenda
- Meeting Information
- field_purpose
- Hearing Information
- field_votes
- Voting Information
- field_witness_list
- Witness Information
- field_video
- Video URL
- field_feature_image
- Featured Image
- field_pdf
- Attached Files
- field_search_text
- Event Information
- location
- Location of Event
Blog entries
Blog entries are single posts to an online journal by senators or senate staff. Nodes of type "blog" include the following fields:
- nid
- Node ID
- type
- Type of Node
- title
- Name of District
- body
- Body of Blog Entry
- name
- Name of Writer
- path
- Path from Root (nysenate.gov)
- field_publication_date
- Date Published
- field_senator
- Associated Senator
- field_district
- Associated District
- field_committee
- Associated Committee
- field_feature_image
- Featured Image
- field_extra_images
- Additional Images
- field_pdf
- Attachments
In the News
"In the news" items reference external news stories that mention Senators or Senate business. Nodes of type "in_the_news" include the following fields:
- nid
- Node ID
- type
- Type of Node
- title
- Name of District
- body
- Body of In The News Entry
- name
- Name of Writer
- path
- Path from Root (nysenate.gov)
- field_publication_date
- Date Published
- field_senator
- Associated Senator
- field_district
- Associated District
- field_committee
- Associated Committee
- field_feature_image
- Featured Image
- field_extra_images
- Additional Images
- field_pdf
- Attachments
Initiatives
Initiatives are limited-duration projects initiated by the Senate, such as the Haitian assistance and relief task force [2] or the New York Senate Veterans' Hall of Fame [3]. Nodes of type "initiative" include the following fields:
- nid
- Node ID
- type
- Type of Node
- created
- When the initiative was created
- changed
- When the initiative was last changed
- title
- Title of Initiative
- path
- Path from Root (nysenate.gov)
- field_feature_image
- Featured Image for Initiative
- field_sidebar_html
- More Information for Initiative (about, list of links, etc...)
