Index: content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java
===================================================================
--- content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java (revision 1408)
+++ content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java (working copy)
@@ -1334,11 +1334,13 @@
resource.setContentType(fp.getRevisedMimeType());
resource.setResourceType(pipe.getAction().getTypeId());
int notification = NotificationService.NOTI_NONE;
+ System.out.println("notify none " + notification );
Object obj = fp.getRevisedListItem();
if(obj != null && obj instanceof ListItem)
{
((ListItem) obj).updateContentResourceEdit(resource);
notification = ((ListItem) obj).getNotification();
+ System.out.println("notify item " + notification );
}
ResourcePropertiesEdit resourceProperties = resource.getPropertiesEdit();
@@ -1371,6 +1373,7 @@
try
{
+ System.out.println("commit " + notification);
ContentHostingService.commitResource(resource, notification);
item_added = true;
new_resources.add(resource);
Index: content-tool/tool/src/webapp/vm/content/sakai_resources_list.vm
===================================================================
--- content-tool/tool/src/webapp/vm/content/sakai_resources_list.vm (revision 1516)
+++ content-tool/tool/src/webapp/vm/content/sakai_resources_list.vm (working copy)
@@ -97,6 +97,7 @@
$tlang.getString("gen.location")
#foreach ($item in $collectionPath)
+ #set($qid=$item.id.replaceAll("'","\\'").replaceAll("\"", """))
#if($item.isLast())
$validator.escapeHtml("$item.name")
#if($upOneLevel)
@@ -109,7 +110,7 @@
#end
#elseif($item.canRead())
$validator.escapeHtml("$item.name")
/
@@ -246,6 +247,8 @@
#set($itemcount = 0)
#set ($unit ="em")
#foreach($item in $site)
+ #set($qid=$item.id.replaceAll("'","\\'").replaceAll("\"", """))
+ #set($dqid=$item.id.replaceAll("\"", """))
#set($itemcount = $itemcount + 1)
#set ($width = "$!{item.depth}$unit")
#if ($item.depth==0)
@@ -272,9 +275,9 @@
#if($item.depth > 0 && $item.hasMultipleItemActions())
+ value="$dqid" />
#foreach($key in $item.multipleItemActions.keySet())$counter.increment("$key") $counter.increment("selectall")#if($selectedItems.contains($item.id))$counter.increment("${key}selected")#end#end
#end
|
@@ -289,9 +292,9 @@
#else
#end
@@ -322,7 +325,7 @@
©
#elseif($item.isCollection())
$validator.escapeHtml(${item.name})
@@ -348,7 +351,7 @@
#set ($itemsOnLine = 0)
#foreach($action in $item.pasteActions)
#if($itemsOnLine > 0)|#end
-
+
#set ($itemsOnLine = $itemsOnLine + 1)
#end
#end
@@ -371,7 +374,7 @@
## $tlang.getString("button.closemenu")
##
#foreach($action in $item.addActions)
- $labeler.getLabel($action)
+ $labeler.getLabel($action)
#end
$tlang.getString("button.endadd")
@@ -402,7 +405,7 @@
##
#foreach($action in $item.otherActions)
-
+
$labeler.getLabel($action)
@@ -507,6 +510,7 @@
#end
################################################################ Eng Paging widgets
#foreach($item in $other_sites)
+ #set($qid=$item.id.replaceAll("'","\\'").replaceAll("\"", """))
############################### Show top level folder #################
#set($itemcount = $itemcount + 1)
#set ($width = "$!{item.depth}$unit")
@@ -534,9 +538,9 @@
#if($item.depth > 0 && $item.hasMultipleItemActions())
+ value="$dqid" />
#foreach($key in $item.multipleItemActions.keySet())$counter.increment("$key") $counter.increment("selectall")#if($selectedItems.contains($item.id))$counter.increment("${key}selected")#end#end
#end
|
@@ -551,9 +555,9 @@
#else
#end
@@ -584,7 +588,7 @@
©
#elseif($item.isCollection())
$validator.escapeHtml(${item.name})
@@ -610,7 +614,7 @@
#set ($itemsOnLine = 0)
#foreach($action in $item.pasteActions)
#if($itemsOnLine > 0)|#end
-
+
#set ($itemsOnLine = $itemsOnLine + 1)
#end
#end
@@ -632,7 +636,7 @@
##
#foreach($action in $item.addActions)
- $labeler.getLabel($action)
+ $labeler.getLabel($action)
#end
@@ -660,7 +664,7 @@
##
#foreach($action in $item.otherActions)
-
+
$labeler.getLabel($action)