<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Session.pm was a &quot;god object&quot; 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.<br>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 09/12/2021 14:41, Martin Brändle via
      Eprints-tech wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:EMEW3|c767368125bdd0f0ada383211f716796xB8Ejd14eprints-tech-bounces|ecs.soton.ac.uk|GVAP278MB063236A351ACF68B8C96AE878C709@GVAP278MB0632.CHEP278.PROD.OUTLOOK.COM">
      
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style>@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
        {font-family:Menlo;
        panose-1:2 11 6 9 3 8 4 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0cm;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}p.p2, li.p2, div.p2
        {mso-style-name:p2;
        margin:0cm;
        font-size:8.5pt;
        font-family:Menlo;
        color:black;}span.s1
        {mso-style-name:s1;}span.apple-converted-space
        {mso-style-name:apple-converted-space;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}div.WordSection1
        {page:WordSection1;}</style>
      <div style="padding-bottom: 10px; padding-top: 5px;">
        <div style="padding:12px; border:1px solid #8D3970;
          background-color:#F7F9FA; color:#8D3970; font-size:14px;
          line-height:22px; font-family: Calibri, Arial, Helvetica,
          sans-serif;">
          <strong>CAUTION:</strong> This e-mail originated outside the
          University of Southampton.
        </div>
      </div>
      <div>
        <div class="WordSection1">
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="DE-CH">Hi Laurent,<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="DE-CH"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US">Session functions are defined in
              perl_lib/EPrints/BackCompatibility.pm
              <o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
          <p class="p1"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;mso-fareast-language:EN-US" lang="EN-US">Actually, the render_toolbar method is now
              part of the Repository module. Here the code fragment from
            </span><span class="s1">BackCompatibility.pm</span><span class="apple-converted-space">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US">…<o:p></o:p></span></p>
          <p class="p1"><span class="s1">package EPrints::Repository;</span><o:p></o:p></p>
          <p class="p2"><o:p>&nbsp;</o:p></p>
          <p class="p1"><span class="s1"># phrase-based
              dynamic_templates.pl</span><o:p></o:p></p>
          <p class="p1"><span class="s1">sub render_toolbar {</span><o:p></o:p></p>
          <p class="p1"><span class="apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="s1">EPrints::ScreenProcessor-&gt;new(</span><o:p></o:p></p>
          <p class="p1"><span class="apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span>
            <span class="s1">session =&gt; shift,</span><o:p></o:p></p>
          <p class="p1"><span class="apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
              &nbsp; &nbsp; </span><span class="s1">)-&gt;render_toolbar;</span><o:p></o:p></p>
          <p class="p1"><span class="s1">}</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US">…<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US">Kind regards,<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US" lang="EN-US">Martin<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
          <div>
            <div>
              <div>
                <p class="MsoNormal"><span style="font-size:11.0pt">--<o:p></o:p></span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt;color:black">Dr. Martin
                    Brändle<br>
                    Zentrale Informatik<br>
                    Universität Zürich<br>
                    Stampfenbachstr. 73<br>
                    CH-8006 Zürich<br>
                    <br>
                  </span><span style="font-size:11.0pt"><o:p></o:p></span></p>
                <p class="MsoNormal"><span style="font-size:11.0pt">&nbsp;<o:p></o:p></span></p>
              </div>
            </div>
          </div>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
          <p class="MsoNormal"><span style="font-size:11.0pt;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
                </span></b><span style="font-size:12.0pt;color:black"><a class="moz-txt-link-abbreviated" href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">eprints-tech-bounces@ecs.soton.ac.uk</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:eprints-tech-bounces@ecs.soton.ac.uk">&lt;eprints-tech-bounces@ecs.soton.ac.uk&gt;</a> on behalf
                of Laurent Cloarec via Eprints-tech
                <a class="moz-txt-link-rfc2396E" href="mailto:eprints-tech@ecs.soton.ac.uk">&lt;eprints-tech@ecs.soton.ac.uk&gt;</a><br>
                <b>Date: </b>Thursday, 9 December 2021 at 14:27<br>
                <b>To: </b><a class="moz-txt-link-abbreviated" href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>
                <a class="moz-txt-link-rfc2396E" href="mailto:eprints-tech@ecs.soton.ac.uk">&lt;eprints-tech@ecs.soton.ac.uk&gt;</a><br>
                <b>Subject: </b>[EP-tech] Branding, the next level
                -Toolbar - EPrints Documentation<o:p></o:p></span></p>
          </div>
          <div>
            <p class="MsoNormal"><span style="font-size:11.0pt">CAUTION:
                This e-mail originated outside the University of
                Southampton.<br>
                <br>
                <a href="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" originalSrc="http://wiki.eprints.org/w/Branding,_the_next_level#Toolbar" shash="Zp9hXAgPcMXp5hM/Eq70qvP3hs1micATv6prx99ljHSmbqnplCicJHJ1zt3ZYJEVon4fM+AeA1TRULrJnxDs6YEV4L6RfF0RAGle9/RaBbSn5tAJd7a5IDYz5LWsedh3TA5QE1elJxb6kAo5FTHfUtwfeOvLsX32Gxd9ImzT/tw=" originalsrc="http://wiki.eprints.org/w/Branding,_the_next_level#Toolbar" shash="pCuijE2YFbJWBINGoRbrMjAYU8LUtsbL9BlGQ4xP33taPNgKgl2k7qGlDaCwSnWyYrh/tN+ILL40EP2tjh/EFQwf0Q8clMW7/DMLcQh9IGxpccNySfHNCfjzdhru3/+fD8J5zNiQrsrpFFjGu2u0SGLjbpHbi7aElaFzjj7+Mo4=" moz-do-not-send="true" title="Unmangled Microsoft
                  Safelink" class="moz-txt-link-freetext">http://wiki.eprints.org/w/Branding,_the_next_level#Toolbar</a><br>
                <br>
                Hi everybody!<br>
                <br>
                This wiki page seems to be an outdated information, for
                instance when it writes<br>
                « The toolbar is created in perl_lib/EPrints/Session.pm
                »: there is no<br>
                &quot;Session.pm&quot; module into &quot;perl_lib/EPrints&quot; folder!...<br>
                <br>
                So where and how may the toolbar items be modified???<br>
                <br>
                Best regards<br>
                --<br>
                Laurent Cloarec<br>
                Service Commun de la Documentation - Service du
                Numérique Documentaire<br>
                Université Toulouse 1 Capitole<br>
                <br>
                <br>
                *** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" moz-do-not-send="true" class="moz-txt-link-freetext">
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
                *** Archive: <a href="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" originalSrc="http://www.eprints.org/tech.php/" shash="rymgb1QlWIJEMAqZ3HRGV+8h9S4fcjet6I3m1nx4jcsG1QzZpLjwNh9YA3TxdO9XrsYrnzc+lBtvx5DcEAfhBnq7fKK3bW+YIV7qNFW+T8K9G4FVzj589X+VFnDVOkmOgRvK9dyjPJNjQOQduArD60s3L9jIAItQTH9ZdWW1y8k=" originalsrc="http://www.eprints.org/tech.php/" shash="vhDNaSH3Z7MSS6Pp/9c8tpVqInUFQdW6wxR6eVOPsuKEtpZg/D7mUZS0K7qNYBtB4CIg6CSVAw6SCA2Pl0NjRw/EhwdQV0FeLVMDctVKt7HdYSBvzs8goURKufxGnpM3EB9ziZu1lBcCOEyGd3o9Fj87yuhtD11DiSMyP2sIMSo=" moz-do-not-send="true" title="Unmangled Microsoft
                  Safelink" class="moz-txt-link-freetext">http://www.eprints.org/tech.php/</a><br>
                *** EPrints community wiki: <a href="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" originalSrc="http://wiki.eprints.org/" shash="CTIsCzttg0GBV5L/Uht5y4AEEYUz35mTnUIjOOg5w5Q6m9714wArIQ/I59Xb0ELGgN86jtpizUd18Qdi5ll0JTAYrqc4YkELPFEkacq8tsZpTwBwbxSMAWzbACS876wH2yM3Ck+hB3lsAJYFnxskouVke3pGsp0bx4odgIlrKGc=" originalsrc="http://wiki.eprints.org/" shash="o2QPYgBXG75i7xCfApGQxfd3ncBTlAVLSZM4I2JE1jhA448NR0zMdSbtlR9792WKZuQIARLV57I+EcGdZWSSpu3dHRBF8sbZ1fU/9X5ue/G2MMb5zP1CRdxikiKfx+NSN31Ao8jL2I+Lgrh8NArSaHhmBVLAQYLgZjLOLuglCzI=" moz-do-not-send="true" title="Unmangled Microsoft
                  Safelink" class="moz-txt-link-freetext">http://wiki.eprints.org/</a><o:p></o:p></span></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="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" originalSrc="http://www.eprints.org/tech.php/" shash="rymgb1QlWIJEMAqZ3HRGV+8h9S4fcjet6I3m1nx4jcsG1QzZpLjwNh9YA3TxdO9XrsYrnzc+lBtvx5DcEAfhBnq7fKK3bW+YIV7qNFW+T8K9G4FVzj589X+VFnDVOkmOgRvK9dyjPJNjQOQduArD60s3L9jIAItQTH9ZdWW1y8k=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="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" originalSrc="http://wiki.eprints.org/" shash="CTIsCzttg0GBV5L/Uht5y4AEEYUz35mTnUIjOOg5w5Q6m9714wArIQ/I59Xb0ELGgN86jtpizUd18Qdi5ll0JTAYrqc4YkELPFEkacq8tsZpTwBwbxSMAWzbACS876wH2yM3Ck+hB3lsAJYFnxskouVke3pGsp0bx4odgIlrKGc=">http://wiki.eprints.org/</a></pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Christopher Gutteridge <a class="moz-txt-link-rfc2396E" href="mailto:totl@soton.ac.uk">&lt;totl@soton.ac.uk&gt;</a> 
You should read our team blog at <a class="moz-txt-link-freetext" href="http://blog.soton.ac.uk/webteam/">http://blog.soton.ac.uk/webteam/</a>
(I live near Highfield Campus, so in person, outdoor and socially distanced meetings are an option)</pre>
  </body>
</html>