changeset 97:2ac9b2e3fb57

1. add new columns : book year and edition year in Topic page. 2. add foot section for copy right announcement.
author Calvin Yeh <cyeh@mpipw-berlin.mpg.com>
date Fri, 29 Sep 2017 15:50:33 +0200
parents a025dd907626
children 62be8de89560
files src/main/webapp/pages/home.jsp
diffstat 1 files changed, 68 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/webapp/pages/home.jsp	Mon Jul 03 23:52:13 2017 +0200
+++ b/src/main/webapp/pages/home.jsp	Fri Sep 29 15:50:33 2017 +0200
@@ -1,7 +1,6 @@
 <%@page import="de.mpiwg.gazetteer.bo.LGBranch"%>
 <%@page import="de.mpiwg.gazetteer.bo.LGTopicSectionRelation"%>
 <%@page import="org.apache.commons.lang.StringUtils"%>
-<%@page import="de.mpiwg.gazetteer.db.DBSection"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
 
 <jsp:useBean id="sessionBean" class="de.mpiwg.web.jsp.SessionBean"
@@ -588,6 +587,71 @@
 								</tr>
 							</table>
 						</td>
+
+
+                        <th>
+                            <table class="sortTable">
+                                <tr>
+                                    <td><label class="tableTitle">Book Year</label></td>
+                                    <td>
+                                        <table>
+                                            <tr><td>
+                                                <input type="image"
+                                                       onclick="setAction('sortByBookYearUp', 'homeForm');"
+                                                       src="<%=sessionBean.getApplicationBean().getUpImage()%>"/>
+                                            </td></tr>
+                                            <tr><td>
+                                                <input type="image"
+                                                       onclick="setAction('sortByBookYearDown', 'homeForm');"
+                                                       src="<%=sessionBean.getApplicationBean().getDownImage()%>"/>
+                                            </td></tr>
+                                        </table>
+                                    </td>
+                                </tr>
+                                <tr>
+                                    <td>
+                                        <input type="text" class="filterInput" name="bookYearFilter" id="bookYearFilter" value="<%= sessionBean.getHomePage().getBookYearFilter()%>"/>
+                                    </td>
+                                    <td>
+                                        <input type="image"
+                                               onclick="setAction('filter', 'searchForm');"
+                                               src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+                                    </td>
+                                </tr>
+                            </table>
+                        </th>
+                        <th>
+                            <table class="sortTable">
+                                <tr>
+                                    <td><label class="tableTitle">Edition Year</label></td>
+                                    <td>
+                                        <table>
+                                            <tr><td>
+                                                <input type="image"
+                                                       onclick="setAction('sortByEditionYearUp', 'homeForm');"
+                                                       src="<%=sessionBean.getApplicationBean().getUpImage()%>"/>
+                                            </td></tr>
+                                            <tr><td>
+                                                <input type="image"
+                                                       onclick="setAction('sortByEditionYearDown', 'homeForm');"
+                                                       src="<%=sessionBean.getApplicationBean().getDownImage()%>"/>
+                                            </td></tr>
+                                        </table>
+                                    </td>
+                                </tr>
+                                <tr>
+                                    <td>
+                                        <input type="text" class="filterInput" name="editionYearFilter" id="editionYearFilter" value="<%= sessionBean.getHomePage().getEditionYearFilter()%>"/>
+                                    </td>
+                                    <td>
+                                        <input type="image"
+                                               onclick="setAction('filter', 'searchForm');"
+                                               src="<%=sessionBean.getApplicationBean().getFilterImage()%>"/>
+                                    </td>
+                                </tr>
+                            </table>
+                        </th>
+
 						<td>
 							<table class="sortTable">
 								<tr>
@@ -747,6 +811,8 @@
 						<td><%=branch.getBook().getDynasty()%></td>
 						<td><%=branch.getBook().getPeriod()%></td>
 						<td><%=branch.getBook().getAdmin_type()%></td>
+                        <td><%=branch.getBook().getBookYear()%></td>
+                        <td><%=branch.getBook().getEditionYear()%></td>
 						<td><%=branch.getSection().getName()%> <%
  	if (branch.isDeprecated()) {
  %>
@@ -863,5 +929,5 @@
 			}
 		%>
 	</div>
-
+    <jsp:include page="../componentes/footer.jsp"/>
 </body>