Bugzilla – Attachment 1560 Details for
Bug 3765
Road Types and Street Numbers on Patron Rec Inconsistent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch part 2
0115-bug-3765-part-2-Additional-updates-to-make-address.patch (text/plain), 4.14 KB, created by
Chris Cormack
on 2009-12-29 17:41:00 UTC
(
hide
)
Description:
patch part 2
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-12-29 17:41:00 UTC
Size:
4.14 KB
patch
obsolete
>From 24281eba4e80e01c8643242c047a7b3c7040ece5 Mon Sep 17 00:00:00 2001 >From: Nicole Engard <nengard@gmail.com> >Date: Mon, 28 Dec 2009 06:09:06 -0500 >Subject: [PATCH] bug 3765 [part 2] Additional updates to make addresss appear in full >Content-Type: text/plain; charset="utf-8" > >--- > circ/circulation.pl | 2 +- > .../intranet-tmpl/prog/en/includes/circ-menu.inc | 3 +++ > members/boraccount.pl | 5 ++++- > tools/viewlog.pl | 4 +++- > 4 files changed, 11 insertions(+), 3 deletions(-) > >diff --git a/circ/circulation.pl b/circ/circulation.pl >index 19df3bf..b6f6c84 100755 >--- a/circ/circulation.pl >+++ b/circ/circulation.pl >@@ -661,7 +661,7 @@ if($bor_messages_loop){ $template->param(flagged => 1 ); } > > # Computes full borrower address > my (undef, $roadttype_hashref) = &GetRoadTypes(); >-my $address = $borrower->{'streetnumber'}.' '.$roadttype_hashref->{$borrower->{'streettype'}}.' '.$borrower->{'address'}; >+my $address = $borrower->{'streetnumber'}.' '.$borrower->{'address'}.' '.$roadttype_hashref->{$borrower->{'streettype'}}; > > $template->param( > issued_itemtypes_count_loop => \@issued_itemtypes_count_loop, >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 443e12b..4b182a8 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -13,6 +13,9 @@ > <!-- /TMPL_IF --> > <!-- /TMPL_IF --> > <li><!-- TMPL_IF NAME="address"--> >+ <!--TMPL_IF NAME="streetnumber"--> >+ <!-- TMPL_VAR NAME="streetnumber" --> >+ <!-- /TMPL_IF --> > <!-- TMPL_VAR NAME="address" --> > <!--TMPL_IF NAME="roaddetails"--> > <!-- TMPL_VAR NAME="roaddetails" --> >diff --git a/members/boraccount.pl b/members/boraccount.pl >index 6233e78..7f582b7 100755 >--- a/members/boraccount.pl >+++ b/members/boraccount.pl >@@ -113,6 +113,9 @@ $template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' ); > my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); > $template->param( picture => 1 ) if $picture; > >+my (undef, $roadttype_hashref) = &GetRoadTypes(); >+my $address = $data->{'streetnumber'}.' '.$data->{'address'}.' '.$roadttype_hashref->{$data->{'streettype'}}; >+ > $template->param( > finesview => 1, > firstname => $data->{'firstname'}, >@@ -123,7 +126,7 @@ $template->param( > category_type => $data->{'category_type'}, > # category_description => $data->{'description'}, > categoryname => $data->{'description'}, >- address => $data->{'address'}, >+ address => $address, > address2 => $data->{'address2'}, > city => $data->{'city'}, > zipcode => $data->{'zipcode'}, >diff --git a/tools/viewlog.pl b/tools/viewlog.pl >index 3b4be0e..6c164c7 100755 >--- a/tools/viewlog.pl >+++ b/tools/viewlog.pl >@@ -73,6 +73,8 @@ if ($src eq 'circ') { # if we were called from circulation, use the circulatio > my $borrowernumber = $object; > my $data = GetMember('borrowernumber'=>$borrowernumber); > my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); >+ my (undef, $roadttype_hashref) = &GetRoadTypes(); >+ my $address = $data->{'streetnumber'}.' '.$data->{'address'}.' '.$roadttype_hashref->{$data->{'streettype'}}; > $template->param( picture => 1 ) if $picture; > $template->param( menu => 1, > title => $data->{'title'}, >@@ -83,7 +85,7 @@ if ($src eq 'circ') { # if we were called from circulation, use the circulatio > cardnumber => $data->{'cardnumber'}, > categorycode => $data->{'categorycode'}, > categoryname => $data->{'description'}, >- address => $data->{'address'}, >+ address => $address, > address2 => $data->{'address2'}, > city => $data->{'city'}, > zipcode => $data->{'zipcode'}, >-- >1.5.6.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 3765
:
1557
|
1558
|
1559
|
1560