Index: openacs-4/packages/contacts-lite/contacts-lite.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/contacts-lite/contacts-lite.info,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/contacts-lite/contacts-lite.info	20 Jan 2021 18:35:37 -0000	1.1
+++ openacs-4/packages/contacts-lite/contacts-lite.info	23 Jan 2021 00:03:52 -0000	1.2
@@ -7,17 +7,19 @@
     <initial-install-p>f</initial-install-p>
     <singleton-p>f</singleton-p>
     
-    <version name="0.2d" url="http://openacs.org/repository/download/apm/contacts-lite-0.2d.apm">
+    <version name="0.3d" url="http://openacs.org/repository/download/apm/contacts-lite-0.3d.apm">
         <owner url="mailto:jon@jongriffin.com">Jon Griffin</owner>
         <summary>This is a simple contact database</summary>
         <release-date>2002-06-11</release-date>
         <vendor url="www.mayuli.com">Mayuli Enterprises LLC</vendor>
         <description format="text/plain">This is a simple contact database. 
 It doesn't include all the features of ACT, but it does the job for most people.</description>
 
+        <provides url="contacts-lite" version="0.3d"/>
         <requires url="acs-kernel" version="4.1"/>
         <requires url="acs-reference" version="0.2d"/>
         <requires url="ref-countries" version="0.1d"/>
+        <requires url="ref-us-states" version="0.1d"/>
 
         <files>
             <file type="package_spec" path="contacts-lite.info"/>
Index: openacs-4/packages/contacts-lite/www/add-edit-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/contacts-lite/www/add-edit-postgresql.xql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/contacts-lite/www/add-edit-postgresql.xql	20 Jan 2021 18:35:37 -0000	1.1
+++ openacs-4/packages/contacts-lite/www/add-edit-postgresql.xql	23 Jan 2021 00:03:52 -0000	1.2
@@ -6,25 +6,24 @@
 <fullquery name="new_contact">      
       <querytext>
         select contact__new (
-	:affix,
-	:given_name,
-        :family_name,
-        :middle_name,
-	:suffix,
-	:formatted_name,
-	:preferred_given_name,
-	:company_name,
-	:company_type_id,
-	:category_id,
-        :notes,
-	:email,
-	:title,
-        :user_id,
-        :peeraddr,
-        :package_id,
-    :contact_id
-    );
-
+	:affix,                   -- affix
+	:given_name,              -- given_name
+        :family_name,             -- family_name 
+        :middle_name,             -- middle name
+	:suffix,                  -- suffix
+	:formatted_name,          -- formatted_name
+	:preferred_given_name,    -- preferred_given_name
+	:company_name,            -- company_name
+	:company_type_id,         -- company_type_id
+	:category_id,             -- category_id
+        :notes,                   -- notes
+	:email,                   -- email
+	:title,                   -- title
+        :user_id,                 -- user_id
+        :peeraddr,                -- peeraddr
+        :package_id,              -- package_id
+        :contact_id               -- contact_id
+        );
       </querytext>
 </fullquery>
 
Index: openacs-4/packages/contacts-lite/www/add-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/contacts-lite/www/add-edit.tcl,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/contacts-lite/www/add-edit.tcl	20 Jan 2021 21:21:07 -0000	1.3
+++ openacs-4/packages/contacts-lite/www/add-edit.tcl	23 Jan 2021 00:03:52 -0000	1.4
@@ -41,7 +41,7 @@
 #query company_types multilist "select company_type_name, company_type_id from company_types"
 #query categories multilist "select category_name, category_id from contact_categories"
 set company_types [db_list_of_lists get_company_types ""]
-set categories [db_list_of_lists get_categories ""] 
+set categories [db_list_of_lists get_categories ""]
 
 if { ![ad_form_new_p -key contact_id]} {
 #  permission::require_permission -object_id $contact_id -privilege write
@@ -57,102 +57,100 @@
     contact_id:key
 
     {affix:text(text),optional
-	{label "Affix" }
-	{html { size 20 }} 
-	{value {$affix }}}
+        {label "Affix" }
+        {html { size 20 }}
+        {value {$affix }}}
 
-    {given_name:text(text) 
-	{label "First Name" }
-	{html { size 40 }} 
-	{value {[string trim $given_name]}}}
-    
+    {given_name:text(text)
+        {label "First Name" }
+        {html { size 40 }}
+        {value {[string trim $given_name]}}}
+
     {middle_name:text(text),optional
-	{label "Middle"}
-	{html { size 30 } }
-	{value {$middle_name}}}
+        {label "Middle"}
+        {html { size 30 } }
+        {value {$middle_name}}}
 
     {family_name:text(text)
         {label "Last Name" }
-	{html { size 40 } }
-	{value {$family_name}}}
+        {html { size 40 } }
+        {value {$family_name}}}
 
     {formatted_name:text(text)
-	{label "Formatted Name" }
-	{html { size 40 } }
-	{value {$formatted_name}}}
+        {label "Formatted Name" }
+        {html { size 40 } }
+        {value {$formatted_name}}}
 
     {preferred_given_name:text(text)
-	{label "Preferred Name" }
-	{html { size 40 } }
-	{value {$preferred_given_name}}}
+        {label "Preferred Name" }
+        {html { size 40 } }
+        {value {$preferred_given_name}}}
 
     {suffix:text(text),optional
-	{label "Suffix" }
-	{html { size 20 } }
-	{value {$suffix}}}
+        {label "Suffix" }
+        {html { size 20 } }
+        {value {$suffix}}}
 
