+
<%= [table::outputTable summary] %>
- |
-<%= [table::outputTable options] %>
+ |
+<%= [table::outputTable setup] %>
|
Index: openacs-4/packages/recruiting/www/admin/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/index.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/recruiting/www/admin/index.tcl 31 Jul 2002 23:54:00 -0000 1.2
+++ openacs-4/packages/recruiting/www/admin/index.tcl 7 Aug 2002 23:39:19 -0000 1.3
@@ -11,12 +11,32 @@
set package_id [ad_conn package_id]
set user_id [ad_verify_and_get_user_id]
-table::setTitle options "Recruiting Administration Options"
-table::addUnsortedRow options [list "Candidate Administration"]
-table::addUnsortedRow options [list "Candidate status types"]
-table::addUnsortedRow options [list "Interview criteria Administration"]
+db_1row status_types_defined_p {}
+db_1row criteria_defined_p {}
+if {!$status_types_defined_p} {
+ set status_types_msg " There are no status types defined. You must defined status types before you can add and adminster candidates."
+} else {
+ set status_types_msg ""
+}
+
+if {!$criteria_defined_p} {
+ set criteria_msg " No interviews criteria has been defined. You should define some interview criteria before you begin assigning interviews."
+} else {
+ set criteria_msg ""
+}
+
+table::setTitle setup "Setup"
+table::addUnsortedRow setup [list "Candidate status types$status_types_msg"]
+table::addUnsortedRow setup [list "Interview criteria$criteria_msg"]
+
+db_1row get_num_candidates {}
+db_1row get_pending_interviews {}
+db_1row get_num_archived_candidates {}
+
table::setTitle summary "Summary Information"
-table::addUnsortedRow summary [list "Summary Info will go here"]
+table::addUnsortedRow summary [list "Candidates: $num_candidates" "(candidate administration)"]
+table::addUnsortedRow summary [list "Pending Interviews: $pending_interviews" "(view interviews)"]
+table::addUnsortedRow summary [list "$num_archived_candidates candidates have been archived" "(view archived candidates)"]
set context_bar [list [list "../" "Recruiting"] "Admin"]
Index: openacs-4/packages/recruiting/www/admin/index.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/index.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/index.xql 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,44 @@
+
+
+
+
+
+ select count(*) as status_types_defined_p
+ from recruiting_status_types
+ where enabled_p = 't';
+
+
+
+
+
+ select count(*) as criteria_defined_p
+ from recruiting_criteria
+ where enabled_p = 't';
+
+
+
+
+
+ select count(*) as num_candidates
+ from recruiting_candidates
+
+
+
+
+
+ select count(*) as pending_interviews
+ from recruiting_interviews i
+ where (select count(*)
+ from recruiting_ratings r
+ where r.interview_id = i.interview_id) = 0
+
+
+
+
+
+ select count(*) as num_archived_candidates
+ from archived_recruiting_candidates
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/index.xql~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/index.xql~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/index.xql~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,37 @@
+
+
+
+
+
+ select count(*) as status_types_defined_p
+ from recruiting_status_types
+ where enabled_p = 't';
+
+
+
+
+
+ select count(*) as criteria_defined_p
+ from recruiting_critera
+ where enabled_p = 't';
+
+
+
+
+
+ select count(*) as num_candidates
+ from recruiting_candidates
+
+
+
+
+
+ select count(*) as pending_interviews
+ from recruiting_interviews i
+ where (select count(*)
+ from recruiting_ratings r
+ where r.interview_id = i.interview_id) = 0
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/list-archived-candidates.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-archived-candidates.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-archived-candidates.adp 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,5 @@
+
+@context_bar@
+
+<%= [table::outputTable archived] %>
+
Index: openacs-4/packages/recruiting/www/admin/list-archived-candidates.adp~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/list-archived-candidates.adp~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-archived-candidates.adp~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,11 @@
+
+@context_bar@
+
+
+
+<%= [table::outputTable candidates] %>
+ |
+<%= [table::outputTable options] %>
+ |
+
+
Index: openacs-4/packages/recruiting/www/admin/list-archived-candidates.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-archived-candidates.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-archived-candidates.tcl 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,28 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: list-archived-candidates.tcl,v 1.1 2002/08/07 23:39:19 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+table::setTitle archived "Archived Candidates"
+table::setColumnHeadings archived [list "Name" "Location" "Status"]
+db_foreach get_archived_candidates {} {
+ table::addSortableRow archived [list "$candidate_name ($email)" \
+ "$city, $state" \
+ "$status" \
+ "(unarchive)"]
+} if_no_rows {
+ table::addSortableRow archived [list "There are no archived candidates. You may go back to administration or view unarchived candidates."]
+}
+
+
+set context_bar [list [list "../" "Recruiting"] [list "index" "Admin"] "Archived Candidates"]
+
+ad_return_template
Index: openacs-4/packages/recruiting/www/admin/list-archived-candidates.tcl~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/list-archived-candidates.tcl~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-archived-candidates.tcl~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,34 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: list-archived-candidates.tcl~,v 1.1 2002/08/07 23:39:19 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+set referrer [ns_urlencode [ns_conn url]]
+
+table::setTitle candidates "Recruiting Candidates"
+table::setColumnHeadings candidates [list "Name" "Location" "Status" "Interviews"]
+table::setColumnAlignment candidates [list left left left center left]
+db_foreach get_candidates {} {
+ table::addSortableRow candidates [list "$first_name $last_name ($email)" \
+ "$city, $state" \
+ "$status" \
+ "$num_completed_interviews out of $num_interviews completed" \
+ "(details) (Delete this candidate)"]
+} if_no_rows {
+ table::addSortableRow candidates [list "No Candidates"]
+}
+
+table::setTitle options "Options"
+table::addUnsortedRow options [list "Add a new candidate"]
+
+set context_bar [list [list "../" "Recruiting"] [list "index" "Admin"] "Candidates"]
+
+ad_return_template
Index: openacs-4/packages/recruiting/www/admin/list-archived-candidates.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-archived-candidates.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-archived-candidates.xql 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,19 @@
+
+
+
+
+
+ select c.candidate_id,
+ c.last_name||', '||c.first_name as candidate_name,
+ c.city,
+ c.state,
+ c.email,
+ s.short_desc as status
+ from archived_recruiting_candidates c,
+ recruiting_status_types s
+ where c.status = s.status_type_id
+ order by c.last_name
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/list-archived-candidates.xql~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/list-archived-candidates.xql~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-archived-candidates.xql~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,28 @@
+
+
+
+
+
+ select c.candidate_id,
+ c.first_name,
+ c.last_name,
+ c.city,
+ c.state,
+ c.email,
+ s.short_desc as status,
+ (select count(*)
+ from recruiting_interviews i
+ where i.candidate_id = c.candidate_id) as num_interviews,
+ (select count(*) from recruiting_interviews i
+ where i.candidate_id = c.candidate_id
+ and (select count(*)
+ from recruiting_ratings r
+ where r.interview_id = i.interview_id) != 0) as num_completed_interviews
+ from recruiting_candidates c,
+ recruiting_status_types s
+ where c.status = s.status_type_id
+ order by c.last_name
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/list-candidates.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-candidates.tcl,v
diff -u -r1.5 -r1.6
--- openacs-4/packages/recruiting/www/admin/list-candidates.tcl 2 Aug 2002 16:48:26 -0000 1.5
+++ openacs-4/packages/recruiting/www/admin/list-candidates.tcl 7 Aug 2002 23:39:19 -0000 1.6
@@ -28,6 +28,7 @@
table::setTitle options "Options"
table::addUnsortedRow options [list "Add a new candidate"]
+table::addUnsortedRow options [list "View archived candidates"]
set context_bar [list [list "../" "Recruiting"] [list "index" "Admin"] "Candidates"]
Index: openacs-4/packages/recruiting/www/admin/list-interviews.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-interviews.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-interviews.adp 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,4 @@
+
+@context_bar@
+
+<%= [table::outputTable interviews] %>
Index: openacs-4/packages/recruiting/www/admin/list-interviews.adp~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/list-interviews.adp~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-interviews.adp~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,8 @@
+
+@context_bar@
+
+
+<%= [table::outputTable summary] %>
+ |
+<%= [table::outputTable setup] %>
+ |
Index: openacs-4/packages/recruiting/www/admin/list-interviews.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-interviews.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-interviews.tcl 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,22 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: list-interviews.tcl,v 1.1 2002/08/07 23:39:19 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+table::setTitle interviews "Pending Interviews"
+table::setColumnHeadings interviews [list "Candidate" "Interviewer" "Assigned"]
+db_foreach pending_interviews {} {
+ table::addSortableRow interviews [list "$candidate_name" "$interviewer_name" "$assigned_date"]
+} if_no_rows {
+ table::addSortableRow interviews [list "There are no pending interviews"]
+}
+
+set context_bar [list [list "../" "Recruiting"] [list "index" "Admin"] "Pending Interviews"]
Index: openacs-4/packages/recruiting/www/admin/list-interviews.tcl~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/list-interviews.tcl~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-interviews.tcl~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,20 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: list-interviews.tcl~,v 1.1 2002/08/07 23:39:19 chak Exp $
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+table::setTitle interviews "Pending Interviews"
+table::setColumnHeadings interviews [list "Candidate" "Interviewer" "Assigned"]
+db_foreach pending_interviews {
+ table::addSortableRow interviews [list "$candidate_name" "$interviewer_name" "$assigned_date"]
+}
+
+set context_bar [list [list "../" "Recruiting"] [list "index" "Admin"] "Pending Interviews"]
Index: openacs-4/packages/recruiting/www/admin/list-interviews.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/list-interviews.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-interviews.xql 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,24 @@
+
+
+
+
+
+ select u.user_id as interviewer_id,
+ u.first_names||' '||u.last_name as interviewer_name,
+ c.candidate_id,
+ c.first_name||' '||c.last_name as candidate_name,
+ date(a.creation_date) as assigned_date
+ from registered_users u,
+ recruiting_candidates c,
+ recruiting_interviews i,
+ acs_objects a
+ where i.interviewer_id = u.user_id
+ and i.candidate_id = c.candidate_id
+ and i.interview_id = a.object_id
+ and (select count(*)
+ from recruiting_ratings r
+ where r.interview_id = i.interview_id) = 0;
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/list-interviews.xql~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/list-interviews.xql~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/list-interviews.xql~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
Index: openacs-4/packages/recruiting/www/admin/new-candidate.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/new-candidate.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/recruiting/www/admin/new-candidate.tcl 2 Aug 2002 18:53:56 -0000 1.4
+++ openacs-4/packages/recruiting/www/admin/new-candidate.tcl 7 Aug 2002 23:39:19 -0000 1.5
@@ -108,7 +108,12 @@
home_phone cell_phone \
email status
+ set person_id [person::new \
+ -first_names $first_name \
+ -last_name $last_name]
+
recruiting_candidate::new \
+ -candidate_id $person_id \
-first_name $first_name \
-last_name $last_name \
-address1 $address1 \
@@ -123,7 +128,7 @@
-email $email \
-status $status
- ad_returnredirect list-candidates
+ ns_returnredirect list-candidates
ad_script_abort
}
Index: openacs-4/packages/recruiting/www/admin/unarchive-candidate.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/unarchive-candidate.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/unarchive-candidate.tcl 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,18 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: unarchive-candidate.tcl,v 1.1 2002/08/07 23:39:19 chak Exp $
+} {
+ candidate_id:notnull
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
+recruiting_candidate::unarchive -candidate_id $candidate_id
+
+ns_returnredirect list-archived-candidates
Index: openacs-4/packages/recruiting/www/admin/unarchive-candidate.tcl~
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/Attic/unarchive-candidate.tcl~,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/recruiting/www/admin/unarchive-candidate.tcl~ 7 Aug 2002 23:39:19 -0000 1.1
@@ -0,0 +1,15 @@
+ad_page_contract {
+ recruiting admin interface
+ access admin function such as: criteria specification
+ and interviewee status types
+
+ @author chak (chak@openforce.net)
+ @creation-date 2002-07-30
+ @version $Id: unarchive-candidate.tcl~,v 1.1 2002/08/07 23:39:19 chak Exp $
+} {
+ candidate_id:notnull
+}
+
+set package_id [ad_conn package_id]
+set user_id [ad_verify_and_get_user_id]
+
Index: openacs-4/packages/recruiting/www/admin/view-one-candidate.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/view-one-candidate.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/recruiting/www/admin/view-one-candidate.adp 31 Jul 2002 23:54:00 -0000 1.1
+++ openacs-4/packages/recruiting/www/admin/view-one-candidate.adp 7 Aug 2002 23:39:19 -0000 1.2
@@ -5,6 +5,8 @@
<%= [table::outputTable candidate] %>
+<%= [table::outputTable resume] %>
+
<%= [table::outputTable interviews] %>
|
<%= [table::outputTable options] %>
Index: openacs-4/packages/recruiting/www/admin/view-one-candidate.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/view-one-candidate.tcl,v
diff -u -r1.6 -r1.7
--- openacs-4/packages/recruiting/www/admin/view-one-candidate.tcl 2 Aug 2002 18:53:56 -0000 1.6
+++ openacs-4/packages/recruiting/www/admin/view-one-candidate.tcl 7 Aug 2002 23:39:19 -0000 1.7
@@ -41,19 +41,17 @@
table::setTitle interviews "Interviews for this candidate"
table::setColumnHeadings interviews [list \
"Interviewer" \
- "Ratings" \
+ "Completed?" \
"Average Rating" \
"Recommends Hiring"
]
-table::setColumnAlignment interviews [list left left center center]
-
+table::setColumnAlignment interviews [list left center center center]
table::setExportVars interviews [export_vars candidate_id]
-
db_foreach get_interviews {} {
table::addUnsortedRow interviews [list \
"$last_name, $first_names" \
- "$num_ratings out of $possible_ratings" \
+ "$completed_p" \
"[db_string get_average_rating {}]" \
"[db_string get_should_hire_p {}]" \
"(view ratings)
@@ -68,8 +66,15 @@
table::addUnsortedRow options [list "Edit Information"]
table::addUnsortedRow options [list "Change Status"]
table::addUnsortedRow options [list "Assign Interview"]
+table::addUnsortedRow options [list "Archive this candidate"]
table::addUnsortedRow options [list "Delete this candidate"]
+set attach_url [attachments::add_attachment_url -object_id $candidate_id -return_url "[ns_conn url]?[export_vars candidate_id]"]
+
+table::setTitle resume "Resume"
+table::addUnsortedRow resume [list "No resume uploaded. (upload a resume)"]
+
+
set context_bar [list [list "../" "Recruiting"] [list "index" "Admin"] [list "list-candidates" "Candidates"] "One Candidate"]
ad_return_template
Index: openacs-4/packages/recruiting/www/admin/view-one-candidate.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/recruiting/www/admin/view-one-candidate.xql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/recruiting/www/admin/view-one-candidate.xql 1 Aug 2002 22:14:37 -0000 1.2
+++ openacs-4/packages/recruiting/www/admin/view-one-candidate.xql 7 Aug 2002 23:39:19 -0000 1.3
@@ -6,9 +6,13 @@
p.person_id,
p.first_names,
p.last_name,
- (select count(*)
- from recruiting_ratings r
- where r.interview_id = i.interview_id) as num_ratings
+ (CASE
+ WHEN (select count(*)
+ from recruiting_ratings r
+ where r.interview_id = i.interview_id) = 0
+ THEN 'No'
+ ELSE 'Yes'
+ END) as completed_p
from persons p,
recruiting_interviews i
where i.interviewer_id = p.person_id
| |