From 3fdd6a17cf3e93ee16d754e7ade2b0a2508f4107 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Fri, 1 Feb 2008 23:23:45 -0600 Subject: [PATCH] Second installment on Patron Images fixes Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- .../prog/en/modules/help/members/moremember.tmpl | 4 ++-- .../prog/en/modules/members/moremember.tmpl | 13 ++++++++++++- members/moremember.pl | 6 +++--- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/moremember.tmpl index ee153ef2d3..5bc777ff26 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/members/moremember.tmpl @@ -13,5 +13,5 @@ appear, so don't worry about accidentally deleting a record. Just be absolutely sure before you delete!

The change password button allows a user to either set a new password or change their current password. This is useful to patrons that wish to place reserves online from home. You cannot see a password again once you change it, but you can reset a password.

Modify user flags allows an administrator to set which clerks, librarians, patrons, technical support people or trustees have access to certain parts of the database. Right now, one can either have permission to access everything on the Intranet side, or just have access to the OPAC.

- - \ No newline at end of file +

If no patron image exists for this patron, click the "Add Patron Images" link to add an image or images. You should be aware that the Details page will display the image at 25% of the original pixel dimensions. Keep this in mind when obtaining patron images as it will affect how the images appear on this page.

+ 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 8f23698e55..932c3ef2cb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -193,7 +193,18 @@ for (var i=0;i - + +
+

Patron Image

+ + " width="25%" height="25%" alt="Patron Picture"> + +
  • There is no picture available for this patron.
  • + + +
    diff --git a/members/moremember.pl b/members/moremember.pl index 94d5668177..f0f3b01faa 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -326,9 +326,9 @@ foreach (@$alerts) { } my $picture; my $htdocs = C4::Context->config('intrahtdocs'); -$picture = "/borrowerimages/" . $borrowernumber . ".jpg"; -if ( -e $htdocs . "$picture" ) { - $template->param( picture => $picture ); +$picture = "patronimages/" . $data->{'cardnumber'} . ".jpg"; +if ( -e "$htdocs/$picture" ) { + $template->param( picture => "/intranet-tmpl/$picture" ); # FIXME: This is a real hack and should be handled better, but I'm in a hurry... -fbcit } my $branch=C4::Context->userenv->{'branch'}; -- 2.39.5