README.md 2.46 KB
Newer Older
Arthur Barrett committed
1
Notes Django App
Arthur committed
2
================
Arthur Barrett committed
3 4 5 6 7 8

This is a django application that stores and displays notes that students make while reading static HTML book(s) in their courseware.  Note taking functionality in the static HTML book(s) is handled by a wrapper script around [annotator.js](http://okfnlabs.org/annotator/), which interfaces with the API provided by this application to store and retrieve notes.

Usage
-----

Arthur committed
9
To use this application, course staff must opt-in by doing the following:
Arthur Barrett committed
10

Arthur committed
11 12 13 14
* Login to [Studio](http://studio.edx.org/).
* Go to *Course Settings* -> *Advanced Settings*
* Find the ```advanced_modules``` policy key and in the policy value field, add ```"notes"``` to the list. 
* Save the course settings.
Arthur Barrett committed
15 16 17 18 19 20 21 22 23 24 25

The result of following these steps is that you should see a new tab appear in the courseware named *My Notes*. This will display a journal of notes that the student has created in the static HTML book(s). Second, when you highlight text in the static HTML book(s), a dialog will appear. You can enter some notes and tags and save it. The note will appear highlighted in the text and will also be saved to the journal. 

To disable the *My Notes* tab and notes in the static HTML book(s), simply reverse the above steps (i.e. remove ```"notes"``` from the ```advanced_modules``` policy setting).

### Caveats and Limitations

* Notes are private to each student. 
* Sharing and replying to notes is not supported.
* The student *My Notes* interface is very limited. 
* There is no instructor interface to view student notes.
Arthur committed
26 27 28 29 30 31 32

Developer Overview
------------------

### Quickstart

```
33
$ ./manage.py lms syncdb --migrate
Arthur committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
```

Then follow the steps above to enable the *My Notes* tab or manually add a tab to the policy tab configuration with ```{"type": "notes", "name": "My Notes"}```.

### App Directory Structure:

lms/djangoapps/notes:

* api.py - API used by annotator.js on the frontend
* models.py - Contains note model for storing notes
* tests.py - Unit tests
* views.py - View to display the journal of notes (i.e. *My Notes* tab)
* urls.py - Maps the API and View routes.
* utils.py - Contains method for checking if the course has this app enabled. Intended to be public to other modules.

Also requires:

*  lms/static/coffee/src/notes.coffee -- wrapper around annotator.js
*  lms/templates/notes.html -- used by views.py to display the notes

Interacts with:

* lms/djangoapps/staticbook - the html static book checks to see if notes is enabled and has some logic to enable/disable accordingly