Index: openacs-4/packages/edit-this-page/www/etp-setup-2-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/www/etp-setup-2-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/edit-this-page/www/etp-setup-2-oracle.xql 31 Oct 2001 04:46:43 -0000 1.1
@@ -0,0 +1,17 @@
+
+
+ postgresql7.1
+
+
+
+select content_folder.new(:name, :title, '', etp_get_folder_id(:parent_package_id));
+
+
+
+
+
+select acs_object.name(:package_id) as title
+
+
+
+
Index: openacs-4/packages/edit-this-page/www/etp-swap-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/www/Attic/etp-swap-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/edit-this-page/www/etp-swap-oracle.xql 31 Oct 2001 04:55:52 -0000 1.1
@@ -0,0 +1,32 @@
+
+
+ oracle8.1.6
+
+
+
+ select tree_sortkey, item_id
+ from cr_items
+ where parent_id = etp.get_folder_id(:package_id)
+ and tree_sortkey < :sort_key
+ order by tree_sortkey desc
+
+
+
+
+
+ select tree_sortkey, item_id
+ from cr_items
+ where tree_sortkey >= :prev_sort_key
+ order by tree_sortkey
+
+
+
+
+
+ update cr_items
+ set tree_sortkey = :new_sortkey
+ where item_id = :item_id
+
+
+
+
Index: openacs-4/packages/edit-this-page/www/etp-symlink-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/edit-this-page/www/etp-symlink-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/edit-this-page/www/etp-symlink-oracle.xql 31 Oct 2001 04:56:26 -0000 1.1
@@ -0,0 +1,26 @@
+
+
+ oracle8.1.6
+
+
+
+ select etp.create_symlink(:package_id, :target_id);
+
+
+
+
+
+ select i.item_id, i.name, etp.get_title(i.item_id, null) as title,
+ repeat(' ',(tree_level(i.tree_sortkey) - 1) * 4) as indent
+ from cr_items i, acs_objects o
+ where i.item_id = o.object_id
+ and o.object_type in ('content_item', 'content_folder')
+ and i.name != 'index'
+ and i.tree_sortkey not like (select tree_sortkey
+ from cr_items
+ where item_id = -400) || '%'
+ order by i.tree_sortkey
+
+
+
+