Index: openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml,v diff -u -r1.9 -r1.10 --- openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml 7 Jun 2005 07:45:39 -0000 1.9 +++ openacs-4/packages/contacts/catalog/contacts.en_US.ISO-8859-1.xml 7 Jun 2005 19:18:31 -0000 1.10 @@ -1,345 +1,134 @@ - + -- select a group -- - --select one-- Action - Actions - Add: - Add a Group Add a Person Add an Organization - Add Comment Add Condition Add Group Add Organization Add Person - Add Search Add Signature Add the selected contacts to a category Add to Category Add to Group - Add to group - Add to Group(s) - Add User - Address + Add to Group Admin Administer Contacts Advanced Search Advanced Searches All - All / Edit + All/Edit Answer Archive Archive the checked contacts Archived - area code is -> - area code is not -> at Attribute Attribute -> Attributes - Cancel Clear Clear the currently selected Category Clear the currently selected Search - Comment Added Comments - Configuration Error Contact Contact -> - contact is in -> - contact is not in -> - Contact Relationship Contact Type - Contact Type One - Contact Type Two Contacts - contacts - contains -> - country code is -> - country is -> - country is not -> - Create Create a role - Create a Signature Create project Create role - CSV Current - Date - days Delete - Details - does not contain -> - Done Edit - Edit a Signature - Edit Details - Edit ${group_name} Email Address - Error even - False - File Files - files - First Name First Names Go Group -> - Group Name Groups - groups - has logged in - has never logged in Help Text - Invalid Object Type - is -> is after -> is before -> - is greater than -> is less than -> is more than -> - is not -> is not set is set last Last Name Limit Contacts to - -- Groups -------------------------- - -- My Searches --------------------- - -- no not include a signature -- - -- top level group -- - Add relationship type - Add to Selected Group(s) + -- Groups -- + -- My Searches -- Advanced searches are very powerful but in return they require very specific input... All searches are case insensitive, capitalization does not matter. If more than one contact match the search a list of results is returned. If only one contact meets the search criteria you are redirected to that contact. - <br><br>save this search as - commented on in last -> %comments.pretty_date% at %comments.pretty_time% - - Contact Administration - Contact Relationships - Contacts" -set context {} - -if { [exists_and_not_null query_id] } { - if { [contact::search::exists_p -search_id $query_id] } { - set search_id $query_id - set query_type "search" - } else { - set group_id $query_id - set query_type "group" - } -} else { -# set group_id [application_group::group_id_from_package_id -package_id [ad_conn subsite_id]] - set group_id [contacts::default_group] - set query_id $group_id - set query_type "group" - if { ![exists_and_not_null group_id] } { - ad_return_error "<#_ Not Configured" "<#_ Your administrator must map and add a default group in the <a href=\"admin\">admin pages</a>" - } -} - - -if { $orderby == "first_names,asc" } { - set name_order 0 - set name_label "<#_ Sort by: First Names - country code is not -> - created in the last -> Currently, the system is able to handle the following types of relationships: Debugging Code - Only SW Admins See This Define a new relationship type Delete the selected Contacts - Delete the selectted files - E-mail or Mail the selected contacts - Edit"></a> - } - } - group_name { - label {<#_ Group + E-mail or Mail the selected Contacts Entering a string in the normal search box means that a search will be performed where: Existing Relationships "First Names" contains "Search_Word" or - First Names is required - Group '${group_name}' Created - Group '${group_name}' Updated - Group Information Saved. - has logged in within -> - has not logged in within -> If in a normal search we search for "D Jane". The first Search_Word ("D") matches contacts 123 (via "Doe"), 234 (via "Doe"), and 345 (via "Alfred"). And the second Search_Word ("Jane") matches only contact 123. Thus only one contact meets both requirements and "Jane Doe" (contact 123) is returned. If multiple words are used then all words must match the above critera. So, for example if our contacts database contains these entries: Instance Permissions - Not done yet - Insufficient Permissions - Invalid input, you specified form as '$form' but should only specify: top, bottom, none - labels are not implemented yet "Last Name" contains "Search_Word" or - Last Name is required Last updated: %update_date% - <li> The role you entered \"$pretty_name\" or the plural \"$pretty_plural\" already exists. Make sure you do not add the same attribute to multiple groups - &nbsp;&nbsp; Show: " -set first_p 1 -foreach page_s [list 25 50 100 500] { - if { [string is false $first_p] } { - append name_label " | " - } - if { $page_size == $page_s } { - append name_label $page_s - } else { - append name_label "<a href=\"[export_vars -base . -url {rel_type format query_id query page orderby {page_size $page_s}}]\">$page_s</a>" - } - set first_p 0 -} -append name_label "&nbsp;&nbsp;&nbsp;<#_ Get - neither person nor org type is valid, what happened admin? - not commented on in last -> - not created in the last -> - not updated in the last -> - of the following conditions:<br> + of the following conditions Once ready for release this will be taken care of in code "Organization Name" contains "Search_Word" or - Organization Relationship - Organization Relationships "Party ID" equals "Search_Word" - People or Organizations - Person or Organization - $pretty_plural_list_name found in search, please try again or add a new contact - remember that you can use <a href="message-help">mail merge substitutions</a>. the most common wildcards are \{name\} \{first_names\}, \{last_name\}, \{home_address\} and \{date\} - Remove from Selected Group(s) Remove from this Group - Some of the required elements for this form are missing. Please contact an administrator and make sure that the following attributes are included in the default group's form for this object type:<ul><li>[join $missing_elements - Some of the required elements for this form are missing. Please contact an administrator and make sure that the following attributes are included:<ul><li>[join $missing_elements - state/province is not -> - the action supplied is not valid - The contact specified does not exist - The contact specified is not one of the contacts in this relationship The default group must have first_names and last_name for person objects and name for organization objects, both of them need email - The file [lindex $message 0] was successfully uploaded - The files [join $message ", "] were successfully uploaded - The first contact specified does not exist - The first role specified does not exist - The parameter RecentOnTopP is not set correctly for the General Comments package, please enter either a '0' or a '1' - The party_id specified does not exist - The second contact specified does not exist - The second role specified does not exist - There was a problem with your input. this type of relationship cannot exist. - This action cannot be taken for unmapped groups This contact is not part of any groups - this is a problem. - This group is already the default - This group is already mapped - this is my default signature - This signature specified either does not exist or does not belong to you - This user is awaiting administrator approval - This users has not been approved - updated in the last -> What role does %contact_name_one% have when %contact_name_two% is a %secondary_role_pretty%: You cannot add this contact to more groups. - You cannot make sub groups the default group - You cannot map groups whose parent groups are not mapped - You cannot unmap the default group - You do not have permission to add users to groups - You have not specified a valid contact type - You have specified an invalid Object Type - You have specified an invalid size for the textarea - Your administrator must map and add a default group in the <a href=\"admin\">admin pages</a> - Your need to provide some contacts to send a message - Your provided an invalid Message Type - zip/postal does not start with -> - zip/postal starts with -> Mail Mail Merge Mail Merge Results Make Current Make the checked contacts current - Message - Message is required - Messages mine- My Searches My Signatures Name - Name is required Next (none) Normal Searches - Not Configured Number of Rows odd of Ordering Organization - Organization Form - Organizations - organizations - Output - Paper Type - Parent Group - Party Revision - Party Revisions People - people - Permissions Person - Person Form - Preview PROJECT Public Page READ THESE - Recipients - Relationship Added - Relationship Deleted - Relationship types - Relationship Updated Relationships - relationships - Remove From Group - Remove From to Group + Remove from Group Required Results: - Return to \"$title\" - Role - Role Name - Role One - Role Plural - Role Singular - Role Two Roles Save - Save and Add Another - Save As - Save Message As + Save this searc as Search - Search Help - searches - Select Send an email message to the selected contacts Send Email Settings Show: Showing - Signature signatures Sort By - Sort by: - state/province is -> + Sort by Status - Subject - Subject is required Summary View - Table Tasks - The error was: $errmsg - True - Type - Update - Update filenames - Updated By - Updated On - Upload More View all roles - View next which match Widget - your signatures Index: openacs-4/packages/contacts/lib/comments.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/lib/comments.adp,v diff -u -r1.7 -r1.8 --- openacs-4/packages/contacts/lib/comments.adp 1 Jun 2005 01:27:48 -0000 1.7 +++ openacs-4/packages/contacts/lib/comments.adp 7 Jun 2005 19:18:34 -0000 1.8 @@ -7,7 +7,7 @@
-
@comments.comment_number@. @comments.comment_number@. @comments.pretty_date@ #contacts.at# @comments.pretty_time@ @comments.author@ +
@comments.comment_number@. @comments.comment_number@. @comments.pretty_date@ #contacts.at# @comments.pretty_time@ @comments.author@
@comments.comment_html;noquote@
Index: openacs-4/packages/contacts/lib/comments.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/lib/comments.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/contacts/lib/comments.tcl 7 Jun 2005 07:45:39 -0000 1.5 +++ openacs-4/packages/contacts/lib/comments.tcl 7 Jun 2005 19:18:34 -0000 1.6 @@ -70,7 +70,7 @@ set result_number 1 -db_multirow -extend { comment_html comment_number } comments get_comments " +db_multirow -extend { comment_html comment_number contact_url } comments get_comments " select g.comment_id, r.title, r.mime_type, @@ -99,6 +99,7 @@ set comment_number $result_number } incr result_number + set contact_url [contact::url -party_id $creation_user] } ad_form -name comment_add \ Index: openacs-4/packages/contacts/tcl/contact-search-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/tcl/contact-search-procs.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/contacts/tcl/contact-search-procs.tcl 1 Jun 2005 01:26:47 -0000 1.2 +++ openacs-4/packages/contacts/tcl/contact-search-procs.tcl 7 Jun 2005 19:18:49 -0000 1.3 @@ -36,6 +36,18 @@ return [package_instantiate_object -var_list $var_list contact_search] } +ad_proc -public contact::search::results_count { + {-search_id ""} + {-rel_type ""} + {-object_type} +} { + create a contact search +} { + + return [db_string get_total_count {}] + +} + ad_proc -public contact::search::update { {-search_id ""} {-title ""} @@ -334,11 +346,11 @@ } created { set output_pretty "Contact created in the last: $interval" - set output_code "CASE WHEN ( select scrr.creation_date from acs_objects where object_id = $party_id ) > ( now() - '$interval'::interval ) THEN 't'::boolean ELSE 'f'::boolean END" + set output_code "CASE WHEN ( select acs_objects.creation_date from acs_objects where acs_objects.object_id = $party_id ) > ( now() - '$interval'::interval ) THEN 't'::boolean ELSE 'f'::boolean END" } not_created { set output_pretty "Contact not created in the last: $interval" - set output_code "CASE WHEN ( select scrr.creation_date from acs_objects where object_id = $party_id ) > ( now() - '$interval'::interval ) THEN 'f'::boolean ELSE 't'::boolean END" + set output_code "CASE WHEN ( select acs_objects.creation_date from acs_objects where acs_objects.object_id = $party_id ) > ( now() - '$interval'::interval ) THEN 'f'::boolean ELSE 't'::boolean END" } login { set output_pretty "Contact has logged in" Index: openacs-4/packages/contacts/www/contact.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/contact.adp,v diff -u -r1.10 -r1.11 --- openacs-4/packages/contacts/www/contact.adp 7 Jun 2005 18:59:11 -0000 1.10 +++ openacs-4/packages/contacts/www/contact.adp 7 Jun 2005 19:19:12 -0000 1.11 @@ -55,6 +55,7 @@ truncate_len="100" size="small" recent_on_top_p="1" /> +

@@ -64,6 +65,7 @@ project_item_id="@project_id@" base_url="@base_url@" /> +

#contacts.Last_updated# @update_date@

Index: openacs-4/packages/contacts/www/search.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/contacts/www/search.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/contacts/www/search.tcl 5 Jun 2005 19:42:22 -0000 1.3 +++ openacs-4/packages/contacts/www/search.tcl 7 Jun 2005 19:19:12 -0000 1.4 @@ -82,7 +82,7 @@ append form_elements { {object_type:text(hidden) {value $object_type}} {object_type_pretty:text(inform) {label {Search for}} {value "$object_type_pretty"} {after_html "[_ contacts.which_match]"}} - {all_or_any:text(select),optional {label ""} {options {{All all} {Any any}}} {after_html "[_ contacts.lt_of_the_following_cond]"}} + {all_or_any:text(select),optional {label ""} {options {{All all} {Any any}}} {after_html "[_ contacts.lt_of_the_following_cond]
"}} } } else { # {{People or Organizations} party} @@ -418,7 +418,7 @@ if { $search_exists_p } { append form_elements { - {title:text(text),optional {label "[_ contacts.lt_brbrsave_this_search_]"} {html {size 40 maxlength 255}}} + {title:text(text),optional {label "

[_ contacts.save_this_search_]"} {html {size 40 maxlength 255}}} {save:text(submit) {label "[_ contacts.Save]"} {value "save"}} {search:text(submit) {label "[_ contacts.Search]"} {value "search"}} {clear:text(submit) {label "[_ contacts.Clear]"} {value "clear"}}