<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello Hugo,</p>
    <p>For my plugin I had to change some things in plack.psgi file,
      otherwise Perl code wouldn't get executed.</p>
    <p>First add the plugins source directory to the cached perl files :</p>
    <pre>my $plugins = Plack::App::CGIBin->new( root => '/home/koha/var/lib/plugins/' )->to_app;</pre>
    <p>Secondly in the "builder" section of plack.psgi add a /plugins
      mount point: </p>
    <pre>mount '/plugins' => $plugins;
</pre>
    <p>Then in nginx config you can add the following lines: </p>
    <pre>rewrite     ^/recommendations.pl$ /plugins/Koha/Plugin/Com/Liliputech/RecommenderEngine/recommendations.pl;
</pre>
    <pre>location /plugins {</pre>
    <pre>         include /home/koha/etc/nginx.d/plack_proxy.conf;</pre>
    <pre>}</pre>
    And it works, pffeeewww! (don't forget to change files and dir
    according to your installation).<br>
    <br>
    Now I changed the way my plugin works so as not to rely on such
    complex hacks though.<br>
    All data generated from my plugin is now available through the
    "Public Report" interface, which is much more convenient I must say
    :<br>
    <a class="moz-txt-link-freetext" href="https://calyx.net.au/enhancing-kohas-public-reports-feature/">https://calyx.net.au/enhancing-kohas-public-reports-feature/</a><br>
    If you want to check my source :
    <a class="moz-txt-link-freetext" href="https://github.com/liliputech/koharecommenderengine">https://github.com/liliputech/koharecommenderengine</a><br>
    <br>
    Hope that may help.<br>
    All the best,<br>
    Arthur<br>
    <br>
    Le 08/02/2017 à 08:13, Hugo Agud a écrit :<br>
    <blockquote
