EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #00943


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Patch for ScreenProcessor.pm


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 )