Skip to content

Commit

Permalink
forgot to do the abstract regen thing for disable..)
Browse files Browse the repository at this point in the history
  • Loading branch information
David McElroy committed Feb 25, 2015
1 parent 53a4407 commit 897816e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
8 changes: 4 additions & 4 deletions bootstrap.epmi
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<datasetid>document</datasetid>
<filename>plugins/EPrints/Plugin/Screen/EPMC/Bootstrap.pm</filename>
<mime_type>text/plain</mime_type>
<hash>00b31da2b2f32797b309c71061904279</hash>
<hash>d28a1a6f1e347b32bbec05788a39feb1</hash>
<hash_type>MD5</hash_type>
<filesize>1992</filesize>
<filesize>2111</filesize>
</file>
<file>
<datasetid>document</datasetid>
Expand Down Expand Up @@ -219,7 +219,7 @@
<content>coverimage</content>
</document>
</documents>
<version>1.0.28</version>
<version>1.1.0</version>
<controller>EPMC::Bootstrap</controller>
<creators>
<item>
Expand All @@ -229,7 +229,7 @@
</name>
</item>
</creators>
<datestamp>2015-02-25 16:39:25</datestamp>
<datestamp>2015-02-25 16:44:40</datestamp>
<title>Bootstrap for EPrints</title>
<description>An alternative look and feel which uses the bootstrap library (http://getbootstrap.com/).</description>
<icon>images/epm/bootstrap.png</icon>
Expand Down
27 changes: 17 additions & 10 deletions lib/plugins/EPrints/Plugin/Screen/EPMC/Bootstrap.pm
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,25 @@ If SKIP_RELOAD is true will not reload the repository configuration.
=cut

sub action_disable
{
my( $self, $skip_reload ) = @_;

$self->SUPER::action_disable( $skip_reload );
my $repo = $self->{repository};
{
my( $self, $skip_reload ) = @_;

$self->SUPER::action_disable( $skip_reload );
my $repo = $self->{repository};


my $backup = $repo->config( "config_path" )."/citations/eprint/summary_page.xml_backup";
my $original = $repo->config( "config_path" )."/citations/eprint/summary_page.xml";
#copy backup to original
copy($backup,$original);

$self->reload_config if !$skip_reload;
my $original = $repo->config( "config_path" )."/citations/eprint/summary_page.xml";

#copy backup to original
copy($backup,$original);

unless( $repo->expire_abstracts() )
{
$self->{processor}->add_message( "warning","You need to regenerate abstracts" );
}

$self->reload_config if !$skip_reload;

}

Expand Down

0 comments on commit 897816e

Please sign in to comment.