Skip to content
Snippets Groups Projects
Commit 06e7257a authored by Tim Steiner's avatar Tim Steiner
Browse files

Updates to support changes to OUP files. @2h00

parent 41d5474c
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,9 @@ class Bulletin_RepositoryModel ...@@ -31,6 +31,9 @@ class Bulletin_RepositoryModel
foreach (glob($yearDirectory . '/colleges/*') as $collegeFile) { foreach (glob($yearDirectory . '/colleges/*') as $collegeFile) {
$files[$year]['colleges'][basename($collegeFile)] = basename($collegeFile, '.xhtml'); $files[$year]['colleges'][basename($collegeFile)] = basename($collegeFile, '.xhtml');
} }
foreach (glob($yearDirectory . '/other/*') as $otherFile) {
$files[$year]['other'][basename($otherFile)] = basename($otherFile, '.xhtml');
}
} }
return $files; return $files;
} }
...@@ -218,6 +221,8 @@ class Bulletin_RepositoryModel ...@@ -218,6 +221,8 @@ class Bulletin_RepositoryModel
public function getFilePathForCollegeMajorYear($college, $major, $year) public function getFilePathForCollegeMajorYear($college, $major, $year)
{ {
$college = strtr($college, array('/' => '-'));
$major = strtr($major, array('/' => '-'));
$year = intval($year); $year = intval($year);
$xhtmlFiles = array(); $xhtmlFiles = array();
...@@ -244,7 +249,11 @@ class Bulletin_RepositoryModel ...@@ -244,7 +249,11 @@ class Bulletin_RepositoryModel
if (array_key_exists($major, $nameMap)) { if (array_key_exists($major, $nameMap)) {
$major = $nameMap[$major]; $major = $nameMap[$major];
} }
if ($college == 'Other University Programs') {
$path = $xhtmlFiles['other'][$major];
} else {
$path = $xhtmlFiles['majors'][$major]; $path = $xhtmlFiles['majors'][$major];
}
} else { } else {
$path = $xhtmlFiles['colleges'][$college . ' Main Page']; $path = $xhtmlFiles['colleges'][$college . ' Main Page'];
} }
......
...@@ -400,7 +400,7 @@ class Bulletin_SectionModel extends Unl_Model ...@@ -400,7 +400,7 @@ class Bulletin_SectionModel extends Unl_Model
'requirementsForMinorOfferedByDepartment' => 'Requirements For Minor Offered By Department', 'requirementsForMinorOfferedByDepartment' => 'Requirements For Minor Offered By Department',
), ),
'Other University Programs' => array( 'Other University Programs' => array(
'Academic Policies and Procedures' => array( 'Academic Policies & Procedures' => array(
'creditHourDefinition' => 'Credit Hour Definition', 'creditHourDefinition' => 'Credit Hour Definition',
'academicAdviserAssignment' => 'Academic Adviser Assignment', 'academicAdviserAssignment' => 'Academic Adviser Assignment',
'studentsResponsibilitiesInAcademicAdvising' => 'Students Responsibilities in Academic Advising', 'studentsResponsibilitiesInAcademicAdvising' => 'Students Responsibilities in Academic Advising',
...@@ -414,9 +414,6 @@ class Bulletin_SectionModel extends Unl_Model ...@@ -414,9 +414,6 @@ class Bulletin_SectionModel extends Unl_Model
'honorsConvocationRecognitionRequirements' => 'Honors Convocation Recognition Requirements', 'honorsConvocationRecognitionRequirements' => 'Honors Convocation Recognition Requirements',
'recognitionOfOutstandingAcademicAchievement' => 'Recognition of Outstanding Academic Achievement', 'recognitionOfOutstandingAcademicAchievement' => 'Recognition of Outstanding Academic Achievement',
'gradingPolicies' => 'Grading Policies', 'gradingPolicies' => 'Grading Policies',
'generalEducationRequirementsAce' => 'General Education Requirements (ACE)',
'aceInstitutionalObjectivesAndStudentLearningOutcomes' => 'ACE Institutional Objectives and Student Learning Outcomes',
'aceStructuralCriteria' => 'ACE Structural Criteria',
), ),
'Admissions' => array( 'Admissions' => array(
'assuredAdmission' => 'Assured Admission', 'assuredAdmission' => 'Assured Admission',
...@@ -431,18 +428,18 @@ class Bulletin_SectionModel extends Unl_Model ...@@ -431,18 +428,18 @@ class Bulletin_SectionModel extends Unl_Model
'creditHours' => 'Credit Hours', 'creditHours' => 'Credit Hours',
'militaryObligation' => 'Military Obligation', 'militaryObligation' => 'Military Obligation',
'fieldTrainingProgram' => 'Field Training Program', 'fieldTrainingProgram' => 'Field Training Program',
), ),
'General Education Requirements (ACE)' => array( 'General Education Requirements (ACE)' => array(
'generalEducationRequirementsAce' => 'General Education Requirements (ACE)',
'aceInstitutionalObjectivesAndStudentLearningOutcomes' => 'ACE Institutional Objectives and Student Learning Outcomes',
'aceStructuralCriteria' => 'ACE Structural Criteria',
), ),
'Graduate Studies' => array( 'Graduate Studies' => array(
'admissionOfUnlSeniors' => 'Admission of UNL Seniors', 'admissionOfUnlSeniors' => 'Admission of UNL Seniors',
'graduateCoursesTakenByUnlSeniors' => 'Graduate Courses Taken by UNL Seniors', 'graduateCoursesTakenByUnlSeniors' => 'Graduate Courses Taken by UNL Seniors',
), ),
'Jeffrey S. Raikes School of Computer Science and Management' => array( 'Jeffrey S. Raikes School of Computer Science & Management' => array(
// No Sections 'description' => 'Description',
), ),
'Military Science/Army ROTC' => array( 'Military Science/Army ROTC' => array(
'description' => 'Description', 'description' => 'Description',
...@@ -460,7 +457,7 @@ class Bulletin_SectionModel extends Unl_Model ...@@ -460,7 +457,7 @@ class Bulletin_SectionModel extends Unl_Model
'individualizedProgramOfStudiesInNavalScience' => 'Individualized Program of Studies in Naval Science', 'individualizedProgramOfStudiesInNavalScience' => 'Individualized Program of Studies in Naval Science',
), ),
'Pre-Professional Studies' => array( 'Pre-Professional Studies' => array(
// No sections 'description' => 'Description',
), ),
'The Libraries' => array( 'The Libraries' => array(
'description' => 'Description', 'description' => 'Description',
...@@ -469,13 +466,13 @@ class Bulletin_SectionModel extends Unl_Model ...@@ -469,13 +466,13 @@ class Bulletin_SectionModel extends Unl_Model
'Transfer' => array( 'Transfer' => array(
'undergraduateTransferCreditPolicy' => 'Undergraduate Transfer Credit Policy', 'undergraduateTransferCreditPolicy' => 'Undergraduate Transfer Credit Policy',
'transferCreditPractices' => 'Transfer Credit Practices', 'transferCreditPractices' => 'Transfer Credit Practices',
'aCreditPresentedForTransfer' => 'A. Credit presented for transfer from within the University of Nebraska System', 'aCreditPresentedForTransferFromWithinTheUniversityOfNebraskaSystem' => 'A. Credit presented for transfer from within the University of Nebraska System',
'bInterInstitutionalAgreements' => 'B. Inter-institutional Agreements', 'bInterinstitutionalAgreements' => 'B. Inter-institutional Agreements',
'cCreditPresentedForTransfer' => 'C. Credit presented for transfer which requires additional review by the degree college', 'cCreditPresentedForTransferWhichRequiresAdditionalReviewByTheDegreeCollege' => 'C. Credit presented for transfer which requires additional review by the degree college',
'specialSituationsAndLimitations' => 'Special Situations, Qualifications, and Limitations related to Transfer of Credit', 'specialSituationsQualificationsAndLimitationsRelatedToTransferOfCredit' => 'Special Situations, Qualifications, and Limitations related to Transfer of Credit',
), ),
'University Honors Program' => array( 'University Honors Program' => array(
// No sections 'description' => 'Description',
), ),
), ),
); );
...@@ -535,9 +532,11 @@ class Bulletin_SectionModel extends Unl_Model ...@@ -535,9 +532,11 @@ class Bulletin_SectionModel extends Unl_Model
'</span>' => '', '</span>' => '',
)); ));
$key = strtolower($key); $key = strtolower($key);
$key = strtr($key, array('&amp;' => 'and', '/' => ' ')); $key = strtr($key, array('&amp;' => 'and'));
$key = preg_replace('/\W/', ' ', $key);
$key = ucwords($key); $key = ucwords($key);
$key = strtr($key, array(' ' => '')); $key = strtr($key, array(' ' => ''));
$key = preg_replace('/\W/', '', $key);
$key[0] = strtolower($key[0]); $key[0] = strtolower($key[0]);
$key = strtr($key, array( $key = strtr($key, array(
'majorEndorsementRequirements' => 'majorRequirements' 'majorEndorsementRequirements' => 'majorRequirements'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment