Author: ssthkjer
Date: 2007-01-30 16:32:33 +0100 (Tue, 30 Jan 2007)
New Revision: 4380

Added:
   trunk/war/src/webapp/WEB-INF/jsp/decorators/vcardDecorator.jsp
Modified:
   trunk/war/src/webapp/WEB-INF/decorators.xml
   trunk/war/src/webapp/WEB-INF/sitemesh.xml
Log:
https://jira.sesam.no/jira/browse/SEARCH-1353 - Implementere vcard

Modified: trunk/war/src/webapp/WEB-INF/decorators.xml
===================================================================
--- trunk/war/src/webapp/WEB-INF/decorators.xml 2007-01-26 14:23:44 UTC (rev 
4379)
+++ trunk/war/src/webapp/WEB-INF/decorators.xml 2007-01-30 15:32:33 UTC (rev 
4380)
@@ -12,6 +12,8 @@
 
     <decorator name="savedecorator" page="saveDecorator.jsp"/>
     
+    <decorator name="vcarddecorator" page="vcardDecorator.jsp"/>
+    
     <decorator name="maindecorator" page="mainDecorator.jsp">
            <pattern>*</pattern>
     </decorator>

Added: trunk/war/src/webapp/WEB-INF/jsp/decorators/vcardDecorator.jsp
===================================================================
--- trunk/war/src/webapp/WEB-INF/jsp/decorators/vcardDecorator.jsp              
                (rev 0)
+++ trunk/war/src/webapp/WEB-INF/jsp/decorators/vcardDecorator.jsp      
2007-01-30 15:32:33 UTC (rev 4380)
@@ -0,0 +1,10 @@
+<[EMAIL PROTECTED] contentType="text/x-vcard; charset=utf-8"%><[EMAIL 
PROTECTED] pageEncoding="UTF-8"%>
+<%@ taglib uri="/WEB-INF/SearchPortal.tld" prefix="search" %>
+<% String currentC = (String) request.getAttribute("c"); %>
+<%if (currentC.equals("yvc")) { %>    
+<search:velocity template="/results/vcardYellow"/>
+<% } else { %>
+<search:velocity template="/results/vcardWhite"/>
+<%}%>      
+
+

Modified: trunk/war/src/webapp/WEB-INF/sitemesh.xml
===================================================================
--- trunk/war/src/webapp/WEB-INF/sitemesh.xml   2007-01-26 14:23:44 UTC (rev 
4379)
+++ trunk/war/src/webapp/WEB-INF/sitemesh.xml   2007-01-30 15:32:33 UTC (rev 
4380)
@@ -6,6 +6,7 @@
         <parser content-type="text/html" 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
         <parser content-type="text/xml" 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
         <parser content-type="text/calendar" 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
+        <parser content-type="text/x-vcard" 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
         <parser content-type="text/html;charset=ISO-8859-1"
                 
class="com.opensymphony.module.sitemesh.parser.HTMLPageParser"/>
     </page-parsers>

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to