[EP-tech] Patch for ScreenProcessor.pm

John Salter J.Salter at leeds.ac.uk
Tue Aug 14 11:19:49 BST 2012


It looks like the 'render_toolbar' in ~/perl_lib/EPrints/ScreenProcessor.pm doesn't do what the documentation reckons it should. The %opts aren't honoured.

This *might* fix it (or I might have been trying to do something stupid)?

--- perl_lib/EPrints/ScreenProcessor.pm.ORIG    2012-05-18 14:21:24.000000000 +0100
+++ perl_lib/EPrints/ScreenProcessor.pm 2012-08-14 10:49:54.748878121 +0100
@@ -255,11 +255,11 @@

 sub render_toolbar
 {
-       my( $self ) = @_;
+       my( $self, %opts ) = @_;

        return $self->render_item_list( [
                $self->list_items( "key_tools" ),
-       ] );
+       ], %opts );
 }

 =item EPrints::ScreenProcessor->process( %opts )


More information about the Eprints-tech mailing list