[Koha] How to Get Active logged in User Details Based on Sessions Running on Client machines

Jonathan Druart jonathan.druart at biblibre.com
Thu Jun 19 20:56:46 NZST 2014


get_template_and_user should be used in perl script (.pl).
I don't really understand what you are trying to do. The
process_message_queue.pl is a cron script and there is no "logged in
user" in a terminal :)

2014-06-19 9:52 GMT+02:00 Arun Kumar <arun.aimit.2010 at gmail.com>:
> hi Jonathan,
>
> Thanks for your support, I did expected a Technical answer though i didn't
> where to post my question
>
> i did try the snippet you sent before by passing the HASH keys into
> get_template_and_user
> function but had no results since i used
>
>  my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user(
>    {
>          template_name   => "intranet-main.tmpl",
>          query           => $query,
>          type            => "intranet",
>          authnotrequired => 0,
>          flagsrequired   => { catalogue => 1, },
>      }
>      );
> $fromemail=C4::Members::GetMember($borrowernumber => $loggedinuser);
>
> this code snippet was put into Letters.pm in _send_message_by_email
> function
> but when i run  ./process_message_queue.pl in the terminal it
> displays intranet-main.tmpl in HTML format
>
> i dont understand where i went wrong
>
> Thanks in advance
>
> Regards
>
> Arunkumar
> National Institute of Oceanography
> Dona-Paula, Goa, India
> _______________________________________________
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha


More information about the Koha mailing list