Jump to: navigation, search

MDC Infrastructure

452 bytes added, 18:40, 13 December 2006
no edit summary
Intergrate new features to MDC, work on existing bugs and fix compatibility issues for the upgrade of Mediawiki to 1.7. (Tentative description)
References: dria and [[User:sancus| sancus]](primary contact)
== Project Leader(s) ==
<td style="text-align: center; font-weight: bold">Nutch-related bugs</td>
<td>Bug: [ #358112]
* Write code - ''completed 11/15'' ([ code] | [ result])* Write test case - [ test 1 ] ([ code]) | [ test 2 ] ([ code])
Bug: [ #347924]
* Feature #1: "Follow the user-set preference for number of results per page"
Possible future tasks (not planned for this semester- talk to sancus for more details):
* Urchin integration
* Work on skin-related bugs
* Original test case works correctly again ([ output link]). My last modification while working on bug #358112 included a strange edit to the SpecialNutch_class.php file which redefined the $language variable (I have no idea how/when I added that line) causing the search engine to break - thus, my failure to demo the actual search engine working from the test site during the presentation. This really stumped me for awhile because I'm not supposed to edit that file in the first place.
* My fix for #358112 is here: [ SpecialNutch.php]. What it does: When you access the [ Nutch search form] directly, it should only show a field for you to enter your search term. Since we are using English, the output automatically sets the language to 'en' (English) and no longer displays the drop down box ([ as seen on MDC currently]).
* Thanks to Erin's help, I managed to write a basic test case to test my code. However, it only tests the 'en' language - ([ demo] | [ code] ). The reason is because the code obtains the language from the URL that calls it ($_SERVER['PHP_SELF']). After reading up on a lot of documention, the only way to test other languages was create install the wiki for every language and test the URL string - which isn't feasible.* Since there is no direct way that I can test every language, I decided to write a unit test that tests the code I used SpecialNutch.php. This tests constructs a URL for every language, eg. for Korean, the URL will be Then the code (being tested) will extra out 'ko' as the language and tests to make sure that is correct ([ demo] | [ code] ).
== Project Resources ==
* [ Mozilla Developer Centre]

Navigation menu