+
+
+
+
+
+
+
+
+
+#xowiki.references_label# @references;noquote@ @lang_links;noquote@
+
+
+
+#xowiki.your_tags_label#: @tags_with_links;noquote@
+(#xowiki.edit_link#,
+#xowiki.popular_tags_link#)
+
+
+
+
+
+
+Categories: @per_object_categories_with_links;noquote@
+
+
+
+ #general-comments.Comments#
+
+
+
+ @gc_link;noquote@
+
Index: openacs-4/packages/xowiki/www/view-book.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/Attic/view-book.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/xowiki/www/view-book.tcl 29 Dec 2006 11:01:36 -0000 1.1
@@ -0,0 +1,15 @@
+
+#ns_log notice "--including_page= $__including_page, portlet=$portlet"
+set toc [$page include_portlet [list toc -open_page $name -decoration plain]]
+set i [$page set __last_includelet]
+my log "--last includelet = [$page set __last_includelet] [$page exists __is_book_page]"
+if {$i ne "" && ![$page exists __is_book_page]} {
+ set p [$i position]
+ set count [$i count]
+ set book_relpos [format %.2f%% [expr {100.0 * $p / $count}]]
+ if {$p>1} {set book_prev_link [$package_id pretty_link [$i page_name [expr {$p - 1}]]]}
+ if {$p<$count} {set book_next_link [$package_id pretty_link [$i page_name [expr {$p + 1}]]]}
+ ns_log notice "--p=$p, count=$count, relpos=$book_relpos, {100.0 * $p / $count} next=[info exists next_link], prev=[info exists prev_link]"
+ set page_title "
[$i current] $title
"
+}
+set header_stuff [::xowiki::Page header_stuff]
Index: openacs-4/packages/xowiki/www/admin/list.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/admin/list.tcl,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/xowiki/www/admin/list.tcl 17 Nov 2006 21:26:24 -0000 1.6
+++ openacs-4/packages/xowiki/www/admin/list.tcl 29 Dec 2006 11:01:36 -0000 1.7
@@ -64,6 +64,9 @@
-height 8 -border 0 -title "Toggle Publish Status" \
-alt "publish status" -label [_ xowiki.publish_status] -html {style "padding: 2px;"}
}
+ if {[::xo::has_ltree]} {
+ AnchorField page_order -label [_ xowiki.order] -orderby page_order
+ }
AnchorField name -label [_ xowiki.name] -orderby name
Field object_type -label [_ xowiki.page_type] -orderby object_type
Field size -label "Size" -orderby size -html {align right}
@@ -83,7 +86,9 @@
[$object_type instance_select_query \
-folder_id [::$package_id folder_id] \
-with_subtypes $with_subtypes \
- -select_attributes [list revision_id content_length creation_user \
+ -from_clause ", xowiki_page P" \
+ -where_clause "P.page_id = cr.revision_id" \
+ -select_attributes [list revision_id content_length creation_user page_order \
"to_char(last_modified,'YYYY-MM-DD HH24:MI:SS') as last_modified"] \
-order_clause $order_clause \
] {
@@ -99,8 +104,7 @@
-mod_user [::xo::get_user_name $creation_user] \
-delete.href [export_vars -base [$package_id package_url] {{delete 1} item_id name return_url}]
if {$::individual_permissions} {
- # TODO: this should get some architectural support
- [lindex [t1 set __children] end] set permissions.href \
+ [t1 last_child] set permissions.href \
[export_vars -base permissions {item_id return_url}]
}
if {$::with_publish_status} {
@@ -112,11 +116,14 @@
set image inactive.png
set state "ready"
}
- [lindex [t1 set __children] end] set publish_status.src /resources/xowiki/$image
- [lindex [t1 set __children] end] set publish_status.href \
+ [t1 last_child] set publish_status.src /resources/xowiki/$image
+ [t1 last_child] set publish_status.href \
[export_vars -base [$package_id package_url]admin/set-publish-state \
{state revision_id return_url}]
}
+ if {[::xo::has_ltree]} {
+ [t1 last_child] set page_order $page_order
+ }
}
set t1 [t1 asHTML]
Index: openacs-4/packages/xowiki/www/portlets/include.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/portlets/Attic/include.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/xowiki/www/portlets/include.tcl 25 Dec 2006 21:26:21 -0000 1.2
+++ openacs-4/packages/xowiki/www/portlets/include.tcl 29 Dec 2006 11:01:36 -0000 1.3
@@ -1,3 +1,4 @@
#ns_log notice "--including_page= $__including_page, portlet=$portlet"
set content [$__including_page include_portlet $portlet]
+set header_stuff [::xowiki::Page header_stuff]
template::set_file [file dir $__adp_stub]/plain-include
Index: openacs-4/packages/xowiki/www/prototypes/book.page
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/prototypes/book.page,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/xowiki/www/prototypes/book.page 29 Dec 2006 11:01:37 -0000 1.1
@@ -0,0 +1,13 @@
+::xowiki::Page new -title "Book" -text {
+
+>>left-col25<<
+{{toc -decoration plain -book_mode 1 -expand_all 1}}
+>><<
+
+>>right-col75<<
+
@title@
+
Creator: @creator@
+
{{book}}
+>><<
+
+}
Index: openacs-4/packages/xowiki/www/resources/next-end.png
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/next-end.png,v
diff -u
Binary files differ
Index: openacs-4/packages/xowiki/www/resources/next.png
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/next.png,v
diff -u
Binary files differ
Index: openacs-4/packages/xowiki/www/resources/previous-end.png
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/previous-end.png,v
diff -u
Binary files differ
Index: openacs-4/packages/xowiki/www/resources/previous.png
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/previous.png,v
diff -u
Binary files differ
Index: openacs-4/packages/xowiki/www/resources/xowiki.css
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/resources/xowiki.css,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/xowiki/www/resources/xowiki.css 2 Dec 2006 14:09:35 -0000 1.7
+++ openacs-4/packages/xowiki/www/resources/xowiki.css 29 Dec 2006 11:01:37 -0000 1.8
@@ -49,10 +49,10 @@
/* table, td {font: 10px 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; color: #000;}*/
#main div.column {text-align: left; margin-bottom: 1em;}
#content {float: left; width: 70%}
-#page-body h1 {font-size: 24px; margin: 0 0 .5em 0;}
-#page-body h2 {font-size: 16px}
-#page-body h3 {font-size: 12px}
-#page-body h4 {font-size: 10px; margin: 0;}
+#page-body h1 {font-size: 24px; margin: 0 0 .5em 0; clear: both;}
+#page-body h2 {font-size: 16px; clear: both;}
+#page-body h3 {font-size: 14px}
+#page-body h4 {font-size: 12px; margin: 0;}
#page-body .box {border: 1px solid #a1a5a9; padding: 0 5px 5px 5px; margin: 0 0 1.25em 0;}
#content .box h2 {border-bottom: 1px solid #a1a5a9; padding: 5px; background: #f2f2f2; margin: 0 -5px 5px -5px; font-size: 12px;}
#sidebar {float: right; top: 0px; width: 29%; font: 10px 'Lucida Grande', Geneva, Verdana, Arial, sans-serif;}