Author: andre
Date: 2010-06-11 12:49:51 +0200 (Fri, 11 Jun 2010)
New Revision: 42523

Removed:
   openimages/trunk/src/main/webapp/WEB-INF/tags/oip/favorite.tagx
Log:
kan weg, nu via ajax OIP-70

Deleted: openimages/trunk/src/main/webapp/WEB-INF/tags/oip/favorite.tagx
===================================================================
--- openimages/trunk/src/main/webapp/WEB-INF/tags/oip/favorite.tagx     
2010-06-11 10:34:54 UTC (rev 42522)
+++ openimages/trunk/src/main/webapp/WEB-INF/tags/oip/favorite.tagx     
2010-06-11 10:49:51 UTC (rev 42523)
@@ -1,57 +0,0 @@
-<jsp:root
-    version="2.0"
-    xmlns:c="http://java.sun.com/jsp/jstl/core";
-    xmlns:jsp="http://java.sun.com/JSP/Page";
-    xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0";
-    >
-  <jsp:directive.attribute name="messages" type="java.lang.Boolean"
-      description="To return messages of favorite (de)selection or 
not">false</jsp:directive.attribute>
-  <jsp:directive.variable name-given="favselected" scope="AT_END" />
-    
-    <mm:maycreate type="ratingrel">
-      <mm:import externid="favorite" />
-      <mm:import externid="remove" />
-      <mm:import externid="user"><mm:cloudinfo type="usernode" id="iam" 
/></mm:import>
-      <mm:nodeinfo type="type" id="type" write="false" />
-      <c:if test="${type eq 'mediafragments' or type eq 'videofragments' or 
type eq 'audiofragments' or type eq 'imagefragments'}">
-        <!-- from mmbaseusers to media -->
-        <mm:listrelationscontainer type="mmbaseusers" role="ratingrel" 
searchdir="source">
-          <mm:constraint field="ratingrel.snumber" value="$user" 
operator="EQUAL" />
-          <mm:listrelations>
-            <mm:node id="favrel" /> <c:set var="favselected" value="selected" 
/>
-          </mm:listrelations>
-        </mm:listrelationscontainer>
-      </c:if>
-    
-      <c:if test="${!empty favorite}">
-        
-        <c:if test="${empty favrel}">
-          <mm:node number="$favorite" id="newfav">
-            <mm:listrelationscontainer type="mmbaseusers" role="ratingrel" 
searchdir="source">
-              <mm:constraint field="ratingrel.snumber" value="$user" 
operator="EQUAL" />
-              <mm:listrelations>
-                <mm:node id="favrel" />
-              </mm:listrelations>
-            </mm:listrelationscontainer>
-          </mm:node>
-        </c:if>
-        
-          <c:if test="${empty remove and empty favrel}">
-            <mm:createrelation source="user" destination="newfav" 
role="ratingrel" />
-            <c:set var="favselected" value="selected" />
-            <c:if test="${messages eq true}">
-              <p class="msg">This media item has been selected as a 
favorite.</p>
-            </c:if>
-          </c:if>
-          <c:if test="${!empty remove and !empty favrel}">
-            <mm:deletenode referid="favrel" />
-            <c:set var="favselected" value="" />
-            <c:if test="${messages eq true}">
-              <p class="msg">Your favorite selection is removed.</p>
-            </c:if>
-          </c:if>
-      </c:if> 
-    
-    </mm:maycreate>
-
-</jsp:root>

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to