Files
@ 638ed591b753
Branch filter:
Location: SlatePermutate/school.d/cedarville.inc
638ed591b753
3.0 KiB
text/x-povray
Add basic crawler support for Hope College in light of their winning the Calvin v. Hope basketball game last weekend.
The crawler is unable to, from the data provided by hope, properly recognize
and handle course labs in any fashion. To do that, the human-formatted comment
fields will need to be parsed. These fields are placed in the same column as
the course title is and are in the subsequent row for a particular section --
these fields are currently ignored through the rule which throws out rows with
too few columns.
The crawler is unable to, from the data provided by hope, properly recognize
and handle course labs in any fashion. To do that, the human-formatted comment
fields will need to be parsed. These fields are placed in the same column as
the course title is and are in the subsequent row for a particular section --
these fields are currently ignored through the rule which throws out rows with
too few columns.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | <?php /* -*- mode: php; -*- */
/*
* Copyright 2010 Nathan Gelderloos, Ethan Zonca, Nathan Phillip Brink
*
* This file is part of SlatePermutate.
*
* SlatePermutate is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SlatePermutate is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with SlatePermutate. If not, see <http://www.gnu.org/licenses/>.
*/
function cedarville_info()
{
return array('name' => 'Cedarville University',
'url' => 'http://cedarville.edu/',
'domains' => array(
'cedarville.edu',
),
'example_course_id' => 'MATH-2510',
'registration_url' => 'http://cedarville.edu/cgi-bin/secure/register_student.pl',
'student_address' => 'Cedarville Student',
);
}
function cedarville_instructions_html()
{
return <<<EOF
<h2>Instructions</h2>
<p>
SlatePermutate can be a useful tool for scheduling your next semester at <a href="http://cedarville.edu/" rel="external">Cedarville University</a>.
</p>
<ol>
<li>Enter the course ID, such as PHYS-1020, in the Class ID blank. You will see a list of auto-suggestions.</li>
<li><strong>You must click on the auto-suggested item</strong> to automatically add all sections of the class.</li>
<li>Submit your schedule and view all of the different permutations of your schedule.</li>
<li><strong>Schedule a meeting with your advisor to review your schedule.</strong></li>
<li>When it's time to register, check the "Show Synonyms" box on your schedule and enter your course synonyms into the registration interface.</li>
</ol> <!--'-->
EOF;
}
/**
* \brief
* Get a list of default classes (with sections (with meeting
* times)) for Cedarville students.
*
* \return
* An array of Course objects.
*/
function cedarville_default_courses()
{
$chapel = new Course('Chapel','Chapel');
$chapel->section_add(new Section('_', array(new SectionMeeting('mtwhf', '1000', '1045', '', 'chapel','n/a'))));
return array($chapel);
}
/**
* \brief
* Implement <school_id>_page_css().
*/
function cedarville_page_css($school)
{
return <<<CSS
#container .type-lab .sectionIdentifier,
#container .type-ilb .sectionIdentifier
{
background: none !important;
}
#container .type-lab .sectionIdentifier input,
#container .type-ilb .sectionIdentifier input
{
display: none;
}
#container .type-lab .deleteSection input,
#container .type-ilb .deleteSection
{
display: none;
}
#container .section.type-lab td,
#container .section.type-ilb td
{
background: #96acc4;
}
#container .type-lab .deleteSection:before
{
content: "LAB";
}
#container .type-ilb .deleteSection:before
{
content: "ILB";
}
CSS;
}
|