Modified parsing code to make it safe for insertion in MySQL.Changes in code for “Update Now” option for Admin.And here are the activities of this week: For implementation of this feature I used existing code for importing packages and modified it to include cURL for file download. There are still a few files in the module left over from the hello_world module that are not being used.įinally the most important feature of my module is implemented and that is to allow instructors to directly import CC packages of OpenLearn in ATutor.
Currently if I break the URL, Update Now eventually times out and generates a very long XML error string. Add an error condition, and a new error message, to catch an incorrect URL for OL entered into the admin’s Repository URL field.After running Update Now, the last updated value appears to be missing the time (e.g.XSS injection is currently possible from the search field. There is a default function for validating text input called $addslashes(), which is a modified version of the php addslashes() function. Validate the data in GET “q” variable.The CP, CC, and RSS link could also be added for items in student search results.create a language token for the text in sublinks.php and add the language to module.sql.Adjust focus for search results & form.
Use the HTML Label element to associate all form labels with their respective form fields.Search by title in particular is helpful for finding a specific unit if someone already knows its name. If there’s time, there could also be choices of which fields to search, like title, description, keywords, date, and the default all.Remove the “Output from ol_search_open_learn module” from the bottom of pages in the content imported if possible.The boolean choices AND should probably be selected as the default.It would be a good idea to have an empty search query display all items to create a browse functionality.Would it be possible to open the item in the accordion that was imported when the page reloads? 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. After importing a cartridge the page reloads and the first item of the search opens.The problems which I considered are shown below: This week’s main focus was on minor changes as suggested by Greg.