Index: openacs-4/packages/xowiki/www/prototypes/bib.page
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/prototypes/bib.page,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/xowiki/www/prototypes/bib.page 25 Jul 2007 23:59:24 -0000 1.2
+++ openacs-4/packages/xowiki/www/prototypes/bib.page 12 Sep 2007 18:36:32 -0000 1.3
@@ -26,8 +26,10 @@
append content "
[next]\n"
}
EntryRenderer instproc by_date {} {
- array set ia [my set instance_attributes]
- return "$ia(year)-[format %2d $ia(month)]"
+ if {[my exists instance_attributes]} {
+ array set ia [my set instance_attributes]
+ return "$ia(year)-[format %2d $ia(month)]"
+ }
}
#
@@ -57,6 +59,8 @@
my get_parameters
set page [my info parent]
+ if {$entries_of eq ""} {return ""}
+
if {[$page exists __including_page]} {
set i [$page set __including_page]
set exclude_item_ids [$i item_id]