OpenLearn Module for ATutor

Project under GSoC 2011

Try module on live server

leave a comment »

Check out module on live server: http://atutor.ca/atutor/demo/index.php

Written by heratgandhi

August 23, 2011 at 2:22 pm

Posted in GSoC 2011

Tagged with ,

Stable Version 1.0

leave a comment »

Here I have attached stable 1.0 version of Search OpenLearn module.

http://www.mediafire.com/?l7nbsr0s15wa92u

 

Written by heratgandhi

August 20, 2011 at 12:11 pm

Posted in GSoC 2011

Tagged with , ,

Week – 12

leave a comment »

Progress:

This is the last post for GSoC. GSoC will be officially over on 22nd August. This week was dedicated to some minor changes and testing. The next week will also be allocated for testing. Follow this blog for regular updates for module. I will be posting stable 1.0 version soon.

Written by heratgandhi

August 14, 2011 at 11:10 am

Posted in GSoC 2011

Tagged with , ,

Week – 11

leave a comment »

Progress:

I removed some small bugs from module files. I also tested module code using AChecker.

About AChecker:

“It checks single HTML pages for conformance with accessibility standards to ensure the content can be accessed by everyone. ”

I tested my code using HTML validator and WCAG 2.0 (Level AA). I found many errors in my code. I have modified code to remove these errors. I need to perform again rigorous testing again during next week.

Written by heratgandhi

August 7, 2011 at 8:57 am

Posted in GSoC 2011

Tagged with , ,

Week – 10

leave a comment »

Progress:

This week’s main focus was on minor changes as suggested by Greg. The problems which I considered are shown below:

  • After importing a cartridge the page reloads and the first item of the search opens. If the import was from one of the items other than the first, opening the first item in the accordion on reload creates a bit of confusion. Would it be possible to open the item in the accordion that was imported when the page reloads?
  • It would be a good idea to have an empty search query display all items to create a browse functionality.
  • The boolean choices AND should probably be selected as the default.
  • Remove the “Output from ol_search_open_learn module” from the bottom of pages in the content imported if possible.
  • If there’s time, there could also be choices of which fields to search, like title, description, keywords, date, and the default all. Search by title in particular is helpful for finding a specific unit if someone already knows its name. Date is useful for finding new units. etc.
  • Use the HTML Label element to associate all form labels with their respective form fields. This is an accessibility requirement.
  • Adjust focus for search results & form.
  • create a language token for the text in sublinks.php and add the language to module.sql.
  • The CP, CC, and RSS link could also be added for items in student search results.
  • Validate the data in GET “q” variable. There is a default function for validating text input called $addslashes(), which is a modified version of the php addslashes() function. XSS injection is currently possible from the search field. And maybe SQL injection. search for – w’alert(“hello”)’
  • Test cron feature.
  • After running Update Now, the last updated value appears to be missing the time (e.g. Last Updated: 2011-07-22 at ?)
  • Add an error condition, and a new error message, to catch an incorrect URL for OL entered into the admin’s Repository URL field. Currently if I break the URL,  Update Now eventually times out and generates a very long XML error string.
  • There are still a few files in the module left over from the hello_world module that are not being used.

Written by heratgandhi

July 31, 2011 at 10:17 am

Posted in GSoC 2011

Tagged with , ,

Week – 9

leave a comment »

Progress:

This week’s main target was documentation. I have started documenting code. Other than that I modified code to make it compatible to my guide’s suggestions. Now I have started focusing on finishing code because very less time is left for GSoC.

Written by heratgandhi

July 24, 2011 at 12:58 pm

Posted in GSoC 2011

Tagged with , ,

Week – 8

leave a comment »

Progress:

During this week I added following features:

  • Option of downloading .doc file for the unit to both students & instructors
  • UI is changed and it includes +/- signs for expansion and contraction of a search result

As this week we had midterm evaluation of GSoC, I was busy with it too. I passed midterm evaluation successfully. Now I need to arrange module files so that it is ready for first release.

Written by heratgandhi

July 17, 2011 at 9:56 am

Posted in GSoC 2011

Tagged with , ,

Week – 7

leave a comment »

Progress:

During this week I added following features:

  • Option of choosing sorting order before and after submitting query
  • Date is also shown in search results
  • RSS link for unit is shown to instructors
  • Default numbers of records shown is 10
  • Keywords are preserved in textbox
  • Boolean search option for multiple keywords

Written by heratgandhi

July 12, 2011 at 1:29 pm

Posted in GSoC 2011

Tagged with , , ,

Week – 6

leave a comment »

Progress:

Finally the most important feature of my module is implemented and that is to allow instructors to directly import CC packages of OpenLearn in ATutor. For implementation of this feature I used existing code for importing packages and modified it to include cURL for file download. And here are the activities of this week:

  • Implementation of import functionality
  • Changes in code for “Update Now” option for Admin
  • Modified parsing code to make it safe for insertion in MySQL
  • Implemented Paginator for navigation of search results
  • Changes in UI

Now some more details:

My mentor Greg found some bugs in the “Update Now” option and informed me. When I tested it, I found that when I modified parsing code I forgot to modify “Update Now” code.  So I modified the updating code to include changes. And when I was testing parsing code I found that there are total 567 records in OL repository and I am getting only 565 records in table so I found that some records were not being inserted because there were special characters in them. So I included addslashes() function to make it safe for MySQL and on the retrieving side I added stripslashes() function to get original data. Search engine’s results are always displayed using paginator. Therefore I needed to include one in my code. I used existing paginator of ATutor for this purpose. I also modified UI to make it key board navigable and look like accordion. I have used modified version of accordion for this purpose because jQuery has keyboard navigation problems.

Written by heratgandhi

July 3, 2011 at 11:38 am

Posted in GSoC 2011

Tagged with , , , ,

Week – 5

leave a comment »

Progress:

This week has been the most confusing week of my journey till now. During this week I tried to implement “import” functionality which will allow instructors to directly import OpenLearn courses to ATutor.

During this week I carried out following activities:

  1. Download cc package to temporary location.

Status – Completed

  1. Upload downloaded package to ATutor using cURL

Status – In progress

  1. Change the way results are displayed such that they are key board navigable and looks like accordion

Status – Completed

Direct import using URLs of OpenLearn units is not allowed in ATutor because OpenLearn uses cookies and ATutor’s code is written for simple file downloads. So I need to implement import feature such that it uses ATutor’s existing code of import and still allows downloads using cookies. For this I have chosen two steps approach in which first I will download cc packages to a temporary location and later this cc package will be uploaded to ATutor.

Written by heratgandhi

June 26, 2011 at 1:23 pm

Posted in GSoC 2011

Tagged with , , , ,