r135 - in trunk/src/main: java/org/chorem/bow webapp webapp/css
Author: vbriand Date: 2010-12-10 16:38:05 +0100 (Fri, 10 Dec 2010) New Revision: 135 Url: http://chorem.org/repositories/revision/bow/135 Log: Added an alias redirection in the search engine Modified: trunk/src/main/java/org/chorem/bow/ControllerServlet.java trunk/src/main/webapp/bookmark.jsp trunk/src/main/webapp/css/global.css trunk/src/main/webapp/home.jsp Modified: trunk/src/main/java/org/chorem/bow/ControllerServlet.java =================================================================== --- trunk/src/main/java/org/chorem/bow/ControllerServlet.java 2010-12-10 09:28:35 UTC (rev 134) +++ trunk/src/main/java/org/chorem/bow/ControllerServlet.java 2010-12-10 15:38:05 UTC (rev 135) @@ -74,6 +74,7 @@ public class ControllerServlet extends HttpServlet { private static final long serialVersionUID = 1L; private static final Log log = LogFactory.getLog(ControllerServlet.class); + private static final String ALIAS_URL = "http://alias.chorem.org/"; protected String version = ""; protected String bowServletUrl = ""; @@ -384,6 +385,8 @@ searchEngineURL = response.encodeRedirectURL(searchEngineURL); response.sendRedirect(searchEngineURL); + } else if (searchLine != null && searchLine.startsWith("a:")) { //Alias + response.sendRedirect(ALIAS_URL + searchLine.substring(2)); } else { session.setAttribute("user", user); initializeToken(session, user); Modified: trunk/src/main/webapp/bookmark.jsp =================================================================== --- trunk/src/main/webapp/bookmark.jsp 2010-12-10 09:28:35 UTC (rev 134) +++ trunk/src/main/webapp/bookmark.jsp 2010-12-10 15:38:05 UTC (rev 135) @@ -91,6 +91,4 @@ <div class="click"><%=bookmark.getClick()%></div> </div> </div> -<% -} -%> +<% } %> Modified: trunk/src/main/webapp/css/global.css =================================================================== --- trunk/src/main/webapp/css/global.css 2010-12-10 09:28:35 UTC (rev 134) +++ trunk/src/main/webapp/css/global.css 2010-12-10 15:38:05 UTC (rev 135) @@ -63,7 +63,7 @@ margin-bottom:15px; padding:0 40px; line-height:35px; - clear: both; + clear:both; } #main div[class="menu clearfix"] h2{ @@ -80,18 +80,18 @@ } #import .input input{ - width: 90%; - margin-bottom: 10px; + width:90%; + margin-bottom:10px; } .error{ - float: left; + float:left; color:red; font-size:medium; background-color:white; overflow:auto; - margin-bottom: 25px; - padding: 4px; + margin-bottom:25px; + padding:4px; } #footer{ Modified: trunk/src/main/webapp/home.jsp =================================================================== --- trunk/src/main/webapp/home.jsp 2010-12-10 09:28:35 UTC (rev 134) +++ trunk/src/main/webapp/home.jsp 2010-12-10 15:38:05 UTC (rev 135) @@ -72,7 +72,7 @@ </div> <div class="menu clearfix"> - <h2>The last addition bookmarks</h2> + <h2>The latest added bookmarks</h2> </div> <div class="content"> <%
participants (1)
-
vbriand@users.chorem.org