/
plugins.pl
65 lines (42 loc) · 2.37 KB
/
plugins.pl
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Generic Plugin Options
# To disable the plugin "Export::BibTeX":
# $c->{plugins}->{"Export::BibTeX"}->{params}->{disable} = 1;
# To enable the plugin "Export::LocalThing":
# $c->{plugins}->{"Export::LocalThing"}->{params}->{disable} = 0;
# Screen Plugin Configuration
# (Disabling a screen will also remove it and it's actions from all lists)
# To add the screen Screen::Items to the key_tools list at postion 200:
# $c->{plugins}->{"Screen::Items"}->{appears}->{key_tools} = 200;
# To remove the screen Screen::Items from the key_tools list:
# $c->{plugins}->{"Screen::Items"}->{appears}->{key_tools} = undef;
# Screen Actions Configuration
# To disable action "blah" of Screen::Items
# (Disabling an action will also remove it from all lists)
# $c->{plugins}->{"Screen::Items"}->{actions}->{blah}->{disable} = 1;
# To add action "blah" of Screen::Items to the key_tools list at postion 200:
# $c->{plugins}->{"Screen::Items"}->{actions}->{blah}->{appears}->{key_tools} = 200;
# To remove action "blah" of Screen::Items from the key_tools list
# $c->{plugins}->{"Screen::Items"}->{actions}->{blah}->{appears}->{key_tools} = undef;
# Import/export plugins
# to make a plugin only available to staff
# $c->{plugins}->{"Export::Text"}->{params}->{visible} = "staff";
# to only command line tools
# $c->{plugins}->{"Export::Text"}->{params}->{visible} = "api";
# to prevent a import/export plugin from being shown as an option, but
# not actually disable it.
# $c->{plugins}->{"Export::BibTeX"}->{params}->{advertise} = 0;
# Plugin Mapping
# The following would make the repository use the LocalDC export plugin
# anytime anything asks for the DC plugin - this is a handy way to override
# the behaviour without hacking the existing plugin.
# $c->{plugin_alias_map}->{"Export::DC"} = "Export::LocalDC";
# This line just means that the LocalDC plugin doesn't appear in addition
# as that would be confusing.
# $c->{plugin_alias_map}->{"Export::LocalDC"} = undef;
# CrossRef registration
# You should replace this with your own CrossRef account username and password.
$c->{plugins}->{"Import::DOI"}->{params}->{pid} = "ourl_eprintsorg:eprintsorg";
# set the default options for the DOI import plugin - change these to reflect your
# own repository requirements
$c->{plugins}->{"Import::DOI"}->{params}->{doi_field} = "id_number";
$c->{plugins}->{"Import::DOI"}->{params}->{use_prefix} = 1;