From 36baa63f97a9f5e69bab4baf4caf080aa74634d4 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Thu, 6 Mar 2008 09:05:45 +1300 Subject: [PATCH] First installment on adding patronimage upload form to member details view. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../prog/en/modules/members/moremember.tmpl | 31 ++++++++++++++----- members/moremember.pl | 9 +++--- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index c64ee7d24a..0fe0596e7f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -194,6 +194,30 @@ for (var i=0;i + + + +
+ + +
+
Upload Patron Image + does not currently have an image available. To import an image for , enter the name of an image file to upload. + + " /> +
    +
  1. + +
  2. +
+
+
+ + +
+ + +
@@ -450,11 +474,4 @@ for (var i=0;i
- diff --git a/members/moremember.pl b/members/moremember.pl index 4ca67a83d3..995ecd1fa6 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -326,10 +326,11 @@ foreach (@$alerts) { $_->{relatedto} = findrelatedto( $_->{type}, $_->{externalid} ); } -# grab patron's image if available -my $picture = GetPatronImage($data->{'cardnumber'}); -$template->param( picture => $picture ); - +# check to see if patron's image exists in the database +# basically this gives us a template var to condition the display of +# patronimage related interface on +my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); +$template->param( picture => 1 ) if $picture; my $branch=C4::Context->userenv->{'branch'}; -- 2.39.5