@@ -8,7 +8,7 @@ from xmodule.raw_module import RawDescriptor
...
@@ -8,7 +8,7 @@ from xmodule.raw_module import RawDescriptor
fromxblock.coreimportScope,String
fromxblock.coreimportScope,String
fromxmodule.annotator_mixinimportget_instructions
fromxmodule.annotator_mixinimportget_instructions
fromxmodule.annotator_tokenimportretrieve_token
fromxmodule.annotator_tokenimportretrieve_token
fromxblock.fragmentimportFragment
importtextwrap
importtextwrap
# Make '_' a no-op so we can scrape strings
# Make '_' a no-op so we can scrape strings
...
@@ -17,7 +17,9 @@ _ = lambda text: text
...
@@ -17,7 +17,9 @@ _ = lambda text: text
classAnnotatableFields(object):
classAnnotatableFields(object):
"""Fields for `TextModule` and `TextDescriptor`."""
"""Fields for `TextModule` and `TextDescriptor`."""
data=String(help=_("XML data for the annotation"),scope=Scope.content,default=textwrap.dedent("""\
data=String(help=_("XML data for the annotation"),
scope=Scope.content,
default=textwrap.dedent("""\
<annotatable>
<annotatable>
<instructions>
<instructions>
<p>
<p>
...
@@ -47,8 +49,43 @@ class AnnotatableFields(object):
...
@@ -47,8 +49,43 @@ class AnnotatableFields(object):
scope=Scope.settings,
scope=Scope.settings,
default='None',
default='None',
)
)
annotation_storage_url=String(help=_("Location of Annotation backend"),scope=Scope.settings,default="http://your_annotation_storage.com",display_name=_("Url for Annotation Storage"))
diacritics=String(
annotation_token_secret=String(help=_("Secret string for annotation storage"),scope=Scope.settings,default="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",display_name=_("Secret Token String for Annotation"))
display_name=_("Diacritic Marks"),
help=_("Add diacritic marks to be added to a text using the comma-separated form, i.e. markname;urltomark;baseline,markname2;urltomark2;baseline2"),
scope=Scope.settings,
default='',
)
annotation_storage_url=String(
help=_("Location of Annotation backend"),
scope=Scope.settings,
default="http://your_annotation_storage.com",
display_name=_("Url for Annotation Storage")
)
annotation_token_secret=String(
help=_("Secret string for annotation storage"),
scope=Scope.settings,
default="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
display_name=_("Secret Token String for Annotation")
)
default_tab=String(
display_name=_("Default Annotations Tab"),
help=_("Select which tab will be the default in the annotations table: myNotes, Instructor, or Public."),
scope=Scope.settings,
default="myNotes",
)
# currently only supports one instructor, will build functionality for multiple later
instructor_email=String(
display_name=_("Email for 'Instructor' Annotations"),
help=_("Email of the user that will be attached to all annotations that will be found in 'Instructor' tab."),
scope=Scope.settings,
default="",
)
annotation_mode=String(
display_name=_("Mode for Annotation Tool"),
help=_("Type in number corresponding to following modes: 'instructor' or 'everyone'"),
display_name=_("Secret Token String for Annotation")
)
default_tab=String(
display_name=_("Default Annotations Tab"),
help=_("Select which tab will be the default in the annotations table: myNotes, Instructor, or Public."),
scope=Scope.settings,
default="myNotes",
)
# currently only supports one instructor, will build functionality for multiple later
instructor_email=String(
display_name=_("Email for 'Instructor' Annotations"),
help=_("Email of the user that will be attached to all annotations that will be found in 'Instructor' tab."),
scope=Scope.settings,
default="",
)
annotation_mode=String(
display_name=_("Mode for Annotation Tool"),
help=_("Type in number corresponding to following modes: 'instructor' or 'everyone'"),
scope=Scope.settings,
default="everyone",
)
)
sourceurl=String(help=_("The external source URL for the video."),display_name=_("Source URL"),scope=Scope.settings,default="http://video-js.zencoder.com/oceans-clip.mp4")
annotation_storage_url=String(help=_("Location of Annotation backend"),scope=Scope.settings,default="http://your_annotation_storage.com",display_name=_("Url for Annotation Storage"))
annotation_token_secret=String(help=_("Secret string for annotation storage"),scope=Scope.settings,default="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",display_name=_("Secret Token String for Annotation"))