From cc5e1f08918fb1717d1e530ea7262e9bbaeecb50 Mon Sep 17 00:00:00 2001 From: Nicole Engard Date: Wed, 12 Aug 2009 19:38:35 -0500 Subject: [PATCH] ENH 3561: Show Patron Image in OPAC Content-Type: text/plain; charset="utf-8" This patch requires that the staffClientBaseURL system preference is set in order to show the patron image in the OPAC. --- .../opac-tmpl/prog/en/modules/opac-userupdate.tmpl | 16 ++++++++++++++++ opac/opac-userupdate.pl | 6 ++++++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl index ad638e8..0433622 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl @@ -87,6 +87,22 @@
+ + + +
+Patron Photo +
    + +
  1. /cgi-bin/koha/members/patronimage.pl?crdnum=" id="patronimage" alt=" ()" border="0" style="max-width : 140px; margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC; width:auto !important; width:130px;" />
  2. + +
  3. /intranet-tmpl/prog/img/patron-blank.png" alt=" ()" border="0" style="margin: .3em 0 .3em .3em; padding: .2em; border: 1px solid #CCCCCC;" />
  4. + +
+
+ + +
Permanent Address
    diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl index 8664316..06a15d6 100755 --- a/opac/opac-userupdate.pl +++ b/opac/opac-userupdate.pl @@ -174,4 +174,10 @@ $template->param( userupdateview => 1, ); +if (C4::Context->preference('staffClientBaseURL')){ + $template->param( intraneturl => C4::Context->preference('staffClientBaseURL') ); + my ($picture, $dberror) = GetPatronImage($borr->{'cardnumber'}); + $template->param( picture => 1 ) if $picture; +} + output_html_with_http_headers $query, $cookie, $template->output; -- 1.5.6.5