diff src/main/webapp/pages/books.jsp @ 13:9c6e74761f60

new: link to Edit Toc page
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 27 May 2015 15:30:09 +0200
parents d57fe2179f61
children 3387d855a194
line wrap: on
line diff
--- a/src/main/webapp/pages/books.jsp	Tue May 26 18:02:03 2015 +0200
+++ b/src/main/webapp/pages/books.jsp	Wed May 27 15:30:09 2015 +0200
@@ -170,17 +170,18 @@
 		<% } else { 
 			sessionBean.getBooksPage().loadParameters(request, response);
 			sessionBean.getBooksPage().loadBooks();
-			
+			// TODO: add a "update" to forceLoadBooks()
 		%>
 			
-		<label class="subTitel">List of Books</label>
-		
+		<div class="subTitel">List of Books
+			<p class="label">Total <%= sessionBean.getBooksPage().getBookNumber() %> books</p>
+		</div>
 		<form name="booksForm"
 			action="<%=sessionBean.getApplicationBean().getRootServer()%>/proxy.jsp"
 			method="post"
 			class="contentForm">
 			<input name="bean" type="hidden" value="booksBean" /> 
-			
+				
 				<table style="width: 90%; margin-left: auto;margin-right: auto;"  class="pageTable">
 					<tr>
 						<td><label class="tableTitle">Book ID</label></td>
@@ -199,7 +200,7 @@
 						<td><label class="tableTitle">Edit Time</label></td>
 						
 					</tr>	
-					
+				
 					<% for(DBBook book : sessionBean.getBooksPage().getCompleteBookList() ) { %>
 					
 					<tr>
@@ -215,7 +216,9 @@
 						<td><%=book.getStart_year() %></td>
 
 						<!-- TODO -->
-						<td>TODO<input type="submit" value="edit" onclick="setAction('editToc', 'booksForm');"/></td>
+						<td><a href="<%=sessionBean.getApplicationBean().getTocInterfaceUrl()%>/check_sections_details.php?book_id=<%=book.getId() %>&amp;count=100&amp;sessionId=<%= session.getId()%>" target="blank">
+						Edit TOC</a></td>
+						
 						<td>TODO<input type="checkbox" name="finished" value="0" <%= (book.getTocCorrection() == 1) ? "checked" : "" %>/><label>Finished</label></td>
 						<td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getEditor() %></td>
 						<td><%= (book.getCurrentSectionVersion() == null) ? "" : book.getCurrentSectionVersion().getDate() %></td>
@@ -223,13 +226,7 @@
 					
 					<% } %>
 				</table>
-				<!-- 
-				<table>
-					<tr>
-						<td><input type="submit" value="Reload" onclick="setAction('reloadBranches', 'homeForm');"/> </td>
-					</tr>
-				</table>
-				 -->
+
 			</form>
 		<% } %>
 	</div>