Bugzilla – Attachment 354 Details for
Bug 1600
Alternate address form should offer 2 address fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed Patch
0001-Bug-3464-Added-altcontactcountry-and-B_address2-to.patch (text/plain), 23.52 KB, created by
Chris Cormack
on 2009-09-05 10:37:00 UTC
(
hide
)
Description:
Proposed Patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-09-05 10:37:00 UTC
Size:
23.52 KB
patch
obsolete
>From ceb2e09e28997b05035df1f19f34460986805741 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Fri, 4 Sep 2009 17:37:14 +0200 >Subject: [PATCH] Bug 3464: Added altcontactcountry and B_address2 to borrowers and deletedborrowers >Content-Type: text/plain; charset="utf-8" > >- added altcontactcountry and B_address2 to tables borrowers and deletedborrowers so that all addresses offer the same fields >- changed B_country and country to work with syspref BorrowerMandatoryField >- changed display of Alternate Address on borrower detail page, added labels, lines and edit button to match the other sections >--- > C4/Members.pm | 2 + > C4/SIP/ILS/Patron.pm | 5 ++ > installer/data/Pg/kohastructure.sql | 24 ++++++++- > installer/data/mysql/kohastructure.sql | 4 ++ > installer/data/mysql/updatedatabase.pl | 10 ++++ > .../en/modules/help/tools/import_borrowers.tmpl | 2 +- > .../prog/en/modules/members/memberentrygen.tmpl | 53 ++++++++++++++++--- > .../prog/en/modules/members/moremember.tmpl | 17 ++++-- > .../prog/en/modules/opac-userdetails.tmpl | 2 +- > .../opac-tmpl/prog/en/modules/opac-userupdate.tmpl | 8 ++- > members/memberentry.pl | 6 +- > 11 files changed, 108 insertions(+), 25 deletions(-) > >diff --git a/C4/Members.pm b/C4/Members.pm >index d82e5e4..5bb3476 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -694,6 +694,7 @@ sub AddMember { > . ",dateexpiry=" . $dbh->quote( $data{'dateexpiry'} ) > . ",contactnote=" . $dbh->quote( $data{'contactnote'} ) > . ",B_address=" . $dbh->quote( $data{'B_address'} ) >+ . ",B_address2=" . $dbh->quote( $data{'B_address2'} ) > . ",B_zipcode=" . $dbh->quote( $data{'B_zipcode'} ) > . ",B_country=" . $dbh->quote( $data{'B_country'} ) > . ",B_city=" . $dbh->quote( $data{'B_city'} ) >@@ -722,6 +723,7 @@ sub AddMember { > . ",altcontactaddress2=" . $dbh->quote( $data{'altcontactaddress2'} ) > . ",altcontactaddress3=" . $dbh->quote( $data{'altcontactaddress3'} ) > . ",altcontactzipcode=" . $dbh->quote( $data{'altcontactzipcode'} ) >+ . ",altcontactcountry=" . $dbh->quote( $data{'altcontactcountry'} ) > . ",altcontactphone=" . $dbh->quote( $data{'altcontactphone'} ) ; > $debug and print STDERR "AddMember SQL: ($query)\n"; > my $sth = $dbh->prepare($query); >diff --git a/C4/SIP/ILS/Patron.pm b/C4/SIP/ILS/Patron.pm >index 29e7464..51e3141 100644 >--- a/C4/SIP/ILS/Patron.pm >+++ b/C4/SIP/ILS/Patron.pm >@@ -384,6 +384,7 @@ From borrowers table: > | address2 | text | YES | | > | city | mediumtext | NO | | > | zipcode | varchar(25) | YES | | >+| country | text | YES | | > | email | mediumtext | YES | | > | phone | text | YES | | > | mobile | varchar(50) | YES | | >@@ -393,8 +394,10 @@ From borrowers table: > | B_streetnumber | varchar(10) | YES | | > | B_streettype | varchar(50) | YES | | > | B_address | varchar(100) | YES | | >+| B_address2 | text | YES | | > | B_city | mediumtext | YES | | > | B_zipcode | varchar(25) | YES | | >+| B_country | text | YES | | > | B_email | text | YES | | > | B_phone | mediumtext | YES | | > | dateofbirth | date | YES | | >@@ -427,7 +430,9 @@ From borrowers table: > | altcontactaddress2 | varchar(255) | YES | | > | altcontactaddress3 | varchar(255) | YES | | > | altcontactzipcode | varchar(50) | YES | | >+| altcontactcountry | text | YES | | > | altcontactphone | varchar(50) | YES | | >+| smsalertnumber | varchar(50) | YES | | > +---------------------+--------------+------+-----+ > > From C4::Members >diff --git a/installer/data/Pg/kohastructure.sql b/installer/data/Pg/kohastructure.sql >index 69abd24..12967dc 100644 >--- a/installer/data/Pg/kohastructure.sql >+++ b/installer/data/Pg/kohastructure.sql >@@ -483,6 +483,7 @@ phonepro text, > B_streetnumber varchar(10) default NULL, > B_streettype varchar(50) default NULL, > B_address varchar(100) default NULL, >+B_address2 text default NULL, > B_city text, > B_zipcode varchar(25) default NULL, > B_country text, >@@ -511,7 +512,16 @@ userid varchar(30) default NULL, > opacnote text, > contactnote varchar(255) default NULL, > sort1 varchar(80) default NULL, >-sort2 varchar(80) default NULL >+sort2 varchar(80) default NULL, >+altcontactfirstname varchar(255) default NULL, >+altcontactsurname varchar(255) default NULL, >+altcontactaddress1 varchar(255) default NULL, >+altcontactaddress2 varchar(255) default NULL, >+altcontactaddress3 varchar(255) default NULL, >+altcontactzipcode varchar(50) default NULL, >+altcontactcountry text default NULL, >+altcontactphone varchar(50) default NULL, >+smsalertnumber varchar(50) default NULL > ); > CREATE INDEX borrowers_branchcode_idx ON borrowers (branchcode); > CREATE INDEX borrowers_borrowernumber_idx ON borrowers (borrowernumber); >@@ -769,6 +779,7 @@ phonepro text, > B_streetnumber varchar(10) default NULL, > B_streettype varchar(50) default NULL, > B_address varchar(100) default NULL, >+B_address2 text default NULL, > B_city text, > B_zipcode varchar(25) default NULL, > B_email text, >@@ -796,7 +807,16 @@ userid varchar(30) default NULL, > opacnote text, > contactnote varchar(255) default NULL, > sort1 varchar(80) default NULL, >-sort2 varchar(80) default NULL >+sort2 varchar(80) default NULL, >+altcontactfirstname varchar(255) default NULL, >+altcontactsurname varchar(255) default NULL, >+altcontactaddress1 varchar(255) default NULL, >+altcontactaddress2 varchar(255) default NULL, >+altcontactaddress3 varchar(255) default NULL, >+altcontactzipcode varchar(50) default NULL, >+altcontactcountry text default NULL, >+altcontactphone varchar(50) default NULL, >+smsalertnumber varchar(50) default NULL > ); > CREATE INDEX deletedborrowers_borrowernumber_idx ON deletedborrowers (borrowernumber); > CREATE INDEX deletedborrowers_cardnumber_idx ON deletedborrowers (cardnumber); >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index a12f4fd..a641929 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -454,6 +454,7 @@ CREATE TABLE `borrowers` ( > `B_streetnumber` varchar(10) default NULL, > `B_streettype` varchar(50) default NULL, > `B_address` varchar(100) default NULL, >+ `B_address2` text default NULL, > `B_city` mediumtext, > `B_zipcode` varchar(25) default NULL, > `B_country` text, >@@ -489,6 +490,7 @@ CREATE TABLE `borrowers` ( > `altcontactaddress2` varchar(255) default NULL, > `altcontactaddress3` varchar(255) default NULL, > `altcontactzipcode` varchar(50) default NULL, >+ `altcontactcountry` text default NULL, > `altcontactphone` varchar(50) default NULL, > `smsalertnumber` varchar(50) default NULL, > UNIQUE KEY `cardnumber` (`cardnumber`), >@@ -872,6 +874,7 @@ CREATE TABLE `deletedborrowers` ( > `B_streetnumber` varchar(10) default NULL, > `B_streettype` varchar(50) default NULL, > `B_address` varchar(100) default NULL, >+ `B_address2` text default NULL, > `B_city` mediumtext, > `B_zipcode` varchar(25) default NULL, > `B_country` text, >@@ -907,6 +910,7 @@ CREATE TABLE `deletedborrowers` ( > `altcontactaddress2` varchar(255) default NULL, > `altcontactaddress3` varchar(255) default NULL, > `altcontactzipcode` varchar(50) default NULL, >+ `altcontactcountry` text default NULL, > `altcontactphone` varchar(50) default NULL, > `smsalertnumber` varchar(50) default NULL, > KEY `borrowernumber` (`borrowernumber`), >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 5f3d7a1..a0fd35a 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -2596,6 +2596,16 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { > print "Upgrade to $DBversion done (bug 3481: add permanent_location column to deleteditems)\n"; > } > >+$DBversion = '3.01.00.053'; >+if (C4::Context->preference("Version") < TransformToNum($DBversion)) { >+ $dbh->do("ALTER TABLE borrowers ADD `B_address2` text AFTER B_address"); >+ $dbh->do("ALTER TABLE borrowers ADD `altcontactcountry` text AFTER altcontactzipcode"); >+ $dbh->do("ALTER TABLE deletedborrowers ADD `B_address2` text AFTER B_address"); >+ $dbh->do("ALTER TABLE deletedborrowers ADD `altcontactcountry` text AFTER altcontactzipcode"); >+ SetVersion ($DBversion); >+ print "Upgrade to $DBversion done (bug 1600, bug 3454: add altcontactcountry and B_address2 to borrowers and deletedborrowers)\n"; >+} >+ > =item DropAllForeignKeys($table) > > Drop all foreign keys of the table $table >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 5576350..c0b7f11 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 @@ > <ul> > <li>Format your file with the following fields > <ul> >- <li>'cardnumber', 'surname', 'firstname', 'title', 'othernames', 'initials', 'streetnumber', 'streettype', 'address', 'address2', 'city', 'zipcode', 'country', 'email', 'phone', 'mobile', 'fax', 'emailpro', 'phonepro', 'B_streetnumber', 'B_streettype', 'B_address', 'B_city', 'B_zipcode', 'B_country', 'B_email', 'B_phone', 'dateofbirth', 'branchcode', 'categorycode', 'dateenrolled', 'dateexpiry', 'gonenoaddress', 'lost', 'debarred', 'contactname', 'contactfirstname', 'contacttitle', 'borrowernotes', 'relationship', 'ethnicity', 'ethnotes', 'sex', 'userid', 'opacnote', 'contactnote', 'password', 'sort1', 'sort2' >+ <li>'surname', 'firstname', 'title', 'othernames', 'initials', 'streetnumber', 'streettype', 'address', 'address2', 'city', 'zipcode', 'country', 'email', 'phone', 'mobile', 'fax', 'emailpro', 'phonepro', 'B_streetnumber', 'B_streettype', 'B_address', 'B_address2', 'B_city', 'B_zipcode', 'B_country', 'B_email', 'B_phone', 'dateofbirth', 'branchcode', 'categorycode', 'dateenrolled', 'dateexpiry', 'gonenoaddress', 'lost', 'debarred', 'contactname', 'contactfirstname', 'contacttitle', 'guarantorid', 'borrowernotes', 'relationship', 'ethnicity', 'ethnotes', 'sex', 'password', 'flags', 'userid', 'opacnote', 'contactnote', 'sort1', 'sort2', 'altcontactfirstname', 'altcontactsurname', 'altcontactaddress1', 'altcontactaddress2', 'altcontactaddress3', 'altcontactzipcode', 'altcontactcountry', 'altcontactphone', 'smsalertnumber', 'patron_attributes' > <ul> > <li> > <span style="background-color: #ffe599"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl >index 830b076..20043c2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl >@@ -415,10 +415,17 @@ > <input type="text" name="zipcode" id="zipcode" size="10" value="<!-- TMPL_VAR NAME="zipcode" -->" /> > <!-- TMPL_IF NAME="mandatoryzipcode" --><span class="required">Required</span><!-- /TMPL_IF --> > </li> >- <li> >- <label for="country">Country: </label> >- <input type="text" name="country" id="country" value="<!-- TMPL_VAR NAME="country" -->" /> >- </li> >+ >+ <li> >+ <!-- TMPL_IF NAME="mandatorycountry" --> >+ <label for="country" class="required"> >+ <!--TMPL_ELSE--> >+ <label for="country"> >+ <!-- /TMPL_IF--> >+ Country: </label> >+ <input type="text" name="country" id="country" size="20" value="<!-- TMPL_VAR NAME="country" -->" /> >+ <!-- TMPL_IF NAME="mandatorycountry" --><span class="required">Required</span><!-- /TMPL_IF --> >+ </li> > > </ol> > </fieldset> >@@ -492,7 +499,7 @@ > > <!-- ************************ STEP_1 *********************** --> > <!--/TMPL_IF --> >-<!--TMPL_IF Name="step_2"--> >+<!--TMPL_IF Name="step_6"--> > > <fieldset class="rows" id="memberentry_address"> > <legend>Alternate address</legend><ol> >@@ -507,6 +514,16 @@ > <!-- TMPL_IF NAME="mandatoryB_address" --><span class="required">Required</span><!-- /TMPL_IF --> > </li> > <li> >+ <!-- TMPL_IF NAME="mandatoryB_address2" --> >+ <label for="B_address2" class="required"> >+ <!--TMPL_ELSE--> >+ <label for="B_address2"> >+ <!-- /TMPL_IF--> >+ Address 2: </label> >+ <input type="text" id="B_address2" name="B_address2" size="40" value="<!-- TMPL_VAR NAME="B_address2" -->" /> >+ <!-- TMPL_IF NAME="mandatoryB_address2" --><span class="required">Required</span><!-- /TMPL_IF --> >+ </li> >+ <li> > <!-- TMPL_IF NAME="mandatoryB_city" --> > <label for="B_city" class="required" > > <!--TMPL_ELSE--> >@@ -526,10 +543,16 @@ > <input type="text" id="B_zipcode" name="B_zipcode" maxlength="10" size="10" value="<!-- TMPL_VAR NAME="B_zipcode" -->" /> > <!-- TMPL_IF NAME="mandatoryB_zipcode" --><span class="required">Required</span><!-- /TMPL_IF --> > </li> >- <li> >- <label for="B_country">Country: </label> >- <input type="text" name="B_country" id="B_country" value="<!-- TMPL_VAR NAME="B_country" -->" /> >- </li> >+ <li> >+ <!-- TMPL_IF NAME="mandatoryB_country" --> >+ <label for="B_country" class="required"> >+ <!--TMPL_ELSE--> >+ <label for="B_country"> >+ <!-- /TMPL_IF--> >+ Country: </label> >+ <input type="text" id="B_country" name="B_country" size="20" value="<!-- TMPL_VAR NAME="B_country" -->" /> >+ <!-- TMPL_IF NAME="mandatoryB_country" --><span class="required">Required</span><!-- /TMPL_IF --> >+ </li> > <li> > <!-- TMPL_IF NAME="mandatoryB_phone" --> > <label for="B_phone" class="required"> >@@ -561,6 +584,8 @@ > </li> > </ol> > </fieldset> >+<!-- /TMPL_IF --> >+<!--TMPL_IF Name="step_2"--> > <fieldset class="rows" id="memberentry_altaddress"> > <legend>Alternate Contact</legend><ol> > <li> >@@ -624,6 +649,16 @@ > <!-- TMPL_IF NAME="mandatoryaltcontactzipcode" --><span class="required">Required</span><!-- /TMPL_IF --> > </li> > <li> >+ <!-- TMPL_IF NAME="mandatoryaltcontactcountry" --> >+ <label for="altcontactcountry" class="required"> >+ <!-- TMPL_ELSE --> >+ <label for="altcontactcountry"> >+ <!-- /TMPL_IF --> >+ Country:</label> >+ <input type="text" name="altcontactcountry" id="altcontactcountry" value="<!-- TMPL_VAR NAME="altcontactcountry" -->" size="20" /> >+ <!-- TMPL_IF NAME="mandatoryaltcontactcountry" --><span class="required">Required</span><!-- /TMPL_IF --> >+ </li> >+ <li> > <!-- TMPL_IF NAME="mandatoryaltcontactphone" --> > <label for="altcontactphone" class="required"> > <!-- TMPL_ELSE --> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl >index 076c310..8e6b73c 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl >@@ -169,7 +169,8 @@ if (nodename =="barcodes[]"){ > <!-- TMPL_VAR NAME="address" --><br /> > <!-- TMPL_IF NAME="address2" --><!-- TMPL_VAR NAME="address2"--><br /><!-- /TMPL_IF --> > <!-- TMPL_IF NAME="city" --><!-- TMPL_VAR NAME="city" --><!-- /TMPL_IF --> >- <!-- TMPL_IF NAME="zipcode" --><!-- TMPL_VAR NAME="zipcode" --><!-- /TMPL_IF --></p> >+ <!-- TMPL_IF NAME="zipcode" --><!-- TMPL_VAR NAME="zipcode" --><br /><!-- /TMPL_IF --> >+ <!-- TMPL_IF NAME="country" --><!-- TMPL_VAR NAME="country" --><!-- /TMPL_IF --></p> > > <div class="rows"> > <ol> >@@ -333,9 +334,11 @@ if (nodename =="barcodes[]"){ > <div id="patron-alternate-address" style="padding-top: 1em;"> > <h3>Alternate Address</h3> > <!-- TMPL_UNLESS NAME="I"--><!-- TMPL_UNLESS NAME="C"--> >- <p><!-- TMPL_VAR NAME="B_address" --><br /> >- <!-- TMPL_VAR NAME="B_city" --><br /> >- <!-- TMPL_VAR NAME="B_zipcode" --></p> >+ <div class="rows"> <ol><li><span class="label">Address: </span><!-- TMPL_VAR NAME="B_address" --></li> >+ <li><span class="label">Address 2: </span><!-- TMPL_VAR NAME="B_address2" --></li> >+ <li><span class="label">City, State: </span><!-- TMPL_VAR NAME="B_city" --></li> >+ <li><span class="label">Zip/Postal Code: </span><!-- TMPL_VAR NAME="B_zipcode" --></li> >+ <li><span class="label">Country: </span><!-- TMPL_VAR NAME="B_country" --></li></ol></div> > <!-- /TMPL_UNLESS --><!-- /TMPL_UNLESS --> > <!-- TMPL_IF NAME="C" --> > <div class="rows"> <ol><li><span class="label">Surname: </span><!-- TMPL_VAR NAME="contactname" --></li> >@@ -345,15 +348,17 @@ if (nodename =="barcodes[]"){ > <li><span class="label">Relationship: </span><!-- TMPL_VAR NAME="relationship" --></li></ol></div> > <!-- /TMPL_IF --> > </div> >+<div class="action"><a href="memberentry.pl?op=modify&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&step=6">Edit</a></div> > > <div id="patron-alternative-contact" style="padding-top: 1em;"> > <h3>Alternative Contact</h3> > <div class="rows"> <ol><li><span class="label">Surname: </span><!-- TMPL_VAR NAME="altcontactsurname" --></li> > <li><span class="label">First name: </span><!-- TMPL_VAR NAME="altcontactfirstname" --></li> > <li><span class="label">Address: </span><!-- TMPL_VAR NAME="altcontactaddress1" --></li> >- <li><span class="label">Address (cont.): </span><!-- TMPL_VAR NAME="altcontactaddress2" --></li> >+ <li><span class="label">Address 2: </span><!-- TMPL_VAR NAME="altcontactaddress2" --></li> > <li><span class="label">City, State: </span><!-- TMPL_VAR NAME="altcontactaddress3" --></li> > <li><span class="label">Zip/Postal Code: </span><!-- TMPL_VAR NAME="altcontactzipcode" --></li> >+ <li><span class="label">Country: </span><!-- TMPL_VAR NAME="altcontactcountry" --></li> > <li><span class="label">Phone: </span><!-- TMPL_VAR NAME="altcontactphone" --></li></ol></div> > </div> > <div class="action"><a href="memberentry.pl?op=modify&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&step=2">Edit</a></div> >@@ -516,7 +521,7 @@ if (nodename =="barcodes[]"){ > <th>Call Number</th> > <th>Barcode</th> > <th>Priority</th> >- <th>Delete?</th> >+ <th>Delete?alter</th> > </tr></thead> > <tbody><!-- TMPL_LOOP NAME="reservloop" --> > <tr class="<!-- TMPL_VAR NAME="color" -->"> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userdetails.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userdetails.tmpl >index 273cbfb..174b8bd 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userdetails.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userdetails.tmpl >@@ -21,7 +21,7 @@ Card Number:</th><td><!-- TMPL_VAR NAME="cardnumber" --></td></tr> > <caption>Contact Details</caption> > <tr><th scope="row">Mailing Address:</th><td><!-- TMPL_VAR NAME="address" -->, <!-- TMPL_VAR NAME="city" --></td></tr> > >-<tr><th scope="row">Permanent Address:</th><td> <!-- TMPL_VAR NAME="B_address" -->, <!-- TMPL_VAR NAME="B_city" --></td></tr> >+<tr><th scope="row">Permanent Address:</th><td> <!-- TMPL_VAR NAME="B_address" -->, <!-- TMPL_VAR NAME="B_address2" -->, <!-- TMPL_VAR NAME="B_city" --></td></tr> > > <tr><th scope="row">Phone (Home):</th><td><!-- TMPL_IF NAME="phone" --><!-- TMPL_VAR NAME="phone" --><!-- TMPL_ELSE --> <!-- /TMPL_IF --></td></tr> > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl >index ad638e8..4ae620c 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl >@@ -30,7 +30,8 @@ > <input type="text" name="address" value="<!-- TMPL_VAR NAME="address" -->" id="address" /> > <input type="text" name="address2" value="<!-- TMPL_VAR NAME="address2" -->" id="address2" /></li> > <li><label for="city">City, State:</label> <input id="city" type="text" value="<!-- TMPL_VAR name="city" -->" name="city" /></li> >-<li><label for="zipcode">Zip Code: </label><input id="zipcode" name="zipcode" value="<!-- TMPL_VAR NAME="zipcode" -->" /></li> >+<li><label for="zipcode">Zip Code: </label><input id="zipcode" name="zipcode" value="<!-- TMPL_VAR NAME="zipcode" -->" name="zipcode" /></li> >+<li><label for="country">Country: </label><input id="country" name="country" value="<!-- TMPL_VAR NAME="country" -->" name="country" /></li> > <li><label for="phone">Home Phone:</label> <input id="phone" type="text" value="<!-- TMPL_VAR name="phone" -->" name="phone" /></li> > <li><label for="mobile">Mobile Phone:</label> <input id="mobile" type="text" value="<!-- TMPL_VAR name="mobile" -->" name="mobile" /></li> > <li><label for="fax">Fax:</label> <input id="fax" type="text" value="<!-- TMPL_VAR name="fax" -->" name="fax" /></li> >@@ -92,11 +93,12 @@ > <ol> > <li> > <label for="B_streetaddress">Permanent or Alternate Address:</label> >- <textarea id="B_streetaddress" cols="25" rows="2" name="B_streetaddress"><!--TMPL_VAR NAME="B_streetnumber"--> <!-- TMPL_VAR name="B_address" --></textarea> >+ <textarea id="B_streetaddress" cols="25" rows="3" name="B_streetaddress"><!--TMPL_VAR NAME="B_streetnumber"--> <!-- TMPL_VAR name="B_address" --> <!-- TMPL_VAR name="B_address2" --></textarea> > </li> > > <li><label for="B_city">City, State:</label> <input id="B_city" type="text" value="<!-- TMPL_VAR name="B_city" -->" name="B_city" /></li> >-<li><label for="B_zipcode">Zip Code</label> <input type="text" id="B_zipcode" name="B_zipcode" value="<!-- TMPL_VAR NAME="B_zipcode" -->" /></li> >+<li><label for="B_zipcode">Zip Code</label> <input type="text" id="B_zipcode" name="B_zipcode" value="<!-- TMPL_VAR NAME="B_zipcode" -->" name="B_zipcode" /></li> >+<li><label for="B_country">Country</label> <input type="text" id="B_country" name="B_country" value="<!-- TMPL_VAR NAME="B_country" -->" name="B_country" /></li> > </ol> > </fieldset> > <fieldset class="brief"> >diff --git a/members/memberentry.pl b/members/memberentry.pl >index ade31e2..2181378 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -360,7 +360,7 @@ if ($nok or !$nodouble){ > %data=%newdata; > $template->param( updtype => ($op eq 'add' ?'I':'M')); # used to check for $op eq "insert"... but we just changed $op! > unless ($step){ >- $template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1); >+ $template->param( step_1 => 1,step_2 => 1,step_3 => 1, step_4 => 1, step_5 => 1, step_6 => 1); > } > } > if (C4::Context->preference("IndependantBranches")) { >@@ -375,11 +375,11 @@ if (C4::Context->preference("IndependantBranches")) { > if ($op eq 'add'){ > my $arg2 = $newdata{'dateenrolled'} || C4::Dates->today('iso'); > $data{'dateexpiry'} = GetExpiryDate($newdata{'categorycode'},$arg2); >- $template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1); >+ $template->param( updtype => 'I', step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1); > } > if ($op eq "modify") { > $template->param( updtype => 'M',modify => 1 ); >- $template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1) unless $step; >+ $template->param( step_1=>1, step_2=>1, step_3=>1, step_4=>1, step_5 => 1, step_6 => 1) unless $step; > } > # my $cardnumber=$data{'cardnumber'}; > $data{'cardnumber'}=fixup_cardnumber($data{'cardnumber'}) if $op eq 'add'; >-- >1.6.0.4 >
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 1600
:
353
| 354