Bugzilla – Attachment 9647 Details for
Bug 8125
SIP should send Zipcode with address
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8125 - Adds zipcode to address output
Bug-8125---Adds-zipcode-to-address-output.patch (text/plain), 1.31 KB, created by
Liz Rea
on 2012-05-18 16:56:08 UTC
(
hide
)
Description:
Bug 8125 - Adds zipcode to address output
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-05-18 16:56:08 UTC
Size:
1.31 KB
patch
obsolete
>From 8e6b071b86fdfb654996b481c157a0c6bff3297c Mon Sep 17 00:00:00 2001 >From: Liz Rea <wizzyrea@gmail.com> >Date: Fri, 18 May 2012 11:56:46 -0500 >Subject: [PATCH] Bug 8125 - Adds zipcode to address output >Content-Type: text/plain; charset="utf-8" > >Please test thoroughly - also, I don't know if there is a specific field that SIP expects zipcode to be in. If there is, this patch probably won't fix the issue. > >To test: >fetch a valid patron using SIP. The Address field should have the zipcode included. >--- > C4/SIP/ILS/Patron.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm >index 99fd6e7..a3c805b 100644 >--- a/C4/SIP/ILS/Patron.pm >+++ b/C4/SIP/ILS/Patron.pm >@@ -61,11 +61,12 @@ sub new { > my %ilspatron; > my $adr = $kp->{streetnumber} || ''; > my $address = $kp->{address} || ''; >+ my $zip = $kp->{zipcode} || ''; > my $dob = $kp->{dateofbirth}; > $dob and $dob =~ s/-//g; # YYYYMMDD > my $dexpiry = $kp->{dateexpiry}; > $dexpiry and $dexpiry =~ s/-//g; # YYYYMMDD >- $adr .= ($adr && $address) ? " $address" : $address; >+ $adr .= ($adr && $address && $zip) ? " $address" : $address; > my $fines_amount = $flags->{CHARGES}->{amount}; > $fines_amount = ($fines_amount and $fines_amount > 0) ? $fines_amount : 0; > { >-- >1.7.2.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 8125
:
9647
|
9694
|
10590
|
14169
|
21884
|
23263