{"id":37863,"date":"2010-09-24T11:36:06","date_gmt":"2010-09-24T15:36:06","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=37863"},"modified":"2012-01-24T19:21:42","modified_gmt":"2012-01-25T00:21:42","slug":"section-schedule-information","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/services\/cccs\/websites\/www\/non-wordpress\/how-to\/coursedescription\/section-schedule-information\/","title":{"rendered":"Section and Schedule Information"},"content":{"rendered":"<p>Section and schedule information can be included for scheduled  courses by including the attribute show_sections=&#8221;Y&#8221; specified in your  course container&#8217;s bub_course or bub_base tag. You can indicate whether  to include or exclude unscheduled courses by using the  show_unscheduled_courses attribute (see the course container section for  details). If you do include section and schedule data, you must set the  semester in the bub_base tag &#8211; otherwise, the system won&#8217;t know which  semester&#8217;s sections to show.<\/p>\n<p>Once you instruct the system to retrieve section information, it can  be included in the course template by using a set of section_block tags  within the course description, like so:<\/p>\n<p>&lt;!&#8211; BEGIN section_block &#8211;&gt;<br \/>\n{!section_name!}<br \/>\n&lt;br \/&gt;<br \/>\n&lt;!&#8211; END section_block &#8211;&gt;<\/p>\n<p>Creating a section block will display each section (A1, B1, etc.) of  the course or display nothing if no sections are scheduled. The  section_block block only contains information about the section name and  instructor. In order to display the times and locations, a  schedule_block needs to be created inside of the section_block. For  example:<\/p>\n<p>&lt;!&#8211; BEGIN section_block &#8211;&gt;<br \/>\n{!section_name!}<br \/>\n&lt;ul&gt;<br \/>\n&lt;!&#8211; BEGIN schedule_block &#8211;&gt;<br \/>\n&lt;li&gt;{!schedule_days!} {!schedule_time_start!}-{!schedule_time_end!}&lt;\/li&gt;<br \/>\n&lt;!&#8211; END schedule_block &#8211;&gt;<br \/>\n&lt;\/ul&gt;<br \/>\n&lt;!&#8211; END section_block &#8211;&gt;<\/p>\n<p>The reason for the block structure is that a course can have multiple  sections, and a section can have multiple schedules. As with the course  templates, you can mix and match special variables (described below)  and arbitrary HTML; each block will be parsed once for each section or  schedule. The following special variables can be used in section or  schedule blocks:<\/p>\n<h3>Section Block Template Elements<\/h3>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"middle\"><strong>Element<\/strong><\/td>\n<td valign=\"middle\"><strong>Description<\/strong><\/td>\n<td valign=\"middle\"><strong>Sample Output<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>section_name<\/strong><\/td>\n<td valign=\"middle\">Letter\/number section code<\/td>\n<td valign=\"middle\">&#8220;A1&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>section_title_abbrev<\/strong><\/td>\n<td valign=\"middle\">Abbreviated section title<\/td>\n<td valign=\"middle\">&#8220;JO INTERNSHIP&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>section_instructor_uc<\/strong><\/td>\n<td valign=\"middle\">Last name of instructor, in caps<\/td>\n<td valign=\"middle\">&#8220;KLARFELD&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>section_instructor<\/strong><\/td>\n<td valign=\"middle\">Last name of instructor<\/td>\n<td valign=\"middle\">&#8220;Klarfeld&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Schedule Block Template Elements<\/h3>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"middle\"><strong>Element<\/strong><\/td>\n<td valign=\"middle\"><strong>Description<\/strong><\/td>\n<td valign=\"middle\"><strong>Sample Output<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_class_type<\/strong><\/td>\n<td valign=\"middle\">Type of class, written fully<\/td>\n<td valign=\"middle\">&#8220;Independent&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_class_type_abbrev<\/strong><\/td>\n<td valign=\"middle\">Type of class, abbreviated<\/td>\n<td valign=\"middle\">&#8220;IND&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_building<\/strong><\/td>\n<td valign=\"middle\">Three letter building code<\/td>\n<td valign=\"middle\">&#8220;SAR&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_room<\/strong><\/td>\n<td valign=\"middle\">Room number<\/td>\n<td valign=\"middle\">&#8220;218&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_days<\/strong><\/td>\n<td valign=\"middle\">Days of section, as single letters<\/td>\n<td valign=\"middle\">&#8220;MW&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_days_1<\/strong><\/td>\n<td valign=\"middle\">Days of section, as single letters separated by a comma<\/td>\n<td valign=\"middle\">&#8220;M, W&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_days_3<\/strong><\/td>\n<td valign=\"middle\">Days of section, as three letters<\/td>\n<td valign=\"middle\">&#8220;Mon, Wed&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_days_full<\/strong><\/td>\n<td valign=\"middle\">Days of section, written fully<\/td>\n<td valign=\"middle\">&#8220;Monday, Wednesday&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_time_start<\/strong><\/td>\n<td valign=\"middle\">Start time<\/td>\n<td valign=\"middle\">&#8220;6:00 PM&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_time_end<\/strong><\/td>\n<td valign=\"middle\">End time<\/td>\n<td valign=\"middle\">&#8220;7:30 PM&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_time_start_24<\/strong><\/td>\n<td valign=\"middle\">Start time written in military time<\/td>\n<td valign=\"middle\">&#8220;18:00&#8221;<\/td>\n<\/tr>\n<tr>\n<td valign=\"middle\"><strong>schedule_time_end_24<\/strong><\/td>\n<td valign=\"middle\">End time written in military time<\/td>\n<td valign=\"middle\">&#8220;19:30&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Below is a sample course description template that uses both the  &#8220;section_block&#8221; and &#8220;schedule_block&#8221; tags. For readability&#8217;s sake, this  example omits HTML markup; in a production environment, you would  probably style the fields below to make them appear like you want them  to.<\/p>\n<p>{!college!} {!department!} {!course_num!} &#8211; {!title!}<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&lt;!&#8211; BEGIN section_block &#8211;&gt;<br \/>\nsection: {!section_name!}<br \/>\ninstructor: {!section_instructor!}<br \/>\nmeets:<br \/>\n&lt;!&#8211; BEGIN schedule_block &#8211;&gt;<br \/>\n{!schedule_days!} {!schedule_time_start!}-{!schedule_time_end!}<br \/>\n({!schedule_building!} {!schedule_room!})<br \/>\n&lt;!&#8211; END schedule_block &#8211;&gt;<br \/>\n&lt;!&#8211; END section_block &#8211;&gt;<\/p>\n<p>This template will be parsed to produce something like:<\/p>\n<p>COM FT 310 &#8211; Screenwriting I<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>section: A1<br \/>\ninstructor: Tba<br \/>\nmeets:<br \/>\nM 2:00 PM-4:30 PM<br \/>\n(SAR 218)<br \/>\nF 1:30 PM-3:00 PM<br \/>\n(COM 213)<\/p>\n<p>section: B1<br \/>\ninstructor: Tba<br \/>\nmeets:<br \/>\nW 2:00 PM-4:30 PM<br \/>\n(CAS B18A)<br \/>\nF 1:30 PM-3:00 PM<br \/>\n(GCB 203)<\/p>\n<p>section: C1<br \/>\ninstructor: Thompson<br \/>\nmeets:<br \/>\nF 10:00 AM-12:30 PM<br \/>\n(KCB 107)<br \/>\nF 1:30 PM-3:00 PM<br \/>\n(KCB 103)<\/p>\n<p>Note that the section and schedule blocks are repeated in the output, despite appearing in the template only once.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Section and schedule information can be included for scheduled courses by including the attribute show_sections=&#8221;Y&#8221; specified in your course container&#8217;s bub_course or bub_base tag. You can indicate whether to include or exclude unscheduled courses by using the show_unscheduled_courses attribute (see the course container section for details). If you do include section and schedule data, you&#8230;<\/p>\n","protected":false},"author":3321,"featured_media":0,"parent":37730,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37863"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/3321"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=37863"}],"version-history":[{"count":7,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37863\/revisions"}],"predecessor-version":[{"id":52734,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37863\/revisions\/52734"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/37730"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=37863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}