daveb
committed
on 02 Sep 08
Use course_id to key course links
openacs-4/.../www/admin/course-list.tcl (+1 -1)
49 49         set paginator_query paginator
50 50     }
51 51 }
52 52
53 53 template::list::create \
54 54     -name course_list \
55 55     -multirow course_list \
56 56     -key course_id \
57 57     -page_groupsize 5 \
58 58     -page_flush_p t \
59 59     -page_query_name $query \
60 60     -bulk_action_method post \
61 61     -bulk_action_export_vars {
62 62     }\
63 63     -row_pretty_plural "[_ dotlrn-catalog.courses]" \
64 64     -elements {
65 65         name  {
66 66             label "Course Name (Key)"
67 67             display_template {
68 68                 <div align=left>
69                   <a href="course-info?course_id=@course_list.course_id@&course_name=@course_list.course_name@&course_key=@course_list.course_key@">@course_list.course_name@</a> (@course_list.course_key@)
  69                 <a href="../manage/course-info?course_id=@course_list.course_id@&course_name=@course_list.course_name@&course_key=@course_list.course_key@">@course_list.course_name@</a> (@course_list.course_key@)
70 70                 </div>
71 71             }
72 72         }
73 73         category {
74 74             label "Categories"
75 75             display_template {
76 76                 <div align=center>
77 77                 <if @course_list.category_name@ not eq "">
78 78                     @course_list.category_name@
79 79                 </if>
80 80                 <else>
81 81                    #dotlrn-catalog.uncat#
82 82                 </else>
83 83                 </div>
84 84             }
85 85         }
86 86         sections {
87 87             label Sections
88 88             html { align center }
89 89             display_template {