EPrints Technical Mailing List Archive

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

Message: #08812


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

Re: [EP-tech] Branding, the next level -Toolbar - EPrints Documentation


Session.pm was a "god object" which is bad coding design but it was a real challenge to refactor into sensible objects like EPrints.pm and Repository.pm etc. Doing that was the start of the more formalised API which I wish I could take credit for. I think that was Tim Brody.


On 09/12/2021 14:41, Martin Brändle via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.

Hi Laurent,

 

Session functions are defined in perl_lib/EPrints/BackCompatibility.pm

 

Actually, the render_toolbar method is now part of the Repository module. Here the code fragment from BackCompatibility.pm 

 

package EPrints::Repository;

 

# phrase-based dynamic_templates.pl

sub render_toolbar {

        EPrints::ScreenProcessor->new(

                        session => shift,

                )->render_toolbar;

}

 

 

Kind regards,

 

Martin

 

--

Dr. Martin Brändle
Zentrale Informatik
Universität Zürich
Stampfenbachstr. 73
CH-8006 Zürich

 

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of Laurent Cloarec via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Date: Thursday, 9 December 2021 at 14:27
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>
Subject: [EP-tech] Branding, the next level -Toolbar - EPrints Documentation

CAUTION: This e-mail originated outside the University of Southampton.

http://wiki.eprints.org/w/Branding,_the_next_level#Toolbar

Hi everybody!

This wiki page seems to be an outdated information, for instance when it writes
« The toolbar is created in perl_lib/EPrints/Session.pm »: there is no
"Session.pm" module into "perl_lib/EPrints" folder!...

So where and how may the toolbar items be modified???

Best regards
--
Laurent Cloarec
Service Commun de la Documentation - Service du Numérique Documentaire
Université Toulouse 1 Capitole


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/


*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
-- 
Christopher Gutteridge <totl@soton.ac.uk> 
You should read our team blog at http://blog.soton.ac.uk/webteam/
(I live near Highfield Campus, so in person, outdoor and socially distanced meetings are an option)