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

Christopher Gutteridge totl at soton.ac.uk
Thu Dec 9 14:52:24 GMT 2021


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 at ecs.soton.ac.uk 
> <eprints-tech-bounces at ecs.soton.ac.uk> on behalf of Laurent Cloarec 
> via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
> *Date: *Thursday, 9 December 2021 at 14:27
> *To: *eprints-tech at ecs.soton.ac.uk <eprints-tech at ecs.soton.ac.uk>
> *Subject: *[EP-tech] Branding, the next level -Toolbar - EPrints 
> Documentation
>
> CAUTION: This e-mail originated outside the University of Southampton.
>
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2Fw%2FBranding%2C_the_next_level%23Toolbar&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C60cbd8a6d9a842d6f51c08d9bb23837f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637746583460071541%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=OVPfr3OZ6VW91zIDgjKltKOhySGiNQzhSxByIlWpH28%3D&amp;reserved=0
>
> 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: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C60cbd8a6d9a842d6f51c08d9bb23837f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637746583460071541%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=5jq5%2BByS6LHx%2BSHm6k988YhaGhSsFSQsqiBQIrXJFo8%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C60cbd8a6d9a842d6f51c08d9bb23837f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637746583460071541%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=di5YG7tQwLvOxw49Bi6otaRdo12uiwkb9mDj3nDJOQg%3D&amp;reserved=0
>
>
> *** Options:http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C60cbd8a6d9a842d6f51c08d9bb23837f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637746583460071541%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=5jq5%2BByS6LHx%2BSHm6k988YhaGhSsFSQsqiBQIrXJFo8%3D&amp;reserved=0
> *** EPrints community wiki:https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C60cbd8a6d9a842d6f51c08d9bb23837f%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637746583460071541%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=di5YG7tQwLvOxw49Bi6otaRdo12uiwkb9mDj3nDJOQg%3D&amp;reserved=0

-- 
Christopher Gutteridge<totl at soton.ac.uk>  
You should read our team blog athttp://blog.soton.ac.uk/webteam/
(I live near Highfield Campus, so in person, outdoor and socially distanced meetings are an option)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20211209/ded5efd8/attachment.html 


More information about the Eprints-tech mailing list