cite="mid:CADT_QRSYX6kerH3VTc4GKMwskSfGDyK7qCj1RP0vLoZMUdAU5Q@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Good morning
        <div><br>
        </div>
        <div>There is any new on this? we have tried to install EDS
          plugin to Koha, but it doesn't appear on the intranet (I guess
          because of plack) , but there is on the plugin folder... I am
          going to contact ebsco, but if any body wish to share some
          info on it... I will pass to EBSCO</div>
        <div><br>
        </div>
        <div>Kindest Regards</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-11-22 16:33 GMT+01:00 SUZUKI
          Arthur <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:arthur.suzuki@univ-lyon3.fr" target="_blank">arthur.suzuki@univ-lyon3.fr</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Some of
            the tricks used to integrate code from an intranet plugin on
            OPAC are explained here.<br>
            <br>
            <a moz-do-not-send="true"
              href="https://github.com/bywatersolutions/koha-plugin-coverflow#setup"
              rel="noreferrer" target="_blank">https://github.com/bywatersolu<wbr>tions/koha-plugin-coverflow#<wbr>setup</a><br>
            <br>
            This "Setup" part explains quite well the Apache config
            modifications needed to let users access <a
              moz-do-not-send="true" href="http://coverflow.pl"
              rel="noreferrer" target="_blank">coverflow.pl</a> from
            OPAC, and why does this "<a moz-do-not-send="true"
              href="http://coverflow.pl" rel="noreferrer"
              target="_blank">coverflow.pl</a>" exist.<br>
            <br>
            the EDS plugin documentation lacks this information about
            Apache conf.<br>
            <br>
            (actually it doesn't but it is digged really deep : <a
              moz-do-not-send="true"
              href="https://github.com/ebsco/edsapi-koha-plugin/wiki/Apache-Setup"
              rel="noreferrer" target="_blank">https://github.com/ebsco/edsap<wbr>i-koha-plugin/wiki/Apache-<wbr>Setup</a>)<span
              class="im HOEnZb"><br>
              <br>
              Le 22/11/2016 à 16:12, Paul Poulain a écrit :<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                Hi Arthur,<br>
                <br>
                The intranet part of the "plugin" is a plugin, so yes,
                it goes into the scope of Plack.<br>
                <br>
                But the eds-*.pl files (<a moz-do-not-send="true"
href="https://github.com/ebsco/edsapi-koha-plugin/tree/master/Koha/Plugin/EDS/opac"
                  rel="noreferrer" target="_blank">https://github.com/ebsco/edsa<wbr>pi-koha-plugin/tree/master/<wbr>Koha/Plugin/EDS/opac</a>)
                don't. That's the OPAC part of the "plugin", that is not
                really a plugin<br>
                <br>
                <br>
                Le 22/11/2016 à 15:49, SUZUKI Arthur a écrit :<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  Hello Paul,<br>
                  <br>
                  I don't know much about EDS nor Plack but I've been
                  playing with koha plugin functionality lately.<br>
                  <br>
                  I guess you're talking about this plugin : <a
                    moz-do-not-send="true"
                    href="https://github.com/ebsco/edsapi-koha-plugin"
                    rel="noreferrer" target="_blank">https://github.com/ebsco/edsap<wbr>i-koha-plugin</a><br>
                  <br>
                  does the koha plugin directory falls in the Plack
                  scope?<br>
                  <br>
                  If koha is installed from Source, this directory is
                  "$KOHA_USERDIR/var/lib/plugins<wbr>/"<br>
                  <br>
                  (I don't know for debian package, but probably
                  something like /var/lib/koha/plugins)<br>
                  <br>
                  Hope this helps.<br>
                  <br>
                  Arthur<br>
                  <br>
                  Le 22/11/2016 à 15:17, Paul Poulain a écrit :<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Hello friends,<br>
                    <br>
                    We've deployed Koha 3.22, running Plack and the EDS
                    plugin, and it appears that it does not work. We
                    think it's because there are some .pl code that is
                    out of plack scope, so it's not run. Is there anyone
                    here who has some experience with koha / Plack / EDS
                    ?<br>
                    <br>
                    (Frido will probably send a patch to Ebsco in the
                    next days if there's no other ida)<br>
                    <br>
                    <br>
                  </blockquote>
                  <br>
                </blockquote>
                <br>
              </blockquote>
              <br>
              -- <br>
            </span><span class="im HOEnZb">
              Arthur SUZUKI<br>
              Service informatique des bibliothèques<br>
              BIBLIOTHÈQUES UNIVERSITAIRES<br>
              Université Jean Moulin Lyon 3<br>
              6 Cours Albert Thomas - B.P. <a moz-do-not-send="true"
                href="tel:8242%20%E2%80%93%2069355" value="+34824269355"
                target="_blank">8242 – 69355</a> Lyon Cedex 08<br>
              ligne directe : <a moz-do-not-send="true"
                href="tel:%2B33%20%280%294%2078%2078%2079%2016"
                value="+33478787916" target="_blank">+33 (0)4 78 78 79
                16</a> | <a moz-do-not-send="true"
                href="http://bu.univ-lyon3.fr" rel="noreferrer"
                target="_blank">http://bu.univ-lyon3.fr</a><br>
              L'Université Jean Moulin est membre fondateur de
              l'Université de Lyon<br>
              <br>
            </span>
            <div class="HOEnZb">
              <div class="h5">
                ______________________________<wbr>_________________<br>
                Koha-devel mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Koha-devel@lists.koha-community.org"
                  target="_blank">Koha-devel@lists.koha-communit<wbr>y.org</a><br>
                <a moz-do-not-send="true"
href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel"
                  rel="noreferrer" target="_blank">http://lists.koha-community.or<wbr>g/cgi-bin/mailman/listinfo/koh<wbr>a-devel</a><br>
                website : <a moz-do-not-send="true"
                  href="http://www.koha-community.org/" rel="noreferrer"
                  target="_blank">http://www.koha-community.org/</a><br>
                git : <a moz-do-not-send="true"
                  href="http://git.koha-community.org/" rel="noreferrer"
                  target="_blank">http://git.koha-community.org/</a><br>
                bugs : <a moz-do-not-send="true"
                  href="http://bugs.koha-community.org/"
                  rel="noreferrer" target="_blank">http://bugs.koha-community.org<wbr>/</a></div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Arthur SUZUKI
Service informatique des bibliothèques
BIBLIOTHÈQUES UNIVERSITAIRES
Université Jean Moulin Lyon 3
6 Cours Albert Thomas - B.P. 8242 – 69355 Lyon Cedex 08
ligne directe : +33 (0)4 78 78 79 16 | <a class="moz-txt-link-freetext" href="http://bu.univ-lyon3.fr">http://bu.univ-lyon3.fr</a>
L'Université Jean Moulin est membre fondateur de l'Université de Lyon</pre>
  </body>
</html>