-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin_settings.py
More file actions
46 lines (34 loc) · 1.05 KB
/
plugin_settings.py
File metadata and controls
46 lines (34 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from utils import models, plugins
from utils.install import update_settings
PLUGIN_NAME = 'Annotators'
DESCRIPTION = 'This is a plugin to handle consortial billing.'
AUTHOR = 'Andy Byers'
VERSION = '1.1'
SHORT_NAME = 'annotators'
DISPLAY_NAME = 'Annotators'
MANAGER_URL = 'annotators_index'
JANEWAY_VERSION = "1.7.0"
IS_WORKFLOW_PLUGIN = False
class AnnotatorsPlugin(plugins.Plugin):
plugin_name = PLUGIN_NAME
display_name = DISPLAY_NAME
description = DESCRIPTION
author = AUTHOR
short_name = SHORT_NAME
manager_url = MANAGER_URL
version = VERSION
janeway_version = JANEWAY_VERSION
is_workflow_plugin = IS_WORKFLOW_PLUGIN
def install():
AnnotatorsPlugin.install()
update_settings(
file_path='plugins/annotators/install/settings.json'
)
def register_for_events():
pass
def hook_registry():
# On site load, the load function is run for each installed plugin to generate
# a list of hooks.
return {
'article_js_block': {'module': 'plugins.annotators.hooks', 'function': 'embed_hook'},
}