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