Index: openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl,v diff -u -r1.39 -r1.40 --- openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl 4 Aug 2005 03:10:04 -0000 1.39 +++ openacs-4/packages/dotlrn-ecommerce/lib/tree-chunk.tcl 5 Aug 2005 12:03:50 -0000 1.40 @@ -307,6 +307,7 @@ (@course_list.section_grades@)
@course_list.sessions;noquote@
+
@course_list.section_zones;noquote@

@course_list.instructor_names;noquote@

@course_list.prices;noquote@
@@ -405,7 +406,7 @@ set grade_tree_id [parameter::get -package_id [ad_conn package_id] -parameter GradeCategoryTree -default 0] -db_multirow -extend { fs_chunk section_folder_id section_pages_url category_name community_url course_edit_url section_add_url section_edit_url course_grades section_grades sections_url member_p sessions instructor_names prices shopping_cart_add_url attendees available_slots pending_p waiting_p approved_p instructor_p registration_approved_url button waiting_list_number asm_url } course_list get_courses { } { +db_multirow -extend { fs_chunk section_folder_id section_pages_url category_name community_url course_edit_url section_add_url section_edit_url course_grades section_grades section_zones sections_url member_p sessions instructor_names prices shopping_cart_add_url attendees available_slots pending_p waiting_p approved_p instructor_p registration_approved_url button waiting_list_number asm_url } course_list get_courses { } { # Since dotlrn-ecommerce is based on dotlrn-catalog, # it's possible to have a dotlrn_catalog object without an @@ -528,6 +529,16 @@ set button "[_ dotlrn-ecommerce.join_waiting_list]" } } + + set section_zones [util_memoize [list dotlrn_ecommerce::section::section_zones $community_id]] + + if { [llength $section_zones] == 1 } { + set section_zones "[_ dotlrn-ecommerce.Zone]: [join $section_zones]" + } elseif { [llength $section_zones] > 1 } { + set section_zones "[_ dotlrn-ecommerce.Zones]: [join $section_zones ,]" + } else { + set section_zones "" + } } if { ! [empty_string_p $product_id] } {