[Koha-patches] [PATCH] [SIGNED-OFF] Bug 5489: Send hold email to branch email address if it exists instead of koha email address
David Schuster
dschust1 at gmail.com
Fri Dec 17 21:40:47 CET 2010
This is an enhancement I know but something I've been thinking about...
When someone submits a "review" and/or "suggestion" I would like to see a
similar interaction that it emailed the branch librarian about it rather
than just having the central repository for review.
David Schuster
On Thu, Dec 16, 2010 at 5:47 AM, Nicole Engard <nengard at bywatersolutions.com
> wrote:
> From: Amit Gupta <amit.gupta at osslabs.biz>
>
>
> Signed-off-by: Nicole Engard <nengard at bywatersolutions.com>
> ---
> C4/Reserves.pm | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/C4/Reserves.pm b/C4/Reserves.pm
> index e15d32f..2dd2688 100644
> --- a/C4/Reserves.pm
> +++ b/C4/Reserves.pm
> @@ -194,7 +194,9 @@ sub AddReserve {
> my $borrower = C4::Members::GetMember(borrowernumber =>
> $borrowernumber);
> my $biblio = GetBiblioData($biblionumber);
> my $letter = C4::Letters::getletter( 'reserves', 'HOLDPLACED');
> - my $admin_email_address =
> C4::Context->preference('KohaAdminEmailAddress');
> + my $branchcode = $borrower->{branchcode};
> + my $branch_details = C4::Branch::GetBranchDetail($branchcode);
> + my $admin_email_address =$branch_details->{'branchemail'} ||
> C4::Context->preference('KohaAdminEmailAddress');
>
> my %keys = (%$borrower, %$biblio);
> foreach my $key (keys %keys) {
> --
> 1.5.6.5
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>
--
David Schuster
Plano ISD
Library Technology Coordinator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-patches/attachments/20101217/af5a327b/attachment.htm>
More information about the Koha-patches
mailing list