<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 11952 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 196, Issue 5<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br> koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br> koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br> koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br> 1. Re: [Koha] Customizable Rent Field (Katrin Fischer)<br> 2. Re: [Koha] plack with koha soruce package (Fridolin SOMERS)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 7 Mar 2022 20:09:10 +0100<br>From: Katrin Fischer <katrin.fischer.83@web.de><br>To: koha-devel@lists.koha-community.org<br>Subject: Re: [Koha-devel] [Koha] Customizable Rent Field<br>Message-ID: <4509707d-54fd-ea15-0a86-66750b238130@web.de><br>Content-Type: text/plain; charset="utf-8"; Format="flowed"<br><br>Hi Naveen,<br><br>you can define a rental fee by item type and add a discount on it in the<br>configuration rules. I am afraid a rental based on the purchase cost<br>isn't possible at the moment.<br><br>Hope this helps,<br><br>Katrin<br><br>On 03.03.22 08:33, Ms. Naveen Ali wrote:<br>> Greeting.<br>><br>> I am implementing KOHA in our University.<br>> We have a policy of charging rent on books issued. It is not a fixed<br>> rent but based on the purchase cost of the book.<br>> I can't find how to implement this in KOHA as i can only find fixed<br>> rent options.<br>> I'll be grateful for support. Thank you.<br>><br>> *With best regards,*<br>> **<br>> *Naveen.*<br>><br>> _______________________________________________<br>> Koha-devel mailing list<br>> Koha-devel@lists.koha-community.org<br>> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>> website :https://www.koha-community.org/<br>> git :https://git.koha-community.org/<br>> bugs :https://bugs.koha-community.org/<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220307/d71bb151/attachment-0001.htm><br><br>------------------------------<br><br>Message: 2<br>Date: Mon, 7 Mar 2022 10:04:12 -1000<br>From: Fridolin SOMERS <fridolin.somers@biblibre.com><br>To: vinod kumar <vinod.kumar.trf@gmail.com><br>Cc: koha@lists.katipo.co.nz, koha-devel<br> <koha-devel@lists.koha-community.org><br>Subject: Re: [Koha-devel] [Koha] plack with koha soruce package<br>Message-ID: <37eb115a-cc46-39e5-7519-07cba6c0230a@biblibre.com><br>Content-Type: text/plain; charset="utf-8"; Format="flowed"<br><br>Sure, here is our PSGI file.<br>We follow the one for package to sometimes adapt.<br><br>Best regards,<br><br>Le 05/03/2022 à 01:50, vinod kumar a écrit :<br>> Dear Sir,<br>> <br>> Thanks for your mail.<br>> I have plack installed in my system too. But in the source package <br>> installation there is no PSGI file in my "/etc/koha" directory. If I use <br>> that available in tar package, that will not work as asking for the koha <br>> instance name, which is while we set up Koha via deb package. But in <br>> source tar installation there is no instance name so the PSGI file not <br>> working. Can you please share a sample PSGI file code, which can work <br>> for my source package installation.<br>> I shall be thankful to you.<br>> <br>> On Sat, Mar 5, 2022 at 12:41 AM Fridolin SOMERS <br>> <fridolin.somers@biblibre.com <mailto:fridolin.somers@biblibre.com>> wrote:<br>> <br>> Hi,<br>> <br>> We at Biblibre are using the dev install to run from git sources (in<br>> /home/koha/src).<br>> <br>> We have a SystemD unit for plack/starman.<br>> You can adapt it.<br>> Then edit your Apache configuration to use Starman as backend.<br>> <br>> Best regards,<br>> <br>> Le 03/03/2022 à 03:56, vinod kumar a écrit :<br>> > Hello Friends,<br>> ><br>> > I am a library professional and have been using Koha in my<br>> library for the<br>> > last 2 years. I have Koha 20.05.05 installed on Ubuntu 20.04. I have<br>> > installed Koha using source tar package and not using koha-common<br>> > installation. I have studied various koha articles to use in Koha<br>> to boost<br>> > speed. But in all articles, enabling plack steps given only for<br>> koha-common<br>> > installation only, using koha-plack command. In my case, I have<br>> installed<br>> > Koha using tar source package, so no such commands were found.<br>> > Can Anyone guide me how to enable the plack package for Koha tar<br>> source<br>> > package installation. I will be thankful to you.<br>> > Thanks,<br>> > _______________________________________________<br>> ><br>> > Koha mailing list http://koha-community.org<br>> <http://koha-community.org><br>> > Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz><br>> > Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha<br>> <https://lists.katipo.co.nz/mailman/listinfo/koha><br>> <br>> -- <br>> Fridolin SOMERS <fridolin.somers@biblibre.com<br>> <mailto:fridolin.somers@biblibre.com>><br>> Software and system maintainer 🦄<br>> BibLibre, France<br>> _______________________________________________<br>> <br>> Koha mailing list http://koha-community.org <http://koha-community.org><br>> Koha@lists.katipo.co.nz <mailto:Koha@lists.katipo.co.nz><br>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha<br>> <https://lists.katipo.co.nz/mailman/listinfo/koha><br>> <br><br>-- <br>Fridolin SOMERS <fridolin.somers@biblibre.com><br>Software and system maintainer 🦄<br>BibLibre, France<br>-------------- next part --------------<br>#!/usr/bin/perl<br><br># This file is part of Koha.<br>#<br># This program is free software: you can redistribute it and/or modify<br># it under the terms of the GNU General Public License as published by<br># the Free Software Foundation, either version 3 of the License, or<br># (at your option) any later version.<br>#<br># This program is distributed in the hope that it will be useful,<br># but WITHOUT ANY WARRANTY; without even the implied warranty of<br># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br># GNU General Public License for more details.<br>#<br># You should have received a copy of the GNU General Public License<br># along with this program. If not, see <http://www.gnu.org/licenses/>.<br><br>use Modern::Perl;<br><br>use Plack::Builder;<br>use Plack::App::CGIBin;<br>use Plack::App::Directory;<br>use Plack::App::URLMap;<br>use Plack::Request;<br><br>use Mojo::Server::PSGI;<br><br># Pre-load libraries<br>use C4::Koha;<br>use C4::Languages;<br>use C4::Letters;<br>use C4::Members;<br>use C4::XSLT;<br>use Koha::Caches;<br>use Koha::Cache::Memory::Lite;<br>use Koha::Database;<br>use Koha::DateUtils;<br>use Koha::Logger;<br><br>use CGI qw(-utf8 ); # we will loose -utf8 under plack, otherwise<br>{<br> no warnings 'redefine';<br> my $old_new = \&CGI::new;<br> *CGI::new = sub {<br> my $q = $old_new->( @_ );<br> $CGI::PARAM_UTF8 = 1;<br> Koha::Caches->flush_L1_caches();<br> Koha::Cache::Memory::Lite->flush();<br> return $q;<br> };<br>}<br><br>my $intranet = Plack::App::CGIBin->new(<br> root => '/home/koha/src'<br>)->to_app;<br><br>my $opac = Plack::App::CGIBin->new(<br> root => '/home/koha/src/opac'<br>)->to_app;<br><br>my $apiv1 = builder {<br> my $server = Mojo::Server::PSGI->new;<br> $server->load_app('/home/koha/src/api/v1/app.pl');<br> $server->to_psgi_app;<br>};<br><br>builder {<br> enable "ReverseProxy";<br> enable "Plack::Middleware::Static";<br><br> # + is required so Plack doesn't try to prefix Plack::Middleware::<br> eval { require Koha::Middleware::SetEnv; };<br> if ( !$@ ) {<br> enable "+Koha::Middleware::SetEnv";<br> }<br> eval { require Koha::Middleware::RealIP; };<br> if ( !$@ ) {<br> enable "+Koha::Middleware::RealIP";<br> }<br><br> mount '/opac' => $opac;<br> mount '/intranet' => $intranet;<br> mount '/api/v1/app.pl' => $apiv1;<br><br>};<br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 196, Issue 5<br>******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>