I would love a way for a job seeker to view all the jobs that they have applied for.

Would be good to do it with views, like node type = job and currently logged in user 'touched' node but that seems to be only include comments and authored, but if there was a way to get the 'touch' criteria to include applications, that would be handy.

cheers
tim

CommentFileSizeAuthor
#5 default_views_fix.patch384 bytesxamount

Comments

kbahey’s picture

Title: Ability for job seeker to view jobs applied for. » Views integration for job and resume

Actually, it is more than that.

Proper views integration can do a lot for these two modules, such as:

- List of jobs applied for by the logged in user.
- List of jobs applied for by any user.
- My resumes.
- Jobs that I posted
- Jobs that I posted and someone applied for.

If someone wants to contribute a patch, please do so.

timmadden’s picture

This would be great, I am already using views to achieve two of these, but it would be great to have all of these options available.

- My resumes.
My Resumes already is doable because you can pull the node type "resume" and the node author "currently logged in user"

- Jobs that I posted
This is also doable by node type "job" and the node author "currently logged in user"

kbahey’s picture

Great comment.

So here is the revised list

- List of jobs applied for by the logged in user.
- List of jobs applied for by any user.
- Jobs that I posted and someone applied for.

kbahey’s picture

Status: Active » Needs work

All the above has been implemented.

The module also has some default views, but for some reason they do not show up.

They can be copied and pasted into the views import feature, and they will work fine.

Leaving this as "code needs work" until the default views are fixed. Can someone take a look as to why they don't?

xamount’s picture

Status: Needs work » Needs review
StatusFileSize
new384 bytes

I fixed this error. It was a simple return statement that was missing in the function that creates the default views.

Just add
return $views;
as the last line in the function job_views_default_views() {..}

I have attached the patch. Also if you apply this patch and the default views still don't show up you will need to clear the views cache by going to:

admin/build/views/tools

Great module by the way.

kbahey’s picture

Version: 5.x-1.x-dev » 5.x-2.x-dev
Status: Needs review » Fixed

Thank you.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

joemer’s picture

Hi I'm new and doing a project using the jobsearch module. How do you use or call those new views? Thanks.

xamount’s picture

You have to have the Views module enabled. Once you do that, look in the default views section on admin/build/views and you'll see the default views provided by the jobsearch module.

joemer’s picture

Thanks I already check it but I can't see them. I did clear the view cache. How do I apply the patch/fix maybe it could help. Thanks

xamount’s picture

For a quick fix just do as I said in my previous comment:

Just add this line of php code:

return $views;

as the last line in the function job_views_default_views() {..}

That should do the trick.

joemer’s picture

Thanks