-    {email:text(text) 
-	{label "Email" }
-	{html { size 40 }} 
-	{value {$email}}}
+    {email:text(text)
+        {label "Email" }
+        {html { size 40 }}
+        {value {$email}}}
 
-    {spacer3:text(inform) 
-	{label " "} 
-	{value {}}}
+    {spacer3:text(inform)
+        {label " "}
+        {value {}}}
 
     {title:text(text),optional
-	{label "Title" }
-	{html { size 40 }} 
-	{value {$title}}}
+        {label "Title" }
+        {html { size 40 }}
+        {value {$title}}}
 
-    {company_name:text(text) 
-	{label "Company Name" }
-	{html { size 40 } }
-	{value {$company_name}}}
+    {company_name:text(text)
+        {label "Company Name" }
+        {html { size 40 } }
+        {value {$company_name}}}
 
-    {company_type_id:text(select) 
-	{label "Company Type" }
-	{options {$company_types }}
-	{value { $company_type_id}}}
-    
-    {category_id:text(select) 
-	{label "Contact Category" }
-	{options {$categories}}
-	{value {$category_id}}}
-    
-    {spacer1:text(inform) 
-	{label " " }
-	{value {&nbsp;}}}
+    {company_type_id:text(select)
+        {label "Company Type" }
+        {options {$company_types }}
+        {value {$company_type_id}}}
 
-    {notes:text(textarea) 
-	{label "Notes" }
-	{html { cols 40 rows 5 } }
-	{value {$notes}}}
+    {category_id:text(select)
+        {label "Contact Category" }
+        {options {$categories}}
+        {value {$category_id}}}
 
-	{spacer2:text(inform) 
-	    {label " " }
-	    {value {}}}
-	
-	{address_link:text(inform) 
-	    {label " " }
-	    {value {$link}}}
+    {spacer1:text(inform),noquote
+        {label " " }
+        {value {&nbsp;}}}
 
-	{phone_link:text(inform) 
-	    {label " "}
-	    {value {$phono_link}}}
-    
+    {notes:text(textarea)
+        {label "Notes" }
+        {html { cols 40 rows 5 } }
+        {value {$notes}}}
 
+    {spacer2:text(inform)
+        {label " " }
+        {value {}}}
+
+    {address_link:text(inform),noquote
+        {label " " }
+        {value {$link}}}
+
+    {phone_link:text(inform),noquote
+        {label " "}
+        {value {$phono_link}}}
+
+
 } -select_query_name contact_select -new_data {
-    db_exec_plsql new_contact { }
+    db_exec_plsql new_contact {}
     ad_returnredirect "./one?contact_id=$contact_id"
     ad_script_abort
+    
 } -edit_data {
-    db_exec_plsql set_contact { }
+    db_exec_plsql set_contact {}
     ad_returnredirect "./one?contact_id=$contact_id"
     ad_script_abort
-} 
+}
 
 ad_return_template
-
-
-
Index: openacs-4/packages/contacts-lite/www/addresses/delete.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/contacts-lite/www/addresses/delete.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/contacts-lite/www/addresses/delete.adp	20 Jan 2021 21:26:25 -0000	1.2
+++ openacs-4/packages/contacts-lite/www/addresses/delete.adp	23 Jan 2021 00:03:53 -0000	1.3
@@ -4,7 +4,7 @@
 
 <h3>@title@</h3>
 <hr>
-Are you sure you want to delete <p><strong>@one_address.address@</strong>?<p>
+Are you sure you want to delete <p><strong>@one_address.address;noquote@</strong>?<p>
 
 <a href="delete-2?address_id=@one_address.address_id@">Delete</a><p>
 <a href=".?contact_id=@one_address.contact_id@&amp;address_id=@one_address.address_id@">Return</a>
Index: openacs-4/packages/contacts-lite/www/phones/add-edit.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/contacts-lite/www/phones/add-edit.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/contacts-lite/www/phones/add-edit.tcl	20 Jan 2021 21:21:08 -0000	1.2
+++ openacs-4/packages/contacts-lite/www/phones/add-edit.tcl	23 Jan 2021 00:03:53 -0000	1.3
@@ -33,11 +33,11 @@
     {contact_id:text(hidden)
 	{value {$contact_id}}}
 
-    {pretty_name:text(inform)
+    {pretty_name:text(inform),noquote
 	{label " "} 
 	{value {<i>$contact_info</i>}}}
 
-    {spacer1:text(inform)
+    {spacer1:text(inform),noquote
 	{label " " }
 	{value {&nbsp;}}}