Skip to content

Instantly share code, notes, and snippets.

@geo-mac
Created July 5, 2019 12:51
Show Gist options
  • Save geo-mac/9375c8d7463923904e4cd3151f86ff42 to your computer and use it in GitHub Desktop.
Save geo-mac/9375c8d7463923904e4cd3151f86ff42 to your computer and use it in GitHub Desktop.
Modified configuration file for EPrints coversheets
# Bazaar Configuration
$c->{plugins}{"Convert::AddCoversheet"}{params}{disable} = 0;
$c->{plugins}{"Event::AddCoversheet"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::Activate"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::Deprecate"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::Edit"}{params}{disable} = 0;
$c->{plugins}{"Screen::Coversheet::New"}{params}{disable} = 0;
$c->{plugins}{"Screen::EPMC::Coversheet"}{params}{disable} = 0;
# Stores the id of the Coversheet Dataobj that was used to generated the CS'ed document
push @{$c->{fields}->{document}},
{
name => 'coversheetid',
type => 'int',
};
# Where the coversheets are stored:
$c->{coversheet}->{path_suffix} = '/coversheets';
$c->{coversheet}->{path} = $c->{archiveroot}.'/cfg/static/coversheets';
$c->{coversheet}->{url} = $c->{base_url}.'/coversheets';
# Ghostscript command to stitch the pdfs
$c->{gs_pdf_stich_cmd} = "gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=";
# Fields used for applying coversheets
$c->{license_application_fields} = [ "type" ];
#new permissions for coversheet toolkit
$c->{roles}->{"coversheet-editor"} =
[
"coversheet/destroy",
"coversheet/write",
"coversheet/activate",
"coversheet/deprecate",
"coversheet/view",
];
push @{$c->{user_roles}->{editor}}, 'coversheet-editor';
push @{$c->{user_roles}->{admin}}, 'coversheet-editor';
push @{$c->{user_roles}->{local_admin}}, 'coversheet-editor';
# Tags may be defined locally, see Plugin/Convert/AddCoversheet.pm
# $c->{coversheet}->{tags} = {};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment