@subsite_name;noquote@
-@description;noquote@
+Charter»
@description;noquote@
+
- your clipboards
- ratings
Index: openacs-4/contrib/packages/cop-ui/www/categories/acl.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/cop-ui/www/categories/acl.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/cop-ui/www/categories/acl.tcl 31 Mar 2004 21:12:17 -0000 1.1
+++ openacs-4/contrib/packages/cop-ui/www/categories/acl.tcl 1 Apr 2004 12:09:46 -0000 1.2
@@ -1,3 +1,5 @@
+return -code return
+
set cats {1
{advice, benefits and emergencies}
2
@@ -697,7 +699,7 @@
3
{food hygiene}
4
- {devlivery vehicles}
+ {delivery vehicles}
3
{hygiene inspections}
3
@@ -1547,10 +1549,12 @@
}
-set tree_id [category_tree::add -name Categories -description "CoP Categories" -context_id [subsite::main_site_id]]
+set tree_id [category_tree::add -name APLAWS -description "APLAWS Categories" -context_id [subsite::main_site_id]]
set parent(1) {}
foreach {cat key} $cats {
set parent([expr $cat + 1]) [category::add -name $key -description $key -tree_id $tree_id -parent_id $parent($cat)]
}
+
+category_tree::map -tree_id $tree_id -object_id [subsite::main_site_id]
\ No newline at end of file
Index: openacs-4/contrib/packages/cop-ui/www/clipboards/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/cop-ui/www/clipboards/index.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/cop-ui/www/clipboards/index.adp 28 Mar 2004 21:17:10 -0000 1.1
+++ openacs-4/contrib/packages/cop-ui/www/clipboards/index.adp 1 Apr 2004 12:09:46 -0000 1.2
@@ -13,7 +13,7 @@
-
@clipboards.title@ (@clipboards.clipped@ items, last used @clipboards.last_clip@)
- [ edit | delete ]
+ edit delete
Index: openacs-4/contrib/packages/cop-ui/www/clipboards/remove.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/cop-ui/www/clipboards/remove.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/cop-ui/www/clipboards/remove.tcl 28 Mar 2004 21:17:10 -0000 1.1
+++ openacs-4/contrib/packages/cop-ui/www/clipboards/remove.tcl 1 Apr 2004 12:09:46 -0000 1.2
@@ -18,3 +18,4 @@
}
cop::clipboard::remove -user_id $user_id -clipboard_id $clipboard_id -object_id $object_id
+ad_returnredirect [get_referrer]
Index: openacs-4/contrib/packages/cop-ui/www/clipboards/view.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/cop-ui/www/clipboards/view.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/cop-ui/www/clipboards/view.adp 28 Mar 2004 21:17:10 -0000 1.1
+++ openacs-4/contrib/packages/cop-ui/www/clipboards/view.adp 1 Apr 2004 12:09:46 -0000 1.2
@@ -3,19 +3,20 @@
@context@
- Clipboard @title@ (@items:rowcount@ items) owned by @owner_name@ [Edit]
+ Clipboard @title@ (@items:rowcount@ items attached) Edit title
+ All clipboards
Items in this clipboard:
There are no items in this clipboard.
-
+
+Delete this clipboard
+
Index: openacs-4/contrib/packages/cop-ui/www/clipboards/view.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/cop-ui/www/clipboards/view.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/cop-ui/www/clipboards/view.tcl 28 Mar 2004 21:17:10 -0000 1.1
+++ openacs-4/contrib/packages/cop-ui/www/clipboards/view.tcl 1 Apr 2004 12:09:46 -0000 1.2
@@ -27,11 +27,13 @@
set context [list [list ./ Clipboards] $title]
+# TODO: Yuck! should fix this query. maybe stick it in a cop_object_type view...
db_multirow -extend {clipped} items get_items {
- SELECT o.object_id, o.object_type, coalesce(o.title,'object '||o.object_id) as item_title, to_char(m.clipped_on,'YYYY-MM-DD HH24:MI:SS') as clipped_ansi
- FROM cop_clipboard_object_map m, acs_objects o
+ SELECT o.object_id, t.pretty_name as object_type, coalesce(o.title,'object '||o.object_id) as item_title, to_char(m.clipped_on,'YYYY-MM-DD HH24:MI:SS') as clipped_ansi
+ FROM cop_clipboard_object_map m, acs_objects o, acs_object_types t
WHERE clipboard_id = :clipboard_id
and o.object_id = m.object_id
+ and t.object_type = (case when o.object_type = 'content_item' then (select case when i.content_type = 'content_extlink' then 'content_extlink' else r.object_type end from acs_objects r, cr_items i where r.object_id = coalesce(i.live_revision, i.latest_revision, i.item_id) and i.item_id = o.object_id) else o.object_type end)
} {
set clipped [util::age_pretty -timestamp_ansi $clipped_ansi -sysdate_ansi [clock_to_ansi [clock seconds]]]
}