Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e4125c174c
Fetching contributors…

Cannot retrieve contributors at this time

126 lines (113 sloc) 4.916 kB
<%@ page language="java" import="java.util.*,java.text.*,gov.nysenate.openleg.*,gov.nysenate.openleg.model.*,gov.nysenate.openleg.util.*" contentType="text/html" pageEncoding="utf-8"%>
<%
String appPath = request.getContextPath();
DateFormat df = new SimpleDateFormat("MMM d, yyyy - h:mm a");
Meeting meeting = (Meeting) request.getAttribute("meeting");
//Temp Hack
String calNo = "";
Addendum addendum = null;
if (meeting.getAddendums().size() > 0) {
addendum = meeting.getAddendums().get(meeting.getAddendums().size() - 1);
calNo = addendum.getAgenda().getNumber()+"";
}
%>
<br />
<h2><%=meeting.getCommitteeName()%> - <%=df.format(meeting.getMeetingDateTime())%></h2>
<div style="float: right">
<script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=51a57fb0-3a12-4a9e-8dd0-2caebc74d677&amp;type=website"></script>
</div>
<br style="clear: both;" />
<div id="content">
<%
String chair = meeting.getCommitteeChair();
chair = chair.replace("?", "");
%>
<div>
<b>Agenda:</b> <%=calNo%> / <b>Chair:</b> <a href="<%=appPath%>/search/?term=chair:<%=java.net.URLEncoder.encode("\""
+ meeting.getCommitteeChair() + "\"",
OpenLegConstants.ENCODING)%>"><%=chair%></a>
<% if(meeting.getLocation() != null) { %>
/ <b>Location:</b> <%=meeting.getLocation()%>
<% } %>
<% if (addendum != null) { %>
<b>Addendum:</b> <%=addendum.getAddendumId()%> / <b>Published:</b> <%=addendum.getPublicationDateTime()%> / <b>Week of:</b> <%=addendum.getWeekOf()%>
<% } %>
</div>
<div id="committeeNotes">
<% if (meeting.getNotes() != null && meeting.getNotes().trim().length() > 0) { %>
<h3>Notes</h3>
<%=meeting.getNotes()%>
<% } %>
</div>
<div>
<h3>Bills on the Agenda</h3>
<% if(meeting.getBills() == null || meeting.getBills().isEmpty()) { %>
No bills listed.
<%
}
else {
Iterator<Bill> itBills = meeting.getBills().iterator();
Bill bill = null;
while (itBills.hasNext()) {
bill = itBills.next();
try {
request.setAttribute("bill",bill);
%>
<div class="billSummary" onmouseover="this.style.backgroundColor='#FFFFCC'" onmouseout="this.style.backgroundColor='#FFFFFF'" onclick="location.href='/legislation/bill/<%=bill.getSenateBillNo()%>'">
<a href="/legislation/bill/<%=bill.getSenateBillNo()%>"><%=bill.getSenateBillNo()%>: <%=bill.getTitle()%></a>
<div style="font-size:90%;color:#777777;">
<%=bill.getSummary() %> /
<%if (bill.getSponsor()!=null) { %>
Sponsor: <a href="<%=appPath%>/search/?term=sponsor:%22<%=bill.getSponsor().getFullname()%>%22" class="sublink"><%=bill.getSponsor().getFullname()%></a>
<% } %>
<%if (bill.getCurrentCommittee()!=null) { %>
Committee: <a href="<%=appPath%>/search/?term=committee:%22<%=bill.getCurrentCommittee()%>%22" class="sublink"><%=bill.getCurrentCommittee()%></a>
<% }
if (bill.getVotes()!=null && bill.getVotes().size()>0) {
Iterator<Vote> itVotes = bill.getVotes().iterator();
%>
<ul>
<%
while (itVotes.hasNext()) {
Vote vote = itVotes.next();
if (vote.getVoteType()==Vote.VOTE_TYPE_COMMITTEE && vote.getVoteDate().equals(meeting.getMeetingDateTime())) {
request.setAttribute("vote",vote);
String voteType = "Floor";
if (vote.getVoteType() == Vote.VOTE_TYPE_FLOOR)
voteType = "Floor";
else if (vote.getVoteType() == Vote.VOTE_TYPE_COMMITTEE)
voteType = "Committee";
%>
<li>
Vote: <%=voteType%>
<%if (vote.getDescription()!=null){ %>(<%=vote.getDescription()%>)<%} %>
<%=df.format(vote.getVoteDate())%>:
<%if (vote.getAyes()!=null) { %> <%=vote.getAyes().size()%> Ayes <% } %>
<%if (vote.getAyeswr()!=null){ %> / <%=vote.getAyeswr().size()%> Ayes W/R <% } %>
<%if (vote.getNays()!=null){ %> / <%=vote.getNays().size()%> Nays <% } %>
<%if (vote.getAbstains()!=null) { %> / <%=vote.getAbstains().size()%> Abstains<%} %>
<%if (vote.getExcused()!=null) { %> / <%=vote.getExcused().size()%> Excused<%} %>
</li>
<%
}
}
%>
</ul>
<%
}
%>
</div>
</div>
<%
}
catch (Exception e) {
System.err.println("couldn't render bill: " + bill.getSenateBillNo());
}
}
}%>
</div>
<div id="formatBox"><b>Formats:</b>
<a href="<%=appPath%>/api/1.0/json/meeting/<%=meeting.luceneOid()%>">JSON</a>
<a href="<%=appPath%>/api/1.0/xml/meeting/<%=meeting.luceneOid()%>">XML</a>
</div>
</div>
Jump to Line
Something went wrong with that request. Please try again.