Plugin
DOIPlugin
¶
Bases: SingletonPlugin
, DefaultDatasetForm
CKAN DOI Extension.
Source code in ckanext/doi/plugin.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
|
after_create(*args, **kwargs)
¶
CKAN 2.9 compat version of after_dataset_create.
Source code in ckanext/doi/plugin.py
117 118 119 120 121 |
|
after_dataset_create(context, pkg_dict)
¶
A new dataset has been created, so we need to create a new DOI.
NB: This is called after creation of a dataset, before resources have been added, so state = draft.
Source code in ckanext/doi/plugin.py
48 49 50 51 52 53 54 55 |
|
after_dataset_show(context, pkg_dict)
¶
Add the DOI details to the pkg_dict so it can be displayed.
Source code in ckanext/doi/plugin.py
103 104 105 106 107 108 109 110 111 112 113 114 115 |
|
after_dataset_update(context, pkg_dict)
¶
Dataset has been created/updated.
Check status of the dataset to determine if we should publish DOI to datacite network.
Source code in ckanext/doi/plugin.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|
after_show(*args, **kwargs)
¶
CKAN 2.9 compat version of after_dataset_show.
Source code in ckanext/doi/plugin.py
129 130 131 132 133 |
|
after_update(*args, **kwargs)
¶
CKAN 2.9 compat version of after_dataset_update.
Source code in ckanext/doi/plugin.py
123 124 125 126 127 |
|
update_config(config)
¶
Adds templates.
Source code in ckanext/doi/plugin.py
41 42 43 44 45 |
|