Update of /var/cvs/applications/editwizard/blocks/advanced/tasks
In directory james.mmbase.org:/tmp/cvs-serv19681/advanced/tasks

Modified Files:
        news.xml news_origin.xml 
Log Message:
let the example for posrel be actually universally correct


See also: 
http://cvs.mmbase.org/viewcvs/applications/editwizard/blocks/advanced/tasks


Index: news.xml
===================================================================
RCS file: /var/cvs/applications/editwizard/blocks/advanced/tasks/news.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- news.xml    6 Aug 2008 16:17:13 -0000       1.1
+++ news.xml    5 Mar 2009 08:11:30 -0000       1.2
@@ -110,7 +110,7 @@
 
       <action type="add">
         <relation role="posrel" destinationtype="urls">
-          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true']/fie...@name='pos'])+{$pos}}</field>
+          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true' and @source=/data/object/@number and object/@searchtype = 
'urls']/fie...@name='pos'])+{$pos}}</field>
         </relation>
       </action>
 
@@ -120,7 +120,7 @@
 
       <action type="create">
         <relation role="posrel" destinationtype="urls">
-          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true']/fie...@name='pos'])+{$pos}}</field>
+          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true' and @source=/data/object/@number and object/@searchtype = 
'urls']/fie...@name='pos'])+{$pos}}</field>
           <object type="urls">
             <field name="url">http://</field>
           </object>
@@ -150,7 +150,7 @@
 
       <action type="create">
         <relation role="posrel" destinationtype="news" createdir="source">
-          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true']/fie...@name='pos'])+{$pos}}</field>
+          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true' and @source=/data/object/@number and object/@searchtype = 
'news']/fie...@name='pos'])+{$pos}}</field>
          </relation>
       </action>
     </list>


Index: news_origin.xml
===================================================================
RCS file: 
/var/cvs/applications/editwizard/blocks/advanced/tasks/news_origin.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- news_origin.xml     6 Aug 2008 16:17:13 -0000       1.1
+++ news_origin.xml     5 Mar 2009 08:11:30 -0000       1.2
@@ -111,7 +111,7 @@
 
       <action type="add">
         <relation role="posrel" destinationtype="urls">
-          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true']/fie...@name='pos'])+{$pos}}</field>
+          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true' and @source=/data/object/@number and object/@searchtype = 
'urls']/fie...@name='pos'])+{$pos}}</field>
         </relation>
       </action>
 
@@ -121,7 +121,7 @@
 
       <action type="create">
         <relation role="posrel" destinationtype="urls">
-          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true']/fie...@name='pos'])+{$pos}}</field>
+          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true' and @source=/data/object/@number and object/@searchtype = 
'urls']/fie...@name='pos'])+{$pos}}</field>
           <object type="urls">
             <field name="url">http://</field>
           </object>
@@ -151,7 +151,7 @@
 
       <action type="add">
         <relation role="posrel" destinationtype="news" createdir="source">
-          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true']/fie...@name='pos'])+{$pos}}</field>
+          <field name="pos">{sum(//relati...@role='posrel' and 
@lastitem='true' and @source=/data/object/@number and object/@searchtype = 
'news']/fie...@name='pos'])+{$pos}}</field>
          </relation>
       </action>
     </list>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to