From 4af75c47cfdff841aa5ee26707a31f78cc2532e3 Mon Sep 17 00:00:00 2001 From: Bouzid Fergani Date: Tue, 5 Jan 2016 16:00:12 -0500 Subject: [PATCH] Bug 11879 - Update BDIx schema and show main contact method in moremember.pl --- Koha/Schema/Result/Borrower.pm | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 1 + members/moremember.pl | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index 97f65d0..4a2bbe2 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -395,7 +395,7 @@ __PACKAGE__->table("borrowers"); default_value: 1 is_nullable: 0 -=head2 privacy_guarantor_checkouts +=head2 primary_contact_method data_type: 'tinyint' default_value: 0 @@ -566,8 +566,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 50 }, "privacy", { data_type => "integer", default_value => 1, is_nullable => 0 }, - "privacy_guarantor_checkouts", - { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "primary_contact_method", + { data_type => "varchar", is_nullable => 1, size => 45 }, ); =head1 PRIMARY KEY diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 30cda46..49a09a2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -240,6 +240,7 @@ function validate1(date) {
  • Guarantor:[% guarantorsurname %][%IF ( guarantorfirstname ) %], [% guarantorfirstname %] [% END %]
  • [% END %] [% END %] +
  • Main contact method: [% primary_contact_method %]
  • diff --git a/members/moremember.pl b/members/moremember.pl index 796e19a..72f5340 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -340,6 +340,7 @@ $template->param( borrowernumber => $borrowernumber, othernames => $data->{'othernames'}, categoryname => $data->{'description'}, + primary_contact_method => $data->{'primary_contact_method'}, was_renewed => $input->param('was_renewed') ? 1 : 0, branch => $branch, todaysdate => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }), -- 1.9.1