Additional fixes for Bug 5422, Separate state field for patron's adresses
authorOwen Leonard <oleonard@myacpl.org>
Thu, 7 Apr 2011 09:41:32 +0000 (11:41 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 8 Apr 2011 23:52:07 +0000 (11:52 +1200)
Adding state variable to various circ and member pages so that
sidebar display of patron details includes state.

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
members/boraccount.pl
members/mancredit.pl
members/maninvoice.pl
members/member-flags.pl
members/member-password.pl
members/pay.pl
members/readingrec.pl
tools/viewlog.pl

index 5242193..bcda99f 100755 (executable)
@@ -654,6 +654,7 @@ $template->param(
     emailpro          => $borrower->{'emailpro'},
     borrowernotes     => $borrower->{'borrowernotes'},
     city              => $borrower->{'city'},
+    state              => $borrower->{'state'},
     zipcode           => $borrower->{'zipcode'},
     country           => $borrower->{'country'},
     phone             => $borrower->{'phone'} || $borrower->{'mobile'},
index 8cf2e48..452effc 100644 (file)
@@ -21,9 +21,8 @@
         <li><!-- TMPL_VAR NAME="address2" --></li>
     <!-- /TMPL_IF --><li> 
     <!-- TMPL_IF NAME="city" -->
-            <!-- TMPL_VAR NAME="city" -->
-           <!-- TMPL_VAR NAME="zipcode" -->
-           <!-- TMPL_IF NAME="country" -->, <!-- TMPL_VAR NAME="country" --><!-- /TMPL_IF -->
+            <!-- TMPL_VAR NAME="city" --><!-- TMPL_IF NAME="state" -->, <!-- TMPL_VAR NAME="state" --><!-- /TMPL_IF -->
+           <!-- TMPL_VAR NAME="zipcode" --><!-- TMPL_IF NAME="country" -->, <!-- TMPL_VAR NAME="country" --><!-- /TMPL_IF -->
     <!-- TMPL_ELSE -->
         <span class="empty">No city stored.</span>
     <!-- /TMPL_IF --></li>
index 5509f3d..b91684a 100755 (executable)
@@ -109,6 +109,7 @@ $template->param(
     address             => $data->{'address'},
     address2            => $data->{'address2'},
     city                => $data->{'city'},
+    state               => $data->{'state'},
     zipcode             => $data->{'zipcode'},
     country             => $data->{'country'},
     phone               => $data->{'phone'},
index 0e80861..7db4bbd 100755 (executable)
@@ -83,6 +83,7 @@ if ($add){
                    address => $data->{'address'},
                    address2 => $data->{'address2'},
                    city => $data->{'city'},
+                   state => $data->{'state'},
                    zipcode => $data->{'zipcode'},
                    country => $data->{'country'},
                    phone => $data->{'phone'},
index 50595ad..521989b 100755 (executable)
@@ -111,6 +111,7 @@ if ($add){
                address => $data->{'address'},
                address2 => $data->{'address2'},
                city => $data->{'city'},
+               state => $data->{'state'},
                zipcode => $data->{'zipcode'},
                country => $data->{'country'},
                phone => $data->{'phone'},
index 321e526..007b56c 100755 (executable)
@@ -173,6 +173,7 @@ $template->param(
                address => $bor->{'address'},
                address2 => $bor->{'address2'},
                city => $bor->{'city'},
+        state => $bor->{'state'},
                zipcode => $bor->{'zipcode'},
                country => $bor->{'country'},
                phone => $bor->{'phone'},
index 67f96db..0fefe4f 100755 (executable)
@@ -101,6 +101,7 @@ $template->param( picture => 1 ) if $picture;
            address => $bor->{'address'},
            address2 => $bor->{'address2'},
            city => $bor->{'city'},
+           state => $bor->{'state'},
            zipcode => $bor->{'zipcode'},
            country => $bor->{'country'},
            phone => $bor->{'phone'},
index cefdfba..06e103d 100755 (executable)
@@ -157,6 +157,7 @@ $template->param( picture => 1 ) if $picture;
        address => $data->{'address'},
        address2 => $data->{'address2'},
        city => $data->{'city'},
+    state => $data->{'state'},
        zipcode => $data->{'zipcode'},
        country => $data->{'country'},
        phone => $data->{'phone'},
index 3ee6a8f..e7586a0 100755 (executable)
@@ -113,6 +113,7 @@ $template->param(
                                            address => $data->{'address'},
                                                address2 => $data->{'address2'},
                                            city => $data->{'city'},
+                                           state => $data->{'state'},
                                                zipcode => $data->{'zipcode'},
                                                country => $data->{'country'},
                                                phone => $data->{'phone'},
index 6f94eb8..d689217 100755 (executable)
@@ -85,7 +85,8 @@ 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'},
+                        state           => $data->{'state'},
+                        zipcode         => $data->{'zipcode'},
                         phone           => $data->{'phone'},
                         phonepro        => $data->{'phonepro'},
                         email           => $data->{'email'},