[Koha-patches] [PATCH] bug 2569: added the zipcode to display along with the patron address
Danny Bouman
danny.bouman at hclibrary.org
Thu Aug 28 21:22:39 CEST 2008
Added the zipcode to display along with the patron address when you are viewing a Patron from the intranet.
---
circ/circulation.pl | 1 +
.../intranet-tmpl/prog/en/includes/circ-menu.inc | 1 +
tools/viewlog.pl | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/circ/circulation.pl b/circ/circulation.pl
index f2af9be..36f0cdc 100755
--- a/circ/circulation.pl
+++ b/circ/circulation.pl
@@ -683,6 +683,7 @@ $template->param(
emailpro => $borrower->{'emailpro'},
borrowernotes => $borrower->{'borrowernotes'},
city => $borrower->{'city'},
+ zipcode => $borrower->{'zipcode'},
phone => $borrower->{'phone'} || $borrower->{'mobile'},
cardnumber => $borrower->{'cardnumber'},
amountold => $amountold,
diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
index defe58e..20e9ab4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
@@ -22,6 +22,7 @@
<!-- /TMPL_IF --><li>
<!-- TMPL_IF NAME="city" -->
<!-- TMPL_VAR NAME="city" -->
+ <!-- TMPL_VAR NAME="zipcode" -->
<!-- TMPL_ELSE -->
<span class="empty">No city stored.</span>
<!-- /TMPL_IF --></li>
diff --git a/tools/viewlog.pl b/tools/viewlog.pl
index f9c5952..c4c5d99 100755
--- a/tools/viewlog.pl
+++ b/tools/viewlog.pl
@@ -88,6 +88,7 @@ if ($src eq 'circ') { # if we were called from circulation, use the circulatio
address => $data->{'address'},
address2 => $data->{'address2'},
city => $data->{'city'},
+ zipcode => $data->{'zipcode'},
phone => $data->{'phone'},
phonepro => $data->{'phonepro'},
email => $data->{'email'},
--
1.5.6
More information about the Koha-patches
mailing list