From f1f833c96568284552dae2b12f14229ef5c991bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Hinderer?= Date: Sun, 2 Aug 2009 07:50:08 +0200 Subject: [PATCH] bug 3464: Takes columns country and B_country of table borrowers into account in related operations. Signed-off-by: Galen Charlton --- C4/Members.pm | 2 ++ circ/circulation.pl | 1 + circ/ysearch.pl | 5 +++-- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 1 + .../prog/en/modules/help/tools/import_borrowers.tmpl | 2 +- .../intranet-tmpl/prog/en/modules/members/member.tmpl | 2 +- .../prog/en/modules/members/memberentrygen.tmpl | 8 ++++++++ labels/pcard-member-search.pl | 1 + members/boraccount.pl | 1 + members/guarantor_search.pl | 1 + members/mancredit.pl | 1 + members/maninvoice.pl | 1 + members/member-flags.pl | 1 + members/member-password.pl | 1 + members/member.pl | 1 + members/memberentry.pl | 5 +++-- members/moremember.pl | 2 +- members/pay.pl | 1 + members/readingrec.pl | 1 + misc/cronjobs/overdue_notices.pl | 4 ++-- tools/import_borrowers.pl | 4 ++-- 21 files changed, 35 insertions(+), 11 deletions(-) diff --git a/C4/Members.pm b/C4/Members.pm index b2ce9162c0..d82e5e4918 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -677,6 +677,7 @@ sub AddMember { . ",address=" . $dbh->quote( $data{'address'} ) . ",address2=" . $dbh->quote( $data{'address2'} ) . ",zipcode=" . $dbh->quote( $data{'zipcode'} ) + . ",country=" . $dbh->quote( $data{'country'} ) . ",city=" . $dbh->quote( $data{'city'} ) . ",phone=" . $dbh->quote( $data{'phone'} ) . ",email=" . $dbh->quote( $data{'email'} ) @@ -694,6 +695,7 @@ sub AddMember { . ",contactnote=" . $dbh->quote( $data{'contactnote'} ) . ",B_address=" . $dbh->quote( $data{'B_address'} ) . ",B_zipcode=" . $dbh->quote( $data{'B_zipcode'} ) + . ",B_country=" . $dbh->quote( $data{'B_country'} ) . ",B_city=" . $dbh->quote( $data{'B_city'} ) . ",B_phone=" . $dbh->quote( $data{'B_phone'} ) . ",B_email=" . $dbh->quote( $data{'B_email'} ) diff --git a/circ/circulation.pl b/circ/circulation.pl index 8dfdff0d77..6d791241f5 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -667,6 +667,7 @@ $template->param( borrowernotes => $borrower->{'borrowernotes'}, city => $borrower->{'city'}, zipcode => $borrower->{'zipcode'}, + country => $borrower->{'country'}, phone => $borrower->{'phone'} || $borrower->{'mobile'}, cardnumber => $borrower->{'cardnumber'}, amountold => $amountold, diff --git a/circ/ysearch.pl b/circ/ysearch.pl index 136ca76f7b..c7a9b67cc9 100755 --- a/circ/ysearch.pl +++ b/circ/ysearch.pl @@ -41,7 +41,7 @@ if ($auth_status ne "ok") { } my $dbh = C4::Context->dbh; -my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode +my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode, country FROM borrowers WHERE surname LIKE ? OR firstname LIKE ? @@ -55,6 +55,7 @@ while ( my $rec = $sth->fetchrow_hashref ) { $rec->{cardnumber} . "\t" . $rec->{address} . "\t" . $rec->{city} . "\t" . - $rec->{zip} . + $rec->{zip} . "\t" . + $rec->{country} . "\n"; } 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 6c8803713c..67e7b39867 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -23,6 +23,7 @@ + , No city stored. diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/import_borrowers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/import_borrowers.tmpl index ef2c0e1b29..5576350f35 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/import_borrowers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/import_borrowers.tmpl @@ -7,7 +7,7 